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

Radium decomposes at a rate proportional to the quantity of radium present. It is found that in 25 years, approximately 1.1% of a certain quantity of radium has decomposed. Determine approximately how long it will take for one-half of the original amount of radium to decompose?
The population of a village increases continuously at the rate proportional to the number of its inhabitants present at any time. If the population of the village was $20, 000$ in $1999$ and $25000$ in the year $2004,$ what will be the population of the village in $2009?$
Differentiate the following functions with respect to x:
$\frac{\text{e}^\text{x}\sin\text{x}}{(\text{x}^2+2)^3}$
Differentiate the following functions with respect to x:
$\sin\Big(\frac{1+\text{x}^2}{1-\text{x}^2}\Big)$
A beam is supported at the two ends and is uniformly loaded. The bending moment M at a distance x from one end is given by
$\text{M}=\frac{\text{WL}}{2}\text{x}-\frac{\text{W}}{2}\text{x}^{2}$
Find the point at which M is maximum in each case.
Solve the following differential equation: $\frac{\text{dy}}{\text{dx}}+2\text{y}=\text{xe}^{4\text{x}}$
Evaluate the following integrals:$\int\frac{\text{x}^2}{\text{x}^2+6\text{x}+12}\text{ dx}$
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}$
Solve the following systems of linear equations by cramer's rule:
3x + y = 19,
3x - y = 23
A fair die is tossed. Let X denote 1 or 3 according as an odd or an even number appears. Find the probability distribution, mean and variance of X.