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

A particle is moving in a straigth line such that its distance at any time t is given by $\text{S}=\frac{\text{t}^{4}}{4}-2\text{t}^{3}+4\text{t}^{2}-7$. Find when its velocity is maximum and acceleration minimum.
Find the equation of tangents to the curve $\text{y} = \cos (x + y), -2\pi \leq x \leq 2\pi$ that are parallel to the line x + 2y = 0.
If $\text{y}=\text{e}^{\tan^{-1}\text{x}},$ prove that $(1+\text{x}^2)\text{y}_2+(2\text{x}-1)\text{y}_1=0$
Solve the following differential equations:$\text{cosec x}\log\text{y}\frac{\text{dy}}{\text{dx}}+\text{x}^2\text{y}^2=0$
If $\text{A}=\begin{bmatrix}2&-3&5\\ 3&2&-4\\ 1&1&-2\end{bmatrix}$, find $A^{-1}$ and hence solve the system of linear equations:
2x - 3y + 5z = 11, 3x + 2y - 4z = -5, x + y + 2z = -3
Write the minors and cofactors of element of the first column of the following matrices and hence evaluate the determinant in case:
$\text{A}=\begin{vmatrix}1&\text{a}&\text{bc}\\1&\text{b}&\text{ca}\\1&\text{c}&\text{ab} \end{vmatrix}$
Find $\frac{\text{dy}}{\text{dx}}$ in the following cases:
$\text{x}^{\frac{2}{3}}+\text{y}^{\frac{2}{3}}=\text{a}^{\frac{2}{3}}$
Differentiate the following functions with respect to x:
$\sin^{-1}\Big\{\frac{\sqrt{1+\text{x}}+\sqrt{1-\text{x}}}{2}\Big\},0<\text{x}<1$
Evaluate the following:
$\begin{vmatrix}\text{a}+\text{x}&\text{y}&\text{z}\\\text{x}&\text{a}+\text{y}&\text{z}\\\text{x}&\text{y}&\text{a}+\text{z}\end{vmatrix}$
Find the vector equation of the line passing through the point (1, 2, – 4) and perpendicular to the two lines: $\frac{\text{x}-8}{3}=\frac{\text{y}+19}{-16}=\frac{\text{z}-10}{7}\ \text{and}\ \frac{\text{x}-15}{3}=\frac{\text{y}-29}{8}=\frac{\text{z}-5}{-5}.$