Question
Solve the following differential equation:

$\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}=\text{x}\text{e}^{\text{x}}$

Answer

Here, $\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}=\text{x}\text{e}^{\text{x}}$

$\frac{\text{dy}}{\text{dx}}+\frac{\text{y}}{\text{x}}=\text{e}^{\text{x}}$

It is a linear differential equation, comparing it with

$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$

$\text{P}=\frac{1}{\text{x}}, \text{Q}=​​​​\text{e}^{\text{x}}$

I.F. $=\text{e}^{\int\text{Pdx}}$

$=\text{e}^{\int\frac{1}{\text{x}}\text{dx}}$

$=\text{e}^{\log\text{x}}$

$=\text{x}$

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}\times(\text{x})=\int\text{e}^{\text{x}}\times\text{xdx + C}$

$\text{xy}=\text{x}\int\text{e}^{\text{x}}\text{dx}-\int(1\times\int\text{e}^{\text{x}}\text{dx})\text{dx + C}$

Using integration by parts

$=\text{x}\text{e}^{\text{x}}-\int\text{e}^{\text{x}}\text{dx}+\text{C}$

$=\text{x}\text{e}^{\text{x}}-\text{e}^{\text{x}}+\text{C}$

$\text{xy}=(\text{x}-1)\text{e}^{\text{x}}+\text{C}$

$\text{y}=\Big(\frac{\text{x}-1}{\text{x}}\Big)\text{e}^{\text{x}}+\frac{\text{C}}{\text{x}},\text{x}>0$

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 $\hat{\text{i}}+\hat{\text{j}}+\hat{\text{k}},\ 2\hat{\text{i}}+5\hat{\text{J}},\ 3\hat{\text{i}}+2\hat{\text{j}}-3\hat{\text{k}}$ and $\hat{\text{i}}-6\hat{\text{j}}-\hat{\text{k}}$ respectively are the position vectors of points A, B, C and D, then find the angle between the straight lines AB and CD. Find whether $\vec{\text{AB}}$ and $\vec{\text{CD}}$ are collinear or not.
Find the equation of the plane passing through the intersection of the planes.
$ \vec{r}.(2\hat{\text{i}}+\hat{\text{j}}+3\hat{\text{k})}=7,\text{ }\vec{r}.(2\hat{\text{i}}+5\hat{\text{j}}+3\hat{\text{k}})=9$and the point (2, 1, 3).
Solve the following differential equations $(1+\text{x}^2)\frac{\text{dy}}{\text{dx}}+(1+\text{y}^2)=0,$ given that $\text{y}=1,$ when $\text{x}=0.$
A coin is tossed thrice and all the eight outcomes are assumed equally likely. In which of the following cases are the following events A and B are independent?
A = The number of heads is odd,
B = The number of tails is odd.
If $\int_{0}^\limits{\text{k}}\frac{1}{2+8\text{x}^2}\text{ dx}=\frac{\pi}{16},$ find the value of k.
Find the shortest distance between the following pairs of lines whose vector equation are:
$\vec{\text{r}}=\big(2\hat{\text{i}}-\hat{\text{j}}-\hat{\text{k}}\big)+\lambda\big(2\hat{\text{i}}-5\hat{\text{j}}+2\hat{\text{k}}\big)$ and, $\vec{\text{r}}=\big(\hat{\text{i}}+2\hat{\text{j}}+\hat{\text{k}}\big)+\mu\big(\hat{\text{i}}-\hat{\text{j}}+\hat{\text{k}}\big)$
The two adjecent sides of a parallelogram are $2\hat{\text{i}}-4\hat{\text{j}}+5\hat{\text{k}}$ and $\hat{\text{i}}-2\hat{\text{j}}-3\hat{\text{k}}.$ Find the unit vector parallel to one of its diagonals. Also, find its area.
Find the value of $\lambda$ such that the line $\frac{\text{x}-2}{6}=\frac{\text{y}-1}{\lambda}=\frac{\text{z}+5}{-4}$ is perpendicular to the plane 3x - y - 2z = 7.
Assume that a rain drop evaporates at a rate proportional to its surface area. Form a differential equation involving the rate of change of the radius of the rain drop.
Integrate the function in Exercise:
$\sin^{-1}\Big(\frac{2\text{x}}{1+\text{x}^2}\Big)$