Question
Solve the following differential equation
$\frac{\text{dy}}{\text{dx}}-\text{x}\text{e}^\text{x}-\frac{5}{2}+\cos^2\text{x}$

Answer

$\frac{\text{dy}}{\text{dx}}-\text{x}\text{e}^\text{x}-\frac{5}{2}+\cos^2\text{x}$
$\text{dy}=\Big(\text{xe}^\text{x}-\frac{5}{2}+\cos^2\text{x}\Big)\text{dx}$
$\int\text{dy}=\int\text{xe}^\text{x}\text{dx}-\frac{5}{2}\int\text{dx}+\cos^2\text{x dx}$
$\int\text{dy}=\int\text{xe}^\text{x}\text{dx}-\frac{5}{2}\int\text{dx}+\int\Big(\frac{1+\cos2\text{x}}{2}\Big)\text{dx}$
$=\int\text{xe}^\text{x}-\frac{5}{2}\int\text{dx}+\frac{1}{2}\int\text{dx}+\frac{1}{2}\int\cos2\text{x dx}$
$\int\text{dy}=\int\text{xe}^\text{x}-2\int\text{dx}+\frac{1}{2}\int\cos2\text{x dx}$
$\text{y}=[\text{x}\times\int\text{e}^\text{x}\text{dx}-\int(1\times\int\text{e}^\text{x}\text{dx})\text{dx}]-2\text{x}+\frac{1}{2}\frac{\sin2\text{x}}{2}+\text{C}$
Using integration by parts
$\text{y}=\text{xe}^\text{x}-\text{e}^\text{x}-2\text{x}+\frac{1}{4}\sin2\text{x}+\text{C}$
$\text{y}=\text{xe}^\text{x}-\text{e}^\text{x}-2\text{x}+\frac{1}{4}\sin2\text{x}+\text{C}$

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

Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+\frac{\text{y}}{\text{x}}=\text{x}^3$
Using matrices, solve the following system of equations:
$\text{2x - 3y + 5z} = 11$
$\text{3x + 2y - 4z} = -5$
$\text{x + y - 2z} = -3$
Evaluate the following integrals:
$\int\limits^1_{-1}\log\Big(\frac{2-\text{x}}{2+\text{x}}\Big)\text{dx}$
Maximize $Z = -x_1 + 2x_2$
Subject to
$-\text{x}_1+3\text{x}_2\leq10$
$\text{x}_1+\text{x}_2\leq6$
$\text{x}_1+\text{x}_2\leq2$
$\text{x}_1,\text{x}_2\geq0$
If $\text{A}=\begin{bmatrix}\cos\alpha+\sin\alpha&\sqrt{2}\sin\alpha\\-\sqrt{2}\sin\alpha&\cos\alpha-\sin\alpha\end{bmatrix},$ prove that
$ \text{A}^2=\begin{bmatrix}\cos\text{n}\alpha+\sin\text{n}\alpha&\sqrt{2}\sin\text{n}\alpha\\-\sqrt{2}\sin\text{n}\alpha&\cos\text{n}\alpha-\sin\text{n}\alpha\end{bmatrix}$ for all $\text{n}\in\text{N}.$
$\text{Find} \int \frac{\sqrt{x}}{\sqrt{\text{a}^{3}} - \text{x}^{3}}\text{dx}.$
Find the distance of the point (- 1, - 5, - 10), from the point of intersection of the line
$\overrightarrow{\text{r}}=(2\hat{\text{i}}-\hat{\text{j}}+2\hat{\text{k})}+\lambda(3\hat{\text{i}}+4\hat{\text{j}}+2\hat{\text{k})}\text{ and the plane}\overrightarrow{\text{r}}\cdot(\hat{\text{i}}-\hat{\text{j}}+\hat{\text{k})}=5.$
Verify Rolle's theorem of the following function on the indicated interval
$\text{f}(\text{x})=\sin\text{x}-\sin2\text{x}\text{ on }[0,\pi]$
Find the equation of a curve passing through the point (0, 0) and whose differential equation is $\frac{\text{dy}}{\text{dx}}=\text{e}^{\text{x}}\sin\text{x.}$
If the mean and variance of a random variable X having a binomial distribution are 4 and 2 respectively, find P (X = 1).