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 intregals:
$\int\frac{3+4\text{x}-\text{x}^2}{(\text{x}+2)(\text{x}-1)}\ \text{dx}$
Verify Rolle's theorem of the following function on the indicated interval
$\text{f}(\text{x})=4^{\sin\text{x}}\text{ on }[0,\pi]$
Show that the plane vector equation is $\vec{\text{r}}\cdot(\hat{\text{i}}+2\hat{\text{j}}-\hat{\text{k}})=1$ and the line whose vector equation is $\vec{\text{r}}=(-\hat{\text{i}}+\hat{\text{j}}+\hat{\text{k}})+\lambda(2\hat{\text{i}}+\hat{\text{j}}+4\hat{\text{k}})$ are parallel. Also, find the distance between them.
Using direction ratios show that the points A(2, 3, -4) B(1, - 2, 3) and C(3, 8, -11) are collinear.
Find the point on the curvey $y^2= 2x$ which is at a minimum distance from the point $(1, 4)$.
Five bad oranges are accidently mixed with 20 good ones. If four oranges are drawn one by one successfully with replacement, then find the probability distribution of number of bad oranges drawn. Hence find the mean and variance of the distribution.
If $\text{A} = \begin{bmatrix} 1 & -1 & 0 \\ 2 & 3 & 4 \\ 0 & 1 & 2 \end{bmatrix} \text{and B = } \text{A} = \begin{bmatrix} 2 & 2 & -4 \\ -4 & 2 & -4 \\ 2 & -1 & 5 \end{bmatrix}$ are two square matrices, find AB and hence solve the system of linear
equations x – y = 3, 2x + 3y + 4z = 17 and y + 2z = 7.
Evaluate the following integrals:
$\int\text{e}^{2\text{x}}\sin(3\text{x}+1)\text{dx}$
Is the function defined by $\text{f(x)}= \begin{cases}\text{x} + 5,\ \ \text{if x}\leq 1 \\\text{x} - 5,\ \ \text{if x}>1\end{cases}$
a continuous function?
If $\vec{\text{a}}=2\hat{\text{i}}+5\hat{\text{j}}-7\hat{\text{k}},\vec{\text{b}}=-3\hat{\text{i}}+4\hat{\text{j}}+\hat{\text{k}}$ and $\vec{\text{c}}=\hat{\text{i}}-2\hat{\text{j}}-3\hat{\text{k}},$ compute $\big(\vec{\text{a}}\times\vec{\text{b}}\big)\times\vec{\text{c}}$ and $\vec{\text{a}}\times\big(\vec{\text{b}}\times\vec{\text{c}}\big)$ and verify that these are not equal.