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

If a white ball is selected, what is the probability that it came from:
  1. Bag 2
  2. Bag 3
Evaluate:
$\int\limits^{\pi/2}_{0} \frac{2^{\sin\text{x}}}{2^{\sin\text{x}} + 2^{\cos \text{x}}}\text{dx}$
The two equal sides of an isosceles $\triangle$ with fixed base b are decreasing at the rate of $3 cm/s$. How fast is the area decreasing when the two equal sides are equal to the base?
$\text{If y =} \log\bigg(\frac{\text{x}}{\text{a + bx}}\bigg)^{\text{x}}, \text{prove that x}^{3} \frac{\text{d}^{2}\text{y}}{\text{dx}^{2}} = \bigg(\text{x}\frac{\text{dy}}{\text{dx}} - \text{y}\bigg)^{2}.$
Find the equations of the tangent and the normal to the following curves at the indicated points.
$\text{xy}=\text{c}^2\text{ at }\big(\text{ct},\frac{\text{c}}{\text{t}}\big)$
If $\text{y}=\frac{\text{e}^\text{x}-\text{e}^{-\text{x}}}{\text{e}^{\text{x}}+\text{e}^{-\text{x}}},$ prove that $\frac{\text{dy}}{\text{dx}}=1-\text{y}^2$
Solve the following differential equations:
$\sqrt{1+\text{x}^2+\text{y}^2+\text{x}^2\text{y}^2}+\text{xy}\ \frac{\text{dy}}{\text{dx}}=0$
Solve the following differential equation:
$\sqrt{\text{1 + x}^{2}+\text{y}^{2}+\text{x}^{2}\text{y}^{2}}+\text{xy}\frac{\text{dy}}{\text{dx}}=0.$
A swimming pool is to be drained for cleaning. If L represents the number of litres of water in the pool t seconds after the pool has been plugged off to drain and $L = 200(10 - t)^2$^. How fast is the water running out at the end of 5 seconds? What is the average rate at which the water flows out during the first 5 seconds?
Find the vector equation of the line passing through the points (-1, 0, 2) and (3, 4, 6).