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

Maximize $z=4 x_1+3 x_2$ subject to $3 x_1+x_2 \leq 15,3 x_1+4 x_2 \leq 24, x_1 \geq 0, x_2 \geq 0$
Solve the following differential equations:$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{ x, y}(0)=1$
Evaluate the following intregals:
$\int\frac{1}{5-4\cos\text{x}}\ \text{dx}$
Evaluate the following integrals:
$\int\frac{\text{x}^2+1}{\text{x}^4-\text{x}^2+1}\ \text{dx}$
Integrate the following w. r. t. x:

$\frac{x^2}{\left(x^2+1\right)\left(x^2-2\right)\left(x^2+3\right)}$

Evaluate the following intregals:
$\int\frac{\text{x}^2+\text{x}+1}{(\text{x}+1)^2(\text{x}+2)}\ \text{dx}$
Solve the following differential equations:
$\text{x}\frac{\text{dy}}{\text{dx}}+\cot\text{y}=0,$ given that $\text{y}=\frac{\pi}{4},$ when $\text{x}=\sqrt{2}.$
Solve the following differential equation
$\frac{\text{dy}}{\text{dx}}-\text{x}\sin^2\text{x}=\frac{1}{\text{x}\log\text{x}}$
A box manufacturer makes large and small boxes from a large piece of cardboard. The large boxes require 4 sq. metre per box while the small boxes require 3 sq. metre per box. The manufacturer is required to make at least three large boxes and at least twice as many small boxes as large boxes. If 60 sq. metre of cardboard is in stock, and if the profits on the large and small boxes are Rs. 3 and Rs. 2 per box, how many of each should be made in order to maximize the total profit?
In a hockey match, both teams A and B scored same number of goals upto the end of the game, so to decide the winner, the refree asked both the captains to throw a die alternately and decide that the team, whose captain gets a first six, will be declared the winner. If the captain of team A was asked to start, find their respective probabilities of winning the match and state whether the decision of the refree was fair or not.