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

Differentiate the following functions from first principles:
$\text{e}^{\sqrt{2\text{x}}}$
Find the equations of the tangent and the normal to the following curves at the indicated points.
$\text{x}^{\frac{2}{3}}+\text{y}^{\frac{2}{3}}=2\text{ at }(1,1)$
Find the particular solution of the differential equation $\frac{\text{dx}}{\text{dy}} + \text{x}\cot \text{y}=2\text{y} + \text{y}^{2} \cot \text{y},\text{ y}\neq0$ given that x = 0 when $\text{y}=\frac{\pi}{2}$
Let $A = \{1, 2, 3\}$. Then, the number of equivalence relations containing $(1, 2)$ is:
Evaluate the following intregals:
$\int\frac{5\text{x}}{(\text{x}+1)(\text{x}^2-4)}\text{dx}$
Find matrix A such that
$\begin{pmatrix} 2 & -1 \\ 1 & 0 \\ -3 & 4 \end{pmatrix}\text{A} = \begin{pmatrix} -1 & -8 \\ 1 & -2 \\ 9 & 22 \end{pmatrix}$
Find the length and the foot of the perpendicular from the point (1, 1, 2) to the plane $\vec{\text{r}}.\big(\hat{\text{i}}-2\hat{\text{j}}+4\hat{\text{k}}\big)+5=0.$
Evaluate the following definite integral as limit of sum:
$\int\limits^{\text{b}}_{\text{a}}\text{x dx}$
Vitamins $A$ and $B$ are found in two different foods $F_1$ and $F_2$. One unit of food $F_1$ contains 2 units of vitamin $A$ and 3 units of vitamin $B$. One unit of food $F_2$ contains 4 units of vitamin $A$ and 2 units of vitamin $B$. One unit of food $F_1$ and $F_2$ cost Rs 50 and 25 respectively. The minimum daily requirements for a person of vitamin $A$ and $B$ is 40 and 50 units respectively. Assuming that anything in excess of daily minimum requirement of vitamin $A$ and $B$ is not harmful, find out the optimum mixture of food $\mathrm{F}_1$ and $\mathrm{F}_2$ at the minimum cost which meets the daily minimum requirement of vitamin A and B . Formulate this as a LPP.
Solve the following systems of homogeneous linear equations by matrix method:
$x + y - 6z = 0$
$x - y + 2z = 0$
$-3x + y + 2z = 0$