Question
Solve the following differential equation: $\frac{\text{dy}}{\text{dx}}-\text{y}=\text{xe}^{\text{x}}$

Answer

We have, $\frac{\text{dy}}{\text{dx}}-\text{y}=\text{xe}^{\text{x}}\ \dots(1)$
Clearly, it is a linear differential equation of the form $\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
where $\text{P}=-1$
$\text{Q}=\text{e}^{\text{x}}$
$\therefore I.F. =\text{e}^{\int\text{Pdx}}$
$=\text{e}^{-\int\text{dx}}$
$=\text{e}^{-\text{x}}$Multiplying both sides of $(1)$ by $e^{-x},$ we get
$\text{e}^{-\text{x}}\Big(\frac{\text{dy}}{\text{dx}}-\text{y}\Big)=\text{xe}^{\text{x}}\text{e}^{-\text{x}}$
$\Rightarrow\ \text{e}^{-\text{x}}\frac{\text{dy}}{\text{dx}}-\text{e}^{-\text{x}}\text{y}=\text{x}$
Integrating both sides with respect to $x,$ we get
$\text{e}^{-\text{x}}\text{y}=\int\text{xdx + C}$
$\Rightarrow\ \text{e}^{-\text{x}}\text{y}=\frac{\text{x}^2}{2}+\text{C}$
$\Rightarrow\ \text{y}=\Big(\frac{\text{x}^2}{2}+\text{C}\Big)\text{e}^{\text{x}}$
Hence, $\text{y}=\Big(\frac{\text{x}^2}{2}+\text{C}\Big)\text{e}^{\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

Solve the following differential equation:
$\text{x}\frac{\text{dy}}{\text{dx}}=\text{y}-\text{x}\cos^2\Big(\frac{\text{y}}{\text{x}}\Big)$
Evaluate the following integrals:
$\int\frac{\text{x}^2+9}{\text{x}^4+81}\ \text{dx}$
Find the angle between the following pairs of lines:$\frac{\text{x}-5}{1}=\frac{2\text{y}+6}{-2}=\frac{\text{z}-3}{1}$ and $\frac{\text{x}-2}{3}=\frac{\text{y}+1}{4}=\frac{\text{z}-6}{5}$
Solve the following initial value problems:
$\Big\{\text{x}\sin^2\Big(\frac{\text{y}}{\text{x}}\Big)-\text{y}\Big\}\text{dx + x dy}=0,\text{y}(1)=\frac{\pi}4$
Differentiate the following functions with respect to x:
$\tan^{-1}\Big\{\frac{\text{x}}{\text{a}+\sqrt{\text{a}^2-\text{x}^2}}\Big\},-\text{a}<\text{x}<\text{a}$
Evaluate the following integrals as limit of sum:
$\int\limits^2_{0}\big(\text{x}^2+4\big)\text{dx}$
Prove that:
$\begin{vmatrix}1&1+\text{p}&1+\text{p}+\text{q}\\2&3+2\text{p}&4+3\text{p}+2\text{p}\\3&6+3\text{p}&10+6\text{p}+3\text{q}\end{vmatrix}=1$
$\text{If y = 3} \cos (\log\text{x}) + 4\sin (\log \text{x}), \text{then show that x}^{2} .\frac{\text{d}^{2}{\text{y}}}{\text{dx}^{2}} + \text{y} = 0$
In a shop X, 30 tins of pure ghee and 40 tins of adulterated ghee which look alike, are kept for sale while in shop Y, similar 50 tins of pure ghee and 60 tins of adulterated ghee are there. One tin of ghee is purchased from one of the randomly selected shops and is found to be adulterated. Find the probability that it is purchased from shop Y. What measures should be taken to stop adulteration?
Find the value of $\lambda$ so that the following vectors are coplanar:
$\vec{\text{a}}=\hat{\text{i}}+3\hat{\text{j}},\vec{\text{b}}=5\hat{\text{k}},\vec{\text{c}}=\lambda\hat{\text{i}}-\hat{\text{j}}$