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

Evaluate the following integrals:
$\int\limits^{\frac{\pi}{2}}_{0}\frac{\sin\text{x}\cos\text{x}}{\cos^2\text{x}+3\cos\text{x}+2}\text{ dx}$
If $\text{A}=\begin{bmatrix}0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{bmatrix},$ find A-1 and show that $\text{A}^{-1}=\frac{1}{2}(\text{A}^2-3\text{I}).$
$\text{A}=\begin{bmatrix}3&-4&2\\ 2&3&5\\ 1&0&1\end{bmatrix}$, find A-1 and hence solve the following system of equations:
3x - 4y +2z = -1, 2x + 3y + 5z = 7, x + z = 2
Evaluate the following integrals:
$\int\frac{1}{1+\sqrt{\text{x}}}\text{dx}$
If $\text{f(x)}=\frac{\tan\big(\frac{\pi}{4}-\text{x}\big)}{\cot2\text{x}}$ for $\text{x}\neq\frac{\pi}{4},$ find the value which can be assigned to f(x) at $\text{x}=\frac{\pi}{4}$ so that the function f(x) becomes continuous every where in $\Big[0,\frac{\pi}{2}\Big]$  
Prove the following using properties of determinants:
$ \begin{vmatrix} \text{a + b + 2c} & \text{a} & \text{b} \\ \text{c} & \text{b + c + 2a} & \text{b} \\ \text{c} & \text{a} & \text{c + a + 2b} \end{vmatrix}= 2(\text{a + b + c})^3 $
The slope of the tangent at each point of a curve is equal to the sum of the coordinates of the point. Find the curve that passes through the origin.
Find the values of a and b so that the function $\text{f(x)}\begin{cases}\text{x}^2+3\text{x}+\text{a}, & \text{if x}\leq1\\\text{bx}+2, & \text{if x} > 1\end{cases}$ is differentiable at each $\text{x}\in\text{R}.$
Integrate the function in Exercise:
$\text{e}^{2\text{x}}\sin\text{x}$
Find the equation of the plane through (3, 4, -1) which is parallel to the plane $\vec{\text{r}}\cdot(2\hat{\text{i}}-3\hat{\text{j}}+5\hat{\text{k}})+2=0$