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

Find the intervals in which the following functions are increasing or decreasing.
f(x) = 5 + 36x + 3x2 - 2x3
In the following, determine the values of constants involved in the definition so that the given function is continuous:
$\text{f(x)}=\begin{cases}\frac{\sqrt{1+\text{px}}\sqrt{1-\text{px}}}{\text{x}},&\text{if }-1\leq\text{ x}\leq-0\\\frac{2\text{x}+1}{\text{x}-2},&\text{if }0\leq\text{ x}\leq1\end{cases}$
If $\text{f}\text{(x)}=\begin{cases}\frac{\text{x}^2-1}{\text{x}-1},& \text{for }\text{ x}\neq1 \\2,&\text{for }\text{ x}=1\end{cases}$ Find whether f (x) is continuous at x = 1.
Show that if a matrix A is invertible, then A is non-singular.
Evaluate the following integrals:
$\int\limits^{\frac{3}{2}}_0\big|\text{x}\sin\pi\text{x}\big|\text{dx}$
Find the equation of the plane that bisects the line segment joining the points (1, 2, 3) and (3, 4, 5) and is at right angle to it.
If the vectors $\vec{\text{a}}=2\hat{\text{i}}-3\hat{\text{j}}$ and $\vec{\text{b}}=-6\hat{\text{i}}+\text{m}\hat{\text{j}}$ are collinear, find tghe value of m.
Find the points of local maxima or local minima and corresponding local maximum and local minimum values of the following functions. Also, find the points of inflection,
$\text{f}'(\text{x})=\text{x}^{4}-62\text{x}^{2}+120\text{x}+9$
The x-intercept of the tangent line to a curve is equal to the ordinate of the point of contact. Find the particular curve through the point (1, 1).
A producer has 30 and 17 units of labour and capital respectively which he can use to produce two type of goods x and y. To produce one unit of x, 2 units of labour and 3 units of capital are required. Similarly, 3 units of labour and 1 unit of capital is required to produce one unit of y. If x and y are priced at Rs. 100 and Rs. 120 per unit respectively, how should be producer use his resources to maximize the total revenue? Solve the problem graphically.