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 ex, 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

Prove that the relation R on Z defined by $(\text{a, b})\in\text{R}\Leftrightarrow\ \text{a}-\text{b}$ is divisible by 5 is an equivalence relation on Z.
Prove that:
$\begin{vmatrix}\text{a}^2&2\text{ab}&\text{b}^2\\\text{b}^2&\text{a}^2&2\text{ab}\\2\text{ab}&\text{b}^2&\text{a}^2\end{vmatrix}=(\text{a}^3+\text{b}^3)^2$
Using differentials, find the approximate values of the following:
$\cos61^\circ$ it being given that $\sin60^\circ=0.86603$ and $0.01745$ radian
An unbiased coin is tossed 4 times, Find the mean and variance of the number of heads obtained.
If $\vec{\text{a}}=\text{a}_1\hat{\text{i}}+\text{a}_2\hat{\text{j}}+\text{a}_3\hat{\text{k}},\vec{\text{b}}=\text{b}_1\hat{\text{i}}+\text{b}_2\hat{\text{j}}+\text{b}_3\hat{\text{k}}$ and $\vec{\text{c}}=\text{c}_1\hat{\text{i}}+\text{c}_2\hat{\text{j}}+\text{c}_3\hat{\text{k}},$ then verify that $\vec{\text{a}}\times\big(\vec{\text{b}}+\vec{\text{c}}\big)=\vec{\text{a}}\times\vec{\text{b}}+\vec{\text{a}}\times\vec{\text{c}}.$
Show that the function f defined as follows, is continuous at x = 2, but not differentiable thereat:
f(x) = $\begin{matrix} \text{3x - 2}, && 0<x\leq1 \\ \text{ 2x}^{2}-\text{x}, && 1<x\leq2 \\ \text{5x - 4}, && x>2 \end{matrix}$.
Find the inverse of the following matrices by using elementry row transformation:

$\begin{bmatrix} 2 & 3 & 1 \\ 2 & 4 & 1 \\ 3 & 7 & 2 \end{bmatrix}$

If $\text{y}=\log\sqrt{\frac{1+\tan\text{x}}{1-\tan\text{x}}},$ prove that $\frac{\text{dy}}{\text{dx}}=\sec2\text{x}$
Evaluvate the following intregals:
$\int\frac{1}{\text{p}+\text{q}\tan\text{x}}\ \text{dx}$
Find the area bounded by the lines y = 4x + 5, y = 5 - x and 4y = x + 5.