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

If $\text{x}=\text{a}\sin\text{t}-\text{b}\cos\text{t},\text{y}=\text{a}\cos\text{t}+\text{b}\sin\text{t},$ Prove that $\frac{\text{d}^2\text{y}}{\text{dx}^2}=-\frac{\text{x}^2+\text{y}^2}{\text{y}^2}$
Solve the following system of homogeneous linear equations:
x + y - 2z = 0,
2x + y - 3z = 0,
5x + 4y - 9z = 0
Find the cartesian form of the equations of the following planes.
$\vec{\text{r}}=(1+\text{s}+\text{t})\hat{\text{i}}+(2-\text{s}+\text{t})\hat{\text{j}}+(3-2\text{s}+2\text{t})\hat{\text{k}}$
Evaluate the following integrals:
$\int_{0}^\limits{\text{a}}\sqrt{\text{a}^2-\text{x}^2}\text{ dx}$
Differentiate $\sin^{-1}\sqrt{1-\text{x}^2}$ with respect to $\cos^{-1}\text{x},$ if
$\text{x}\in(-1,0)$
Find the vector equations of the coordinate planes.
Solve the following systems of linear equations by cramer's rule:
9x + 5y = 10,
3x - 2y = 8
Find the value of a and b so that the function f(x) defind by $\text{f(x)}=\begin{cases}\text{x}+\text{a}\sqrt{2}\sin\text{x},&\text{if }0\leq\text{x}<\frac{\pi}{4}\\2\text{x}\cot\text{ x}+\text{b},&\text{if }\frac{\pi}{4}\leq\text{x}<\frac{\pi}{2}\\\text{a}\cos2\text{x}-\text{b}\sin\text{x},&\text{if }\frac{\pi}{2}\leq\text{x}\leq\pi\end{cases}$ becomes continuous on $[0,\pi]$
Find one-parameter families of solution curves of the following differential equation: (or solve the following differential equation)$\frac{\text{dy}}{\text{dx}}-\frac{2\text{xy}}{1+\text{x}^2}=\text{x}^2+2$
A bag A contains 5 white and 6 black balls. Another bag B contains 4 white and 3 black balls. A ball is transferred from bag A to the bag B and then a ball is taken out of the second bag. Find the probability of this ball being black.