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

Evaluate the following integrals:$\int\limits^{\frac{\pi}{2}}_{-\frac{\pi}{2}}\sin^4\text{x dx}$
Find the shortest distance between the following pairs of lines whose vector equation are:
$\vec{\text{r}}=(\lambda-1)\hat{\text{i}}+(\lambda+1)\hat{\text{j}}-(1+\lambda)\hat{\text{k}}$ and $\vec{\text{r}}=(1-\mu)\hat{\text{i}}+(2\mu-1)\hat{\text{j}}+(\mu+2)\hat{\text{k}}$
Evaluate the following integrals:
$\int\tan^5\text{x}\text{ dx}$
Prove that the median of a trapezium is parallel to the parallel sides of the trapezium and its length is half the sum of parallel sides.
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}=\frac{\text{y}(\text{x}+2\text{y})}{\text{x}(2\text{x}+\text{y})},\text{y}(1)=2$
Show that the line $3 x+4 y+5=0$ and the lines $(3 x+4 y)^2-3(4 x-3 y)^2=0$ form an equilateral triangle.
A hospital dietician wishes to find the cheapest combination of two foods, $A$ and $B$, that contains at least $0.5$ milligram of thiamin and at least $600$ calories. Each unit of A contains $0.12$ milligram of thiamin and $100$ calories, while each unit of $B$ contains $0.10$ milligram of thiamin and $150$ calories. If each food costs $10$ paise per unit, how many units of each should be combined at a minimum cost?
Find the vector equations of the following planes in scalar product form $(\vec{\text{r}}\cdot\vec{\text{n}}=\text{d}):$
$\vec{\text{r}}=(\hat{\text{i}}+\hat{\text{j}})+\lambda(\hat{\text{i}}+2\hat{\text{j}}-\hat{\text{k}})+\mu(-\hat{\text{i}}+\hat{\text{j}}-2\hat{\text{k}})$
Find $\frac{\text{dy}}{\text{dx}}$
$\text{y}=\text{x}^{\text{x}}+(\sin\text{x})^\text{x}$
Evalute the following integrals:
$\int\frac{\sin2\text{x}}{\text{a}\cos^2\text{x}+\text{b}\sin^2\text{x}}\text{dx}$