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 $\frac{1}{2} \tan ^{-1} x=\cos ^{-1}\left\{\frac{1+\sqrt{1+x^2}}{2 \sqrt{1+x^2}}\right\}^{\frac{1}{2}}$
Evaluate the following integrals:
$\int\frac{1}{\text{x}^2(\text{x}^4+1)^{\frac{3}{4}}}\text{ dx}$
Solve the following differential equation:
$\text{y dx}+\Big\{\text{x}\log\Big(\frac{\text{y}}{\text{x}}\Big)\Big\}\text{dy}-2\text{x dy}=0$
Prove that the line $\vec{\text{r}}=\big(\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}}\big)+\lambda\big(3\hat{\text{i}}-\hat{\text{j}}\big)$ and $\vec{\text{r}}=\big(4\hat{\text{i}}-\hat{\text{k}}\big)+\mu\big(2\hat{\text{i}}+3\hat{\text{k}}\big)$ intersect and find their point of intersection.
A bag A contains 2 white and 3 red balls and a bag B contains 4 white and 5 red balls. One ball is drawn at random from one of the bags and is found to be red. Find the probability that it was drawn from bag B.
Find the equations of the tangent and the normal to the following curves at the indicated points.
$\text{y}^2=4\text{ax}\text{ at }\Big(\frac{\text{a}}{\text{m}^2},\frac{2\text{a}}{\text{m}}\Big)$
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}}.$
Find $\frac{\text{dy}}{\text{dx}}$
$\text{y}=\text{e}^{3\text{x}}\sin4\text{x}\times2^\text{x}$
Find the area of a parallelogram ABCD whose side AB and the diagonal AC are given by the vectors $3\hat{\text{i}} + \hat{\text{j}}+4\hat{\text{k}}$ and $4\hat{\text{i}} + 5\hat{\text{k}} $ respectively.
Write the set of values of 'a' for which $\text{f}(\text{x})=\log_\text{a}\text{x}$ is increasing in its domain.