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

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}=\sin\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}=1$
$\text{Q}=\sin\text{x}$
$\therefore\ \text{I.F.}=\text{e}^{\int\text{Pdx}}=\text{e}^{\int\text{dx}}=\text{e}^{\text{x}}$
Multiplying both sides of (1) by $e^x,$ we get
$\text{e}^\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\Big)=\text{e}^\text{x}\sin \text{x}$
$\Rightarrow\ \text{e}^\text{x}\frac{\text{dy}}{\text{dx}}+\text{e}^{\text{x}}\text{y}=\text{e}^\text{x}\sin\text{x}$
Integrating both sides with respect to $x$, we get
$\text{y}\text{e}^{\text{x}}=\int\text{e}^{\text{x}}\sin\text{x dx + C}$
$\Rightarrow\ \text{y}\text{e}^{\text{x}}=\frac{\text{e}^{\text{x}}}{2}(\sin\text{x}-\cos{\text{x}})+\text{C}$
$\Rightarrow\ \text{y}=\text{Ce}^{-\text{x}}+\frac{1}{2}(\sin\text{x}-\cos{\text{x}})$
Hence, $\text{y}=\text{Ce}^{-\text{x}}+\frac{1}{2}(\sin\text{x}-\cos{\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 absolute maximum and the absolute minimum value of the following functions in the given intervals:
$\text{f}(\text{x})=4\text{x}-\frac{\text{x}^{2}}{2}\ \text{in}\ [2,4,5]$
Using elementary transformations, find the inverse of the following matrix:
$\begin{bmatrix} 0 & 1 & 2 \\ 1 & 2 & 3 \\ 3 & 1 & 0 \end{bmatrix} $
If $\text{A}=\begin{bmatrix}4 & 3 \\ 2 & 5 \end{bmatrix},$ find x and y such that $A^2 = zA + yI = 0$. Hence, evaluate $A^{-1}.$
Prove that the height of the cylinder of maximum volume that can be inscribed in a sphere of radius R is $\frac{2\text{R}}{\sqrt3}$ Also finds the maximum volume.
Show that $\begin{vmatrix}\text{x}+1&\text{x}+2&\text{x}+\text{a}\\\text{x}+2&\text{x}+3&\text{x}+\text{b}\\\text{x}+3&\text{x}+4&\text{x}+\text{c}\end{vmatrix}=0$ where $a, b, c$ are in A.P.
Find the equations of the tangent and the normal to the following curves at the indicated points.
$\text{x}=\text{a}(\theta+ \sin\theta),\text{y}=\text{a}(1-\cos\theta)\text{ at }\theta$
Find the area of the ragion bounded by $x^2 = 4$ay and its latusrectum.
If A and B are two independent events such that $\text{P}(\overline{\text{A}}\cap\text{B})=\frac{2}{15}$ and $\text{P}(\text{A}\cap\overline{\text{B}})=\frac{1}{6}$, then find P(B).
If the area bounded by the parabola $\text{y}^{2} = 16\text{ax}$ and the line $\text{y = 4 mx}$ is $\frac{\text{a}^{2}}{12}$ sq. units, then using integration, find the value of m.
Differentiate the following functions with respect to x:
$(\log\text{x})^{\log\text{x}}$