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

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}=\text{x}^2\cot\text{x}+2\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}=\cot\text{x}$
$\text{Q}=\text{x}^2\cot\text{x}+2\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\cot\text{xdx}}$
$=\text{e}^{\log|\sin\text{x}|}=\sin\text{x}$
Multiplying both sides of (1) by $\sin\text{x},$ we get
$\sin\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}\Big)=\sin\text{x}(\text{x}^2\cot\text{x}+2\text{x})$
$\Rightarrow\ \sin\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\cos\text{x}=\text{x}^2\cos\text{x}+2\text{x}\sin\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\sin\text{x}=\int\text{x}^2\cos\text{xdx}+\int2\text{x}\sin\text{xdx + C}$
$\Rightarrow\ \text{y}\sin\text{x}=\text{x}^2\int\cos\text{xdx}-\int\Big[\frac{\text{d}}{\text{dx}}(\text{x}^2)\int\cos\text{xdx}\Big]\text{dx}+\int2\text{x}\sin\text{x dx + C}$
$\Rightarrow\ \text{y}\sin\text{x}=\text{x}^2\sin\text{x}-\int2\text{x}\sin\text{xdx}+\int2\text{x}\sin\text{xdx + C}$
$\Rightarrow\ \text{y}\sin\text{x}=\text{x}^2\sin\text{x +C}$
Hence, $\Rightarrow\ \text{y}\sin\text{x}=\text{x}^2\sin\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

Find $\frac{d y}{d x}$
$(a)\ \sqrt{x^2+y^2}=\log _e\left(x^2-y^2\right)$
$(b)\ y=x^{x^{x^x} \ldots......\infty}$
$(c)\ x y \log (x+y)=1$
Suppose you have two coins which appear identical in your pocket. You know that one is fair and one is $2-$headed. If you take one out, toss it and get a head, what is the probability that it was a fair coin?
Solve the following differential equations:$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{ x, y}(0)=1$
Minimise Z = -3x + 4 y
subject to $\text{x}+2\text{y}\leq8,\ 3\text{x}+2\text{y}\leq12,\ \text{x}\geq0,\ \text{y}\geq0.$
If $\vec{\text{a}} \times \vec{\text{b}} = \vec{\text{c}} \times \vec{\text{d}}$ and $\vec{\text{a}} \times \vec{\text{c}} = \vec{\text{b}} \times \vec{\text{d}},$ show that $\vec{\text{a}} - \vec{\text{d}}$ is parallel to $\vec{\text{b}} - \vec{\text{c}},$ where $\vec{\text{a}} \neq \vec{\text{d}}$ and $\vec{\text{b}} \neq \vec{\text{c}}.$
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}=\frac{\text{y}}{\text{x}}\{\log\text{y}-\log\text{x}+1\}$
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{x}-2\sin\text{x}$
Find a point on the curve $y = x^2 + x,$ where the tangent is parallel to the chord joining $(0, 0)$ and $(1, 2).$
Find the area of the region $\left\{(x, y): 0 \leqslant y \leqslant\left(x^2+1\right), 0 \leqslant y \leqslant(x+1), 0 \leqslant x \leqslant 2\right\}$
Show that $\text{f}(\text{x})=\tan^{-1}(\sin\text{x}+\cos\text{x})$ is a decreasing function on the interval $\Big(\frac{\pi}{4},\frac{\pi}{2}\Big).$