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

Form the differential equation of all the circle which pass through the origin and whose centres lies in x-axis.
If a1, a2, a3, ..., an is an arithmetic progression with common difference d, then evaluate the following expression.
$\tan\bigg[\tan^{-1}\Big(\frac{\text{d}}{1+\text{a}_1\text{a}_2}\Big)+\tan^{-1}\Big(\frac{\text{d}}{1+\text{a}_2\text{a}_3}\Big)+\tan^{-1}\Big(\frac{\text{d}}{1+\text{a}_3\text{a}_4}\Big)+\ .....\ +\tan^{-1}\Big(\frac{\text{d}}{1+\text{a}_{\text{n}-1}\text{a}_\text{n}}\Big)\bigg]$
If $\text{P}\big(\text{x}\big)=\begin{bmatrix}\cos\text{x}&\sin\text{x}\\-\sin\text{x}&\cos\text{x}\end{bmatrix},$ then show that P(x)P(y) = P(x + y) = P(y)P(x).
Solve the following systems of linear equations by cramer's rule:
2y - 3z = 0,
x + 3y = -4,
3x + 4y = 3
Find the coordinates of the foot of perpendicular drawn from the point A(1, 8, 4) to the line joining the points B(0, -1, 3) and C(2, -3, -1).
Find $\frac{\text{dy}}{\text{dx}}$ in the following cases:
(x2 + y2)2 = xy
Evaluate the following integrals:

$\int\frac{\sin2\text{x}}{\sqrt{\sin^4\text{x}+4\sin^2\text{x}-2}}\text{ dx}$

Find a particular solution of the differential equation $(\text{x}-\text{y})(\text{dx}+\text{dy})=\text{dx}-\text{dy},\ \text{given that y}=-1,$ $\text{when x}=0. \ (\text{Hint: put x}-\text{y}=\text{t})$ 
If xy = e(x–y), then show that $\frac{\text{dy}}{\text{dx}} = \frac{\text{y (x - 1)}}{\text{x (y + 1)}}.$
If possible, find BA and AB, where $\text{A}=\begin{bmatrix}2&1&2\\1&2&4\end{bmatrix}$ and $\text{B}=\begin{bmatrix}4&1\\2&3\\1&2\end{bmatrix}.$