Question
Solve the following initial value problems:
$\text{x}\frac{\text{dy}}{\text{dx}}-\text{y}=(\text{x}+1)\text{e}^{\text{x}},\text{ y}(1)=0$

Answer

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

Reduce the equation $\vec{\text{r}}\cdot(\hat{\text{i}}-2\hat{\text{j}}+2\hat{\text{k}})+6=0$ to the normal form and, hence, find the length of the perpendicular from the origin to the plane.
Find the general solution of $\text{y}^2\text{dx}+(\text{x}^2-\text{xy}+\text{y}^2)\text{dy}=0.$
By using the properties of definite integrals, evaluate the integral $\int_{0}^{\frac{\pi}{2}} \frac{\sin ^{\frac{3}{2}} x d x}{\sin ^{\frac{3}{2}} x+\cos ^{\frac{3}{2}} x}$
If $\text{A}=\begin{bmatrix}1&0&-1\\2&1&3\\0&1&1\end{bmatrix},$ then verify that $\text{A}^{2}+\text{A}=\text{A}(\text{A}+\text{I}),$ where I is 3 × 3 unit matrix.
A trust invested some money in two type of bonds. The first bond pays 10% interest and bond pays 12% interest. The trust received 2,800 as interest. However, if trust had interchanged money in bonds, they would have got 100 less as interest. Using matrix method, find the amount invested by the trust. Which value is reflected in this question?
Show that x = 2 is a root of the equation $\begin{vmatrix}\text{x}&-6&-1\\2&-3\text{x}&\text{x}-3\\-3&2\text{x}&\text{x}+2\end{vmatrix}=0$ and solve it completely.
m is said to be related to n if m and n are integers and m - n is divisible by 13. Does this define an equivalence relation?
Form the differential equation of the family of ellipses having foci on y-axis and centre at origin.
If a, b and c are all non-zero and $\begin{vmatrix}1+\text{a}&1&1\\1&1+\text{b}&1\\1&1&1+\text{c} \end{vmatrix}=0,$ then prove that $\frac{1}{\text{a}}+\frac{1}{\text{b}}+\frac{1}{\text{c}}+1=0.$
Solve the following differential equation:
$\text{x}\frac{\text{dy}}{\text{dx}}+2\text{y}=\text{x}\cos\text{x}$