Question
Solve the following initial value problems:
$\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}=\text{x}\cos\text{x}+\sin\text{x},\text{ y}\Big(\frac{\pi}{2}\Big)=1$

Answer

We have,
$\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}=\text{x}\cos\text{x}+\sin\text{x}$
$\Rightarrow\frac{\text{dy}}{\text{dx}}+\frac{1}{\text{x}}\text{y}=\cos\text{x}+\frac{\sin\text{x}}{\text{x}}\ ...(1)$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{Px}=\text{Q}$
Where $\text{P}=\tan\text{x}$ and $\text{Q}=\text{x}^2\cot\text{x}+2\text{x}$
$\therefore\text{ I.F.}=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\frac{1}{\text{x}}\text{dx}}$
$=\text{e}^{\log\text{x}}$
$=\text{x}$
Multiplying both sides of (1) by $\text{I.F.}=\text{x},$ we get
$\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\frac{1}{\text{x}}\text{y}\Big)=\text{x}\Big(\cos\text{x}+\frac{\sin\text{x}}{\text{x}}\Big)$
$\Rightarrow\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\frac{1}{\text{x}}\text{y}\Big)=\text{x}\cos\text{x}+\sin\text{x}$
Integrating both sides with respect to x, we get
$\text{xy}=\int\text{x}\cos\text{x dx}+\int\sin\text{x dx}+\text{C}$
$\Rightarrow\text{xy}=\Big[\text{x}\sin\text{x}-\int1(\sin\text{x})\text{dx}\Big]-\cos\text{x}+\text{C}$
$\Rightarrow\text{xy}=\text{x}\sin\text{x}+\cos\text{x}-\cos\text{x}+\text{C}$
$\Rightarrow\text{xy}=\text{x}\sin\text{x}+\text{C}\ ...(2)$
Now,
$\text{y}\Big(\frac{\pi}{2}\Big)=1$
$\therefore\ 1\times\frac{\pi}{2}=\frac{\pi}{2}\sin\frac{\pi}{2}+\text{C}$
$\Rightarrow\text{C}=0$
Putting the value of C in (2), we get
$\text{xy}=\text{x}\sin\text{x}$
$\Rightarrow\text{y}=\sin\text{x}$
Hence, $\text{y}=\sin\text{x}$ 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

Differentiate the following functions with respect to x:
$\sin^{-1}\big(2\text{x}^2-1\big),0<\text{x}<1$
Find the equation of the tangent line to the curve y = x2 - 2x + 7 which is perpendicular to the line 5y - 15x = 13.
Evaluate the following:
$\int\frac{\text{x}}{\sqrt{\text{x}}+1}\text{dx}$
Hint: Put $\sqrt{\text{x}}=\text{z}$
If li, mi, ni ; i = 1, 2, 3 denotes the direction cosines of three mutually perpendicular vectors in space, prove that AAT = I, where
$\text{A}=\begin{bmatrix}\text{l}_1&\text{m}_1&\text{n}_1\\\text{l}_2&\text{m}_2&\text{n}_2\\\text{l}_3&\text{m}_3&\text{n}_3 \end{bmatrix}.$
In order to supplement daily diet, a person wishes to take X and Y tablets. The contents (in milligrams per tablet) of iron, calcium and vitamins in X and Y are given as below:
Tablets Iron Calcium Vitamin
X 6 3 2
Y 2 3 4
The person needs to supplement at least 18 milligrams of iron, 21 milligrams of calcium and 16 milligrams of vitamins. The price of each tablet of X and Y is ₹ 2 and ₹1 respectively. How many tablets of each type should the person take in order to satisfy the above requirement at the minimum cost? Make an LPP and solve graphically.
Evaluate the following integrals:
$\int(2\text{x}-5)\sqrt{\text{x}^2-4\text{x}+3}\text{dx}$
Evaluate the following integrals as limit of sum:
$\int\limits^1_{0}\big(3\text{x}^2+5\text{x}\big)\text{dx}$
Differentiate the following functions with respect to x:
$\tan^{-1}\Big(\frac{\text{x}-\text{a}}{\text{x}+\text{a}}\Big)$
Solve the matrix equations:
$\begin{bmatrix}\text{x}&1\end{bmatrix}\begin{bmatrix}1&0\\-2&-3\end{bmatrix}\begin{bmatrix}\text{x}\\5\end{bmatrix}=0$
Find which of the function:
$\text{f(x)}=\begin{cases}\frac{2\text{x}^2-3\text{x}-2}{\text{x}-2},&\text{if x}\neq2\\5,&\text{if x}=2\end{cases}$
at x = 2