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

Show that the following systems of linear equations is inconsistent:
3x - y + 2z = 6,
2x - y + z = 2,
3x + 6y + 5z = 20
Minimize : z = 6x + 21y subject to x + 2y ≥ 3, x + 4y ≥ 4, 3x + y ≥ 3, x ≥ 0, y ≥ 0.
Verify Rolle's theorem of the following function on the indicated interval
$\text{f}(\text{x})=\log(\text{x}^2+2)-\log3\text{ on }[-1,1]$
Find the points of local maxima or local minima and corresponding local maximum and local minimum values of the following functions. Also, find the points of inflection,
$\text{f}'(\text{x})=\text{x}^{4}-62\text{x}^{2}+120\text{x}+9$
Show that the following system of linear equation is inconsistent:
4x − 5y − 2z = 2
5x − 4y + 2z = −2
2x + 2y + 8z = −1
Solve the matrix equations:
$\begin{bmatrix}\text{x}&-5&-1\end{bmatrix}\begin{bmatrix}1&0&2\\0&2&1\\2&0&3\end{bmatrix}\begin{bmatrix}\text{x}\\4\\1\end{bmatrix}=0$
Determine the binomial distribution whose mean is 9 and variance $\frac{9}{4}.$
Differentiate the following functions with respect to x:
$\tan^{-1}\Big(\frac{2^{\text{x}+1}}{1-4^{\text{x}}}\Big),-\infty<\text{x}<0$
A chemical company produces two compounds, A and B. The following table gives the units of ingredients, C and D per kg of compounds A and B as well as minimum requirements of C and D and costs per kg of A and B. Find the quantities of A and B which would give a supply of C and D at a minimum cost.
 
Compound
Minimum requirement
A
B
 
Ingredient C
$1$
$2$
$80$
Ingredient D
$3$
$1$
$75$
Coist (in Rs.) per Kg
$4$
$6$
 
Experiments show that radium disintegrates at a rate proportional to the amount of radium present at the moment. Its half - life is 1590 years. What percentage will disappear in one year?