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

Evaluate the following intregals:
$\int\frac{\text{x}}{(\text{x}^2+1)(\text{x}-1)}\ \text{dx}$
Solve the following differential equations:
$\text{x}\frac{\text{dy}}{\text{dx}}=\text{x + y}$
Prove that $\begin{vmatrix}a^2&bc&ac+c^2\\a^2+ab&b^2&ac\\ab&b^2+bc&c^2\end{vmatrix}=4a^2b^2c^2$
If $\vec{\text{a}}=\hat{\text{i}}+\hat{\text{j}}+2\hat{\text{k}}$ and $\vec{\text{b}}=2\hat{\text{i}}+\hat{\text{j}}-2\hat{\text{k}},$ find the unit vector in the direction of:
  1. $6\vec{\text{b}}$
  2. $2\vec{\text{a}}-\vec{\text{b}}$
Differentiate the following functions with respect to x:
$\log\big\{\text{x}+2+\sqrt{\text{x}^2+4\text{x}+1}\big\}$
Find $\frac{\text{dy}}{\text{dx}},$ when
$\text{x}=\text{a}(\cos\theta+\theta\sin\theta)$ and $\text{y}=\text{a}(\sin\theta-\theta\sin\theta-\theta\cos\theta)$
 find the area of the region bounded by y = |x - 1| and y = 1.
If $\text{x}=\text{a}\sec\theta,\text{y}=b\tan\theta$ prove that $\frac{\text{d}^2\text{y}}{\text{dx}^2}=-\frac{\text{b}^4}{\text{a}^2\text{y}^3}$
Find the vector equations of the following planes in scalar product form $(\vec{\text{r}}\cdot\vec{\text{n}}=\text{d}):$
$\vec{\text{r}}=(\hat{\text{i}}+\hat{\text{j}})+\lambda(\hat{\text{i}}+2\hat{\text{j}}-\hat{\text{k}})+\mu(-\hat{\text{i}}+\hat{\text{j}}-2\hat{\text{k}})$
Find the angle between the follwing pairs of lines:

$\vec{\text{r}}=\big(3\hat{\text{i}}+2\hat{\text{j}}-4\hat{\text{k}}\big)+\lambda\big(\hat{\text{i}}+2\hat{\text{j}}+2\hat{\text{k}}\big)$ and $\vec{\text{r}}=\big(5\hat{\text{j}}-2\hat{\text{k}}\big)+\mu\big(3\hat{\text{i}}+2\hat{\text{j}}+6\hat{\text{k}}\big)$