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

Show that:
$\begin{vmatrix}\text{y}+\text{z}&\text{x}&\text{y}\\\text{z}+\text{x}&\text{z}&\text{x}\\\text{x}+\text{y}&\text{y}&\text{z}\end{vmatrix}=(\text{x}+\text{y}+\text{z})(\text{x}-\text{z})^3$
Find the area bounded by the curves (x - 1)2 + y2 = 1 and x2 + y2 = 1.
One kind of cake requires 200 g of flour and 25 g of fat, and another kind of cake requires 100 g of flour and 50 g of fat. Find the maximum number of cakes which can be made from 5 kg of flour and 1 kg of fat assuming that there is no shortage of the other ingredients used in making the cakes.
Find the area enclosed by the parabola y = 5x2 and y = 2x2 + 9.
Evaluate the following integrals as limit of sum:
$\int\limits^3_1(3\text{x}-2)\text{dx}$
Solve the following determinant equations:
$\begin{vmatrix}3&-2&\sin(3\theta)\\-7&8&\cos(2\theta)\\-11&14&2\end{vmatrix}=0$
The relation S defined on the set R of all real number by the rule aSb iff a ≥ b is:
  1. An equivalence relation.
  2. Reflexive, transitive but not symmetric.
  3. Symmetric, transitive but not reflexive.
  4. Neither transitive nor reflexive but symmetric.
If $(\sin\text{x})^{\text{y}}=\text{x}+\text{y},$ prove that $\frac{\text{dy}}{\text{dx}}=\frac{1-(\text{x}+\text{y})\text{y}\cot\text{x}}{(\text{x}+\text{y})\log\sin\text{x}-1}$
Find the equations of the tangent and the normal to the following curves at the indicated points.
$\text{xy}=\text{c}^2\text{ at }\big(\text{ct},\frac{\text{c}}{\text{t}}\big)$
Find the area enclosed by the curve $\text{x}=3\cos\text{t}, \text{y}=2\sin\text{t}.$