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

If y(x) is a solution of the different equation $\Big(\frac{2+\sin\text{x}}{1+\text{y}}\Big)\frac{\text{dy}}{\text{dx}}=-\cos\text{x}$ and $\text{y}(0)=1,$ then find the value of $\text{y}\Big(\frac{\pi}{2}\Big).$
The contents of three bags I, II and III are as follows:
Bag I : 1 white, 2 black and 3 red balls,
Bag II : 2 white, 1 black and 1 red ball;
Bag III : 4 white, 5 black and 3 red balls.
A bag is chosen at random and two balls are drawn. What is the probability that the balls are white and red?
Verify Lagrange's mean value theorem for the following function on the indicated intervals. find a point 'c' in the indicated interval as stated by the Lagrange's mean value theorem.
f(x) = x2 - 2x + 4 on [1, 5]
Find the shortest distance between the lines
$\vec{\text{r}}=\Big(4\hat{\text{i}}-\hat{\text{j}}\Big)+\lambda\Big(\hat{\text{i}}+2\hat{\text{j}}-3\hat{\text{k}}\Big)$ $\text{and}\ \vec{\text{r}}=\Big(\hat{\text{i}}-\hat{\text{j}}+2\hat{\text{k}}\Big)+\mu\Big(2\hat{\text{i}}+4\hat{\text{j}}-5\hat{\text{k}}\Big).$
Verify the Rolle’s theorem for each of the functions:
$\text{f(x)}=\log(\text{x}^2+2)-\log3\text{ in }[-1,1].$
If four points A, B, C and D with position vectors $4\hat{\text{i}}+3\hat{\text{j}},5\hat{\text{i}}+\text{x}\hat{\text{j}}+7\hat{\text{k}},5\hat{\text{i}}+3\hat{\text{j}}$ and $7\hat{\text{i}}+6\hat{\text{j}}+\hat{\text{k}}$ respectively are coplanar, then find the value of x.
Show that the following system of linear equation is inconsistent:
4x − 2y = 3
6x − 3y = 5
Evaluate the following integrals as limit of sum:
$\int\limits^3_0(\text{x}+4)\text{dx}$
Evaluate the following integrals:
$\int(\tan^{-1}\text{x}^2)\text{x dx}$
Find the value of k if f(x) is continuous at $\text{x}=\frac{\pi}{2},$ where
$\text{f}\text{(x)}=\begin{cases}\frac{\text{k}\cos\text{x}}{\pi-2\text{x}}, &\text{ x}\neq\frac{\pi}{2}\\3, &\text{ x}=\frac{\pi}{2}\end{cases}$