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

Evaluvate the following intregals:
$\int\frac{2\tan\text{x}+3}{3\tan\text{x}+4}\ \text{dx}$
Show that the curve $\frac{\text{x}^2}{\text{a}^2+\lambda_1}+\frac{\text{y}^2}{\text{b}^2+\lambda_1}=1$ and $\frac{\text{x}^2}{\text{a}^2+\lambda_2}+\frac{\text{y}^2}{\text{b}^2+\lambda_2}=1$ intersect at right angles.
Solve the system of linear equation, using matrix method $x - y + 2z = 7; 3x + 4y - 5z = -5; 2x - y + 3z = 12$
Suppose we have four boxes A, B, C and D containing coloured marbles as given below:

Box

Marble colour

 

Red

White

Black

A

B

C

D

1

6

8

0

6

2

1

6

3

2

1

4

One of the boxes has been selected at random and a single marble is drawn from it. If the marble is red, what is the probability that it was drawn from box A?, box B? box C?

Show that the points A(1, -2, -8), B(5, 0, -2) and C(11, 3, 7) are collinear, and find the ratio in which B divides AC.
If $e^x + x^y = e^{x+y},$ prove that $\frac{\text{dy}}{\text{dx}}+\text{e}^{\text{y}-\text{x}}=0$
 find the area of the region in the first quadrant by the $x-$axis, the line $y = x$ and circle $x^2+ y^2 = 32.$
Solve the following differential equation
$\text{e}^{\frac{\text{dy}}{\text{dx}}}=\text{x}+1;\text{y}(0)=3$
Using integration find the area of the region bounded by the curve $\text{y}=\sqrt{4-\text{x}^2},\text{ x}^2+\text{y}^2-4\text{x}=0$ and the $x-$axis.
A square piece of tin of side $18\ cm$ is to be made into a box without top by cutting a square from each corner and folding up the flaps to form a box. What should be the side of the square to be cut off so that the volume of the box is maximum? Find this maximum volume.