Question
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=\cos\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=\cos\text{x}\ \dots(1)$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
where
$\text{P}=\tan\text{x}$
$\text{Q}=\cos\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\tan\text{xdx}}$
$=\text{e}^{\log|\sec\text{x}|}=\sec\text{x}$
Multiplying both sides of (1) by $\sec\text{x},$ we get
$\sec\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}\Big)=\cos\text{x}\times\sec\text{x}$
$\Rightarrow\ \sec\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\sec\text{x}\tan\text{x}=1$
Integrating both sides with respect to x, we get
$\text{y}\sec\text{x}=\int\text{dx + C}$
$\Rightarrow\ \text{y}\sec\text{x}=\text{x + C}$
Hence, $\text{y}\sec\text{x}=\text{x + C}$ is the required solution.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Differentiate the following functions with respect to x:
$\sin\Big(\frac{1+\text{x}^2}{1-\text{x}^2}\Big)$
Discuss the commutativity and associativity of binary operation $^{‘*’}$ defined on A = Q – {1} by the rule $\text{a} ^{*} \text{b = a – b + ab}$ for all a, b $\in$ A. Also find the identity element of $^{*}$ in A and hence find the invertible elements of A.
A company manufactures two types of toys A and B. Type A requires 5 minutes each for cutting and 10 minutes each for assembling. Type B requires 8 minutes each for cutting and 8 minutes each for assembling. There are 3 hours available for cutting and 4 hours available for assembling in a day. The profit is Rs. 50 each on type A and Rs. 60 each on type B. How many toys of each type should the company manufacture in a day to maximize the profit?
Find the integrals of the functions in Exercises:
$\sin\text{x } \sin2\text{x }\sin3\text{x}$
In a factory, machine A produces 30% of the total output, machine B produces 25% and the machine C produces the remaining output. If defective items produced by machines A, B and C are 1%, 1.2%, 2% respectively. Three machines working together produce 10000 items in a day. An item is drawn at random from a day's output and found to be defective. Find the probability that it was produced by machine B?
Show that the matrix $\text{A}=\begin{bmatrix}2&3\\1&2\end{bmatrix}$ satisfies the equation A3 - 4A2 + A = 0.
If a, b and c are all non-zero and $\begin{vmatrix}1+\text{a}&1&1\\1&1+\text{b}&1\\1&1&1+\text{c} \end{vmatrix}=0,$ then prove that $\frac{1}{\text{a}}+\frac{1}{\text{b}}+\frac{1}{\text{c}}+1=0.$
Prove that the line through A(0, -1, -1) and B(4, 5, 1) intersects the line through C(3, 9, 4) and D(-4, 4, 4).
Evaluate the following integrals:
$\int\limits^{\infty}_0\frac{\log\text{x}}{1+\text{x}^2}\text{ dx}$
Make a rough sketch of the graph of the function y = 4 - x2, 0 < x < 2  and determine the area enclosed by the curve, the x-axis and the lines x = 0 and x = 2