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

Find the maximum and the minimum values, if any, without using derivaives of the following functions:

f(x) = 16x2 - 16x + 28 on R.

If $\text{y}=\tan^{-1}\Big(\frac{\sqrt{1+\text{x}}-\sqrt{1-\text{x}}}{\sqrt{1+\text{x}}+\sqrt{1+\text{x}}}\Big),$ find $\frac{\text{dy}}{\text{dx}}.$
Given that the two numbers appearing on throwing two dice are different. Find the probability of the event 'the sum of numbers on the dice is 4'.
If $\text{A}=\begin{bmatrix}2&3\\1&2\end{bmatrix}$ and $\text{I}=\begin{bmatrix}1&0\\0&1\end{bmatrix},$ then find $\lambda,\mu$ so that $\text{A}^2=\lambda\text{A}+\mu\text{I}$
Differentiate the following functions with respect to x:
$\text{e}^{\sin\text{x}}+(\tan\text{x})^\text{x}$
Find the distance of the point (1, -2, 4) from plane passing throuhg the point (1, 2, 2) and perpendicular of the planes x - y + 2z = 3 and 2x - 2y + z + 12 = 0
Evaluate the following integrals:
$\int_{0}^\limits{\text{a}}\sqrt{\text{a}^2-\text{x}^2}\text{ dx}$
Differentiate $\sin^{-1}\Big(4\text{x}\sqrt{1-4\text{x}^2}\Big)$ with respect to $\sqrt{1-4\text{x}^2},$ if:
$\text{x}\in\Big(-\frac{1}{2},-\frac{1}{2\sqrt{2}}\Big)$
Find the angle between the following pairs of lines:

$\frac{-\text{x}+2}{-2}=\frac{\text{y}-1}{7}=\frac{\text{z}+3}{-3}$ and $\frac{\text{x}+2}{-1}=\frac{2\text{y}-8}{4}=\frac{\text{z}-5}{4}$

Find the equation of the plane that contains the line of intersection of the planes $\vec{\text{r}}\cdot(\hat{\text{i}}+2\hat{\text{j}}+3\hat{\text{k}})-4=0$ and $\vec{\text{r}}\cdot(2\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}})+5=0$ and which is perpendicular to the plane $\vec{\text{r}}\cdot(5\hat{\text{i}}+3\hat{\text{j}}-6\hat{\text{k}})+8=0.$