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

If $\vec{\text{p}}=5\hat{\text{i}}+\lambda\hat{\text{j}}-3\hat{\text{k}}$ and $\vec{\text{q}}=\hat{\text{i}}+3\hat{\text{j}}-5\hat{\text{k}},$ then find the value of $\lambda,$ so that $\vec{\text{p}}+\vec{\text{q}}$ and $\vec{\text{p}}-\vec{\text{q}}$ are perpendicular vectora.
Find the shortest distance between the following pairs of lines whose cartesian equation are:
$\frac{\text{x}-1}{-1}=\frac{\text{y}+2}{1}=\frac{\text{z}-3}{-2}$ and $\frac{\text{x}-1}{1}=\frac{\text{y}+1}{2}=\frac{\text{z}+1}{-2}$
Evaluate the following integrals:
$\int\limits^{\text{a}}_{-\text{a}}\log\Big(\frac{\text{a}-\sin\theta}{\text{a}+\sin\theta}\Big)\text{d}\theta$
Find the inverse of the following matrices: $\begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\alpha & \sin\alpha \\ 0 & \sin\alpha & -\cos\alpha \end{bmatrix}$
The function $\text{f(x)}=\begin{cases}\frac{\text{x}^2}{\text{a}},&\text{if }0\leq\text{ x}<1\\\text{a},&\text{if }1\leq\text{x}<\sqrt{2}\\\frac{2\text{b}^2-4\text{b}}{\text{x}^2},&\text{if }\sqrt{2}\leq\text{x}<\infty\end{cases}$ is continuous on $(0,\infty),$ then find the most suitable value of a and b.
Verify Rolle's theorem of the following function on the indicated interval
$\text{f}(\text{x})=\sin\text{x}-\sin2\text{x}\text{ on }[0,\pi]$
A farmer mixes two brands P and Q of cattle feed. Brand P, costing Rs. 250 per bag, contains 3 units of nutritional element A, 2.5 units of element B and 2 units of element C. Brand Q costing Rs. 200 per bag contains 1.5 units of nutritional element A, 11.25 units of element B, and 3 units of element C. The minimum  of nutrients A, B and C are 18 units, 45 units and 24 units respectively. Determine the number of bags of each brand which should be mixed in order to produce a mixture having a minimum cost per bag? What is the minimum cost of the mixture per bag?
Find the intervals in which $f(x) = (x + 2)e^{-x}$ is increasing or decreasing.
Differential equation $\frac{\text{d}^2\text{y}}{\text{dx}^2}-3\frac{\text{dy}}{\text{dx}}+2\text{y}=0,\text{y}(0)=1,\text{y}(0)=3$
Function $\text{y}=\text{e}^\text{x}+\text{e}^{2\text{x}}$
For a loaded die, the probabilities of outcomes are given as under:
P(1) = P(2) = 0.2, P(3) = P(5) = P(6) = 0.1 and P(4) = 0.3. The die is thrown two times. Let A and B be the events, ‘same number each time’, and ‘a total score is 10 or more’, respectively. Determine whether or not A and B are independent.