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

Prove that: If the diagonals of a quadrilateral bisect each other at right angles, then it is a rhombus.
Given $\vec{\text{a}}=\frac{1}{7}\big(2\hat{\text{i}}+3\hat{\text{j}}+6\hat{\text{k}}\big),\vec{\text{b}}=\frac{1}{7}\big(3\hat{\text{i}}-6\hat{\text{j}}+2\hat{\text{k}}\big),$$\vec{\text{c}}=\frac{1}{7}\big(6\hat{\text{i}}+2\hat{\text{j}}-3\hat{\text{k}}\big),\hat{\text{i}},\hat{\text{j}},\hat{\text{k}}$
being a right handed orthogonal system of unit vector in spece, show that $\vec{\text{a}},\vec{\text{b}},\vec{\text{c}}$ is also another system.
Find the angle between the line joining the points (3, -4, -2) and (12, 2, 0) and the plane 3x - y + z = 1.
Evaluate the following integrals: $\int\frac{(\text{x}^2+1)(\text{x}^2+2)}{(\text{x}^2+3)(\text{x}^2+4)}\ \text{dx}$
Differentiate the following functions with respect to x:
$\sin^{-1}\Big\{\frac{\sin\text{x}+\cos\text{x}}{\sqrt{2}}\Big\},-\frac{3\pi}{4}<\text{x}<\frac{\pi}{4}$
Find the integrals of the function cos 2x cos 4x cos 6x
Anil wants to invest at most Rs. 12000 in Saving Certificates and National Saving Bonds. According to rules, he has to invest at least Rs. 2000 in Saving Certificates and at least Rs. 4000 in National Saving Bonds. If the rate of interest on saving certificate is 8% per annum and the rate of interest on National Saving Bond is 10% per annum, how much money should he invest to earn maximum yearly income? Find also his maximum yearly income.
Integrate the rational function $\frac{3 x+5}{x^{3}-x^{2}-x+1}$
If $(\cos x)^y= (\sin y)^x$, find $\frac{\text{dy}}{\text{dx}}.$
Verify A (adj. A) = (adj. A) A = |A|I.
$\begin{bmatrix}1&-1&2\\3&0&-2\\1&0&3\end{bmatrix}$