Question
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+\text{y}\cos\text{x}=\sin\text{x}\cos\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\cos\text{x}=\sin\text{x}\cos\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}=\cos\text{x}$
$\text{Q}=\sin\text{x}\cos\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\cos\text{xdx}}$
$=\text{e}^{\sin\text{x}}$
Multiplying both sides of (1) by $\text{e}^{\sin\text{x}}$ we get
$\text{e}^{\sin\text{x}}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\cos\text{x}\Big)=\text{e}^{\sin\text{x}}\sin\text{x}\cos\text{x}$
$\Rightarrow\ \text{e}^{\sin\text{x}}\frac{\text{dy}}{\text{dx}}+\text{e}^{\sin\text{x}}\text{y}\cos\text{x}=\text{e}^{\sin\text{x}}\sin\text{x}\cos\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\text{e}^{\sin\text{x}}=\int\text{e}^{\sin\text{x}}\sin\text{x}\cos\text{x dx + C}$
$\Rightarrow\ \text{y}\text{e}^{\sin\text{x}}=\text{I + C}\ \dots(2)$
where
$\text{I}=\int\text{e}^{\sin\text{x}}\sin\text{x}\cos\text{x dx}$
Putting $\text{t}=\sin\text{x},$ we get
$\text{dt}=\cos\text{x dx}$
$\therefore\ \text{I}=\int\text{e}^{\text{t}}\text{t dt}$
$=\text{t}\int\text{e}^{\text{t}}\text{dt}-\int\Big[\frac{\text{d}}{\text{dt}}(\text{t})\int\text{e}^{\text{t}}\text{dt}\Big]\text{dt}$
$=\text{te}^{\text{t}}-\text{e}^{\text{t}}$
$=\text{e}^{\text{t}}(\text{t}-1)$
$=\text{e}^{\sin\text{x}}(\sin\text{x}-1)$
Putting the value of I in (2), we get
$\text{ye}^{\sin\text{x}}=\text{e}^{\sin\text{x}}(\sin\text{x}-1)+\text{C}$
$\Rightarrow\ \text{y}=\sin\text{x}-1+\text{Ce}^{-\sin\text{x}}$
Hence, $\text{y}=\sin\text{x}-1+\text{Ce}^{-\sin\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

Determine whether the following pair of lines intersect or not:
$\frac{\text{x}-1}{2}=\frac{\text{y}+1}{3}=\text{z}$ and $\frac{\text{x}+1}{5}=\frac{\text{y}-2}{1};\text{z}=2$
Find the maximum and the minimum values, if any, without using derivaives of the following functions:

f(x) = -|x + 1| + 3 on R.

Integrate the function $\frac{1}{\sqrt{(x-1)(x-2)}}$
Find one-parameter families of solution curves of the following differential equation: (or solve the following differential equation)

$(\text{x + y})\frac{\text{dy}}{\text{dx}}=1$

The scalar product of the vector $\hat i + \hat j + \hat k$ with a unit vector along the sum of vectors $2\hat i + 4\hat j - 5\hat k\;$ and $\lambda \hat i + 2\hat j + 3\hat k$ is equal to one. Find the value of$\;\lambda $.
Differentiate the functions given in Exercise:
$(\sin\text{x})^{\text{x}}+\sin^{-1}\sqrt{\text{x}}$
Evaluate the following integrals:

$\int\frac{\text{x}^3-3\text{x}}{\text{x}^4+2\text{x}^2-4}\text{ dx}$

Find the distance of the point (-1, -5, -10) from the point of intersection of the line $\vec{\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}})$ and the plane $\vec{\text{r}}\cdot(\hat{\text{i}}-\hat{\text{j}}+\hat{\text{k}})=5.$ 
Find the equation of the curve which passes through the point $(1, \frac{\pi}{4})$ and tangent at any point 0f which makes an angle $\tan^{-1}\Big(\frac{\text{y}}{\text{x}}-\cos^{2}\frac{\text{y}}{\text{x}}\Big)$ with x-axis.
Evaluate the following integrals:
$\int\cot^6\text{x}\text{ dx}$