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

Form the differential equation corresponding to $\text{y}^2-2\text{ay}+\text{x}^2=\text{a}^2$ by eliminating a.
Let S be the set of all rational numbers except 1 and * be defined on S by a * b = a + b - ab, for all a, b ∈ S.
Prove that:
  1. * is a binary operation on S.
  2. * is commutative as well as associative.
Evaluate the following integrals:
$\int\limits^{\frac{\pi}{4}}_{-\frac{\pi}{4}}\frac{\tan^{2}\text{x}}{1+\text{e}^{\text{x}}}\text{ dx}$
A die is thrown 6 times. If ‘getting an odd number’ is a success, what is the probability of
  1. 5 successes?
  2. at least 5 successes?
  3. at most 5 successes?
Find the points of discontinuity, if any of the following function:
$\text{f(x)}=\begin{cases}\frac{\text{x}^4+\text{x}^3+2\text{x}^2}{\tan^{-1}\text{x}},&\text{if }\text{ x}\neq0\\10,&\text{if }\text{ x}=0\end{cases}$
Evaluate the following integrals:

$\int\text{cosec}^3\text{x dx}$

Find $\frac{\text{dy}}{\text{dx}},$ when
$\text{x}=\text{a}(\theta+\sin\theta)$ and $\text{y}=\text{a}(1-\cos\theta)$
If $\text{A} = \begin{pmatrix} 2 & -3 & 5 \\ 3 & 2 & -4 \\ 1 &1 & -2 \end{pmatrix}$ find A–1. Hence using A–1 solve the system of equations 2x – 3y + 5z = 11, 3x + 2y – 4z = – 5, x + y – 2z = – 3.
Evaluate the following integrals:

$\int\sin^{-1}\sqrt{\text{x}}\text{dx}$

In the following cases, determine whether the given planes are parallel or perpendicular, and in case they are neither, find the angles between them.
4x + 8y + z - 8 = 0 and y + z - 4 = 0