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

Show that the points A, B, C with position vectors $2\hat{\text{i}} - \hat{\text{j}} + \hat{\text{k}}, \hat{\text{i}} - 3\hat{\text{j}} - 5\hat{\text{k}} \text{ and } 3\hat{\text{i}} - 4\hat{\text{j}} - 4\hat{\text{k}}$ respectively, are the vertices of a right-angled triangle. Hence find the area of the triangle.
Find the shortest distance between the following pairs of lines whose vector equation are:
$\vec{\text{r}}=\big(3\hat{\text{i}}+5\hat{\text{j}}+7\hat{\text{k}}\big)+\lambda\big(\hat{\text{i}}-2\hat{\text{j}}+7\hat{\text{k}}\big)$ and $\vec{\text{r}}=-\hat{\text{i}}-\hat{\text{j}}-\hat{\text{k}}+\mu\big(7\hat{\text{i}}-6\hat{\text{j}}+\hat{\text{k}}\big)$
Using integration, find the area of the triangle $ABC$ coordinatrs of whise vertices $A(4, 1), B(6, 6)$ and $C(8, 4)$.
Show that each of the given three vectors is a unit vector:$\frac{1}{7}(2\hat{i}+3\hat{j}+6\hat{k}),\ \frac{1}{7}(3\hat{i}-6\hat{j}+2\hat{k}),\ \frac{1}{7}(6\hat{ i}+2\hat{j}-3\hat{k})$
Also, show that they are mutually perpendicular to each other.
Let the vectors $\vec{a}, \vec{b}, \vec{c}$ be given as $a_{1} \hat{i}+a_{2} \hat{j}+a_{3} \hat{k},~ b_{1} \hat{i}+b_{2} \hat{j}+b_{3} \hat{k}$, and $c_{1} \hat{i}+c_{2} \hat{j}+c_{3} \hat{k}$ . Then show that $\vec{a} \times(\vec{b}+\vec{c})=\vec{a} \times \vec{b}+\vec{a} \times \vec{c}$
Using integration, find the area of the region in the first quadrant enclosed by the x-axis, the line $y = x$ and the circle $x^2 + y^2 = 32$.
Let C be a curve defined parametrically as $\text{x}=\text{a}\cos^3\theta,\text{y}=\text{a}\sin^3\theta,0\leq\theta\leq\frac{\pi}{2}.$ Determine a point P on C, where the tangent to C is parallel to the chord joining the points (a, 0) and (0, a).
Evaluate:
$\int\frac{1}{\sin^{4}\text{x} +\sin^{2}\text{x}\cos^{2}\text{x}+\cos^{4}\text{x}}\text{dx}$
If $x^m + y^n = 1$, Prove that $\frac{\text{dy}}{\text{dx}}=-\frac{\text{my}}{\text{nx}}$
Find the vector equations of the following planes in scalar product form $(\vec{\text{r}}\cdot\vec{\text{n}}=\text{d}):$
$\vec{\text{r}}=(1+\text{s}-\text{t})\hat{\text{t}}+(2-\text{s})\hat{\text{j}}+(3-2\text{s}+2\text{t})\hat{\text{k}}$