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

Answer

Here, $\frac{\text{dy}}{\text{dx}}+\frac{2\text{y}}{\text{x}}=\cos\text{x}$ It is a linear differential equation. Comparing it with, $\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$ $\text{P}=\frac{2}{\text{x}},\text{Q}=\cos\text{x}$ I.F. $=\text{e}^{\int\text{Pdx}}$ $=\text{e}^{2\int\frac{1}{\text{x}}\text{dx}}$ $=\text{e}^{2\log|\text{x}|}$ $=\text{x}^2$Solution of the equation is given by,
$\text{y}\times(\text{I.F.}=\int\text{Q}\times(\text{I.F.})\text{dx + C}$ $\text{y}(\text{x}^2)=\int\cos\text{x}(\text{x}^2)\text{dx + C}$ $\text{yx}^2=\int\text{x}^2\cos\text{xdx + C}$ $=\text{x}^2\int\cos\text{x}-\int(2\text{x}\times\int\cos\text{xdx})\text{dx + C}$ Usind integration by parts $\text{yx}^2=\text{x}^2\sin\text{x}-\int2\text{x}\sin\text{xdx + C}$ $=\text{x}^2\sin\text{x}-2\big[\text{x}\times\int\sin\text{xdx}-\int(1\times\int\sin\text{xdx})\text{dx}\big]+\text{C}$ $=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\int\cos\text{xdx + C}$ $\text{yx}^2=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\sin\text{x + C}$ $\text{y}=\sin\text{x}+\frac{2}{\text{x}}\cos\text{x}-\frac{2}{\text{x}^2}\sin\text{x}+\frac{\text{C}}{\text{x}^2}$

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 absolute maximum and the absolute minimum value of the following functions in the given intervals:
$f(x) = (x - 1)^2 + 3$ in $[-3, 1]$
If a young man drives his scooter at a speed of 25km/hr, he has to spend Rs. 2 per km on petrol. If he drives the scooter at a speed of 40km/hr, it produces air pollution and increases his expenditure on petrol to Rs. 5 per km. He has a maximum of Rs. 100 to spend on petrol and travel a maximum distance in one hour time with less polution. Express this problem as an LPP and solve it graphically. What value do you find here.
If $\text{A}=\begin{bmatrix}-2\\4\\5\end{bmatrix},\text{B}=\begin{bmatrix}1&3&-6\end{bmatrix},$ verify that $(AB)^T = B^TA^T$
Arun and Tarun appeared for an interview for two vacancies. The probability of Arun's selection is $\frac{1}{4}$ and that to Tarun's rejection is $\frac{2}{3}$. Find the probability that at least one of them will be selected.
Integrate the following w.r.t. x
$\frac{x^{2} - 3x + 1}{\sqrt{1 - x^{2}}}$
Find the equation of tangent to the curve $x = \sin 3_{t}, y = \cos 2_{t}, \text{at, t} = \frac{\pi}{4} $
$\text{If (ax + b)} \text{e}^{\text{y/x}} = \text{x},\text{then show that}$
$\text{x}^{3} \bigg(\frac{\text{d}^{2}\text{y}}{\text{dx}^{2}}\bigg) = \bigg(\text{x}\frac{\text{dy}}{\text{dx}}- \text{y}\bigg)^{2} $
Show that x = 2 is a root of the equation $\begin{vmatrix}\text{x}&-6&-1\\2&-3\text{x}&\text{x}-3\\-3&2\text{x}&\text{x}+2\end{vmatrix}=0$ and solve it completely.
Solve the following differential equation:
$\text{y e}^{\frac{\text{x}}{\text{y}}}\text{dx}=\big(\text{xe}^{\frac{\text{x}}{\text{y}}}+\text{y}\big)\text{dy}$
Show that the lines $\frac{\text{x}+1}{3}=\frac{\text{y}+3}{5}=\frac{\text{z}+5}{7}$ and $\frac{\text{x}-2}{1}=\frac{\text{y}-4}{3}=\frac{\text{z}-6}{5}$ intersect. Find their point of intersection.