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

Answer

We have,
$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{x}-2\sin\text{x}$
$\frac{\text{dy}}{\text{dx}}-\text{y}\tan\text{x}=-2\sin\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}=-2\sin\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{-\int\tan\text{xdx}}$
$=\text{e}^{-\log|\sec\text{x}|}=\cos\text{x}$
Multiplying both sides of (1) by $\cos\text{x},$ we get
$\cos\text{x}\Big(\frac{\text{dy}}{\text{dx}}-\text{y}\tan\text{x}\Big)=-2\sin\text{x}\times\cos\text{x}$
$\Rightarrow\ \cos\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\sin\text{x}=-\sin2\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\cos\text{x}=-\int\sin2\text{x dx + C}$
$\Rightarrow\ \text{y}\cos\text{x}=\frac{\cos2\text{x}}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=\frac{1-2\sin^2\text{x}}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=-\sin^2\text{x}+\frac{1}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=-\sin^2\text{x}+\text{K}$ $\Big($where $\text{K}=\frac{1}2+\text{c}\Big)$
$\Rightarrow\ \text{y}=\sec\text{x}\big(-\sin^2\text{x}+\text{K}\big)$
Hence, $\text{y}=\sec\text{x}\big(-\sin^2\text{x}+\text{K}\big)$ 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

Prove that the least perimeter of an isosceles triangle in which a circle of radius r can be inscribed is $6\sqrt{3}\text{ r}$.
If $\text{x}\sin(\text{a}+\text{y})+\sin\text{a}\cos(\text{a}+\text{y})=0,$ prove that $\frac{\text{dy}}{\text{dx}}=\frac{\sin^2(\text{a}+\text{y})}{\sin\text{a}}$
Differentiate the following functions with respect to x:
$\frac{\text{e}^{2\text{x}}+\text{e}^{-2\text{x}}}{\text{e}^{2\text{x}}-\text{e}^{-2\text{x}}}$
Find the perpendicular distance of the point $(1,0,0)$ from the line $\frac{x-1}{2}=\frac{y+1}{-3}=\frac{z+10}{8}$. Also, find the coordinates of the foot of the perpendicular and the equation of the perpendicular.
On R − {1}, a binary operation * is defined by a * b = a + b − ab. Prove that * is commutative and associative. Find the identity element for * on R − {1}. Also, prove that every element of R − {1} is invertible.
If $\text{A}=\begin{bmatrix}\text{a}&\text{b}\\0&1\end{bmatrix},$ prove that $\text{A}^\text{n}=\begin{bmatrix}\text{a}^\text{n}&\text{b}\Big(\frac{\text{a}^\text{n}-1}{\text{a}-1}\Big)\\0&1\end{bmatrix}$ for every positive integer n.
Show that the following system of linear equation is inconsistent:
$2x + 3y = 5$
$6x + 9y = 10$
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+2\text{y}=\text{xe}^{4\text{x}}$
Determine the area under the curve $\text{y}=\sqrt{\text{a}^2-\text{x}^2}$ included between the lines x = 0 and x = a.
Evaluate the following integrals:
$\int\limits^1_{-1}|\text{x}\cos\pi\text{x}|\text{dx}$