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

The sum of three numbers is $2$. If twice the second number is added to the sum of first and third, the sum is $1$. By adding second and third number to five times the first number, we get $6$. Find the three numbers by using matrices.
Maximize Z = 18x + 10y
Subject to
$4\text{x}+\text{y}\geq20$
$2\text{x}+3\text{y}\geq30$
$\text{x},\text{y}\geq0$
Evaluate the following integrals:
$\int\limits^{1}_0\big|\text{x}\sin\pi\text{x}\big|\text{dx}$
$\int\text{e}^{-3\text{x}}\cos^3\text{x dx}$
Find the area of region bounded by the line $x = 2$ and the parabola $y^2 = 8x$.
If $\text{f}(\text{a}+\text{b}-\text{x})=\text{f(x)},$ then prove that $\int\limits^{\text{b}}_\text{a}\text{x}\text{f(x)}\text{dx}=\frac{\text{a}+\text{b}}{2}\int\limits^{\text{b}}_\text{a}\text{f(x)}\text{dx}$
Check the commutativity and associativity of the following binary operations:
'*' on N defined by a * b = gcd(a, b) for all a, b ∈ N.
Evalute the following integrals:
$\int\frac{-\sin\text{x}+2\cos\text{x}}{2\sin\text{x}+\cos\text{x}}\text{dx}$
Prove that:
$\begin{vmatrix} 1&\text{a}&\text{bc}\\1&\text{b}&\text{ca}\\1&\text{c}&\text{ab}\end{vmatrix}=\begin{vmatrix} 1&\text{a}&\text{a}^2\\1&\text{b}&\text{b}^2\\1&\text{c}&\text{c}^2\end{vmatrix}$
$\text{if } \vec{\text{a}} = 2\hat{\text{i}} + \hat{\text{j}} - \hat{\text{k}}, \vec{\text{b}} = 4\hat{\text{i}} - 7\hat{\text{j}} + \hat{\text{k}}, \text{find a vector } \vec{\text{c}} \text{ such that } \vec{\text{a}} \times \vec{\text{c}}=\vec{\text{b }} \text{ and } \vec{\text{a }} . \vec{\text{c}} = 6.$