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

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=\text{x}^2\cos^2\text{x}$
Comparing with $\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q},$ we get
$\text{P}=\tan\text{x}$
$\text{Q}=\text{x}^2\cos^2\text{x}$
Now,
I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\tan\text{xdx}}$
$=\text{e}^{\log|\sec\text{x}|}=\sec\text{x}$
Therefore, solution is given by,
$\text{y}\times\text{I.F.}=\int\text{x}^2\cos^2\text{x}\times\text{I.F.}\text{dx + C}$
$\Rightarrow\ \text{y}\sec\text{x}=\int\text{x}^2\cos\text{x dx + C}$
$\Rightarrow\ \text{y}\sec\text{x}=\text{I + C}$
Where,
$\text{I}=\int\text{x}^2\cos\text{xdx + C}$
$\Rightarrow\ \text{I}=\text{x}^2\int\cos\text{xdx}-\int\Big[\frac{\text{d}}{\text{dx}}(\text{x}^2)\int\cos\text{xdx}\Big]\text{dx}$
$\Rightarrow\ \text{I}=\text{x}^2\sin\text{x}-2\int\text{x}\sin\text{xdx}$
$\Rightarrow\ \text{x}^2\sin\text{x}-2\text{x}\int\sin\text{xdx}+2\int\Big[\frac{\text{d}}{\text{dx}}(\text{x})\int\sin\text{xdx}\Big]\text{dx}$
$\Rightarrow\ \text{I}=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\int\cos\text{xdx}$
$\Rightarrow\ \text{I}=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\sin\text{x}$
$\therefore\ \text{y}\sec\text{x}=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\sin\text{x + C}$

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

$\text{Evaluate:}\int\frac{\text{x + 2}}{\sqrt{\text{x}^{2}+\text{2x}+}\text{3}}\text{dx}$
Evaluate the following definite integrals:
$\int\limits_{0}^{\pi}\text{e}^{2\text{x}}\sin\Big(\frac{\pi}{4}+{\text{x}}\Big)\text{dx}$
Solve the following determinant equations:
$\begin{vmatrix}1&\text{x}&\text{x}^2\\1&\text{a}&\text{a}^2\\1&\text{b}&\text{b}^2\end{vmatrix}=0,\text{a}\neq\text{b}$
Three persons A, B and C apply for a job of Manager in a Private Company. Chances of their selection (A, B and C) are in the ratio $\text{1 : 2 : 4. }$The probabilities that A, B and C can introduce changes to improve profits of the company are 0.8, 0.5 and 0.3 respectively. If the change does not take place, find the probability that it is due to the appointment of C.
Find $\frac{\text{dy}}{\text{dx}}$
$\text{y}=(\sin\text{x})^{\cos\text{x}}+(\cos\text{x})^{\sin\text{x}}$
Find the equation of the line passing through the points $(1, -1, 1)$ and perpendicular to the lines joining the points $(4, 3, 2), (1, -1, 0)$ and $(1, 2, -1) (2, 1, 1).$
Find $\frac{\text{dy}}{\text{dx}} y = x^n + n^x + x^x + n^n$
$\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.$
Evaluate the following intergrals:
$\int\text{e}^\text{ax}\sin(\text{bx}+\text{c})\text{dx}$
Solve the follwing system of equations by matrix method: $5x + 2y = 3 , 3x + 2y = 5$