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

Find the angle between the lines whose direction ratios are proportional to a, b, c and b - c, c - a, a - b.
If $\text{y}\sin(\text{x}^\text{x}),$ prove that $\frac{\text{dy}}{\text{dx}}=\cos(\text{x}^\text{x})\times\text{x}^\text{x}(1+\log\text{x})$
Solve the following differential equation
$\frac{\text{dy}}{\text{dx}}+\frac{1+\text{y}^2}{\text{y}}=0$
If $\text{y}=\text{e}^{\text{x}^2\cos\text{x}}+(\cos\text{x})^{\text{x}}, $ then find $\frac{\text{dy}}{\text{dx}}.$
Find the matrix X satisfying the matrix equation.

$\text{X}\begin{bmatrix}5 & 3 \\-1 & -2 \end{bmatrix}\begin{bmatrix}14 & 7 \\7 & 7 \end{bmatrix}$

Solve the following initial value problems:
$(\text{x}^2+\text{y}^2)\text{dx}=2\text{xy dy, y}(1)=0$
Find the shortest distance between the following pairs of lines whose vector equation are:
$\vec{\text{r}}=\big(2\hat{\text{i}}-\hat{\text{j}}-\hat{\text{k}}\big)+\lambda\big(2\hat{\text{i}}-5\hat{\text{j}}+2\hat{\text{k}}\big)$ and, $\vec{\text{r}}=\big(\hat{\text{i}}+2\hat{\text{j}}+\hat{\text{k}}\big)+\mu\big(\hat{\text{i}}-\hat{\text{j}}+\hat{\text{k}}\big)$
If $\text{A}=\begin{bmatrix}1&2\\-2&1\end{bmatrix},\ \text{B}=\begin{bmatrix}2&3\\3&-4\end{bmatrix}$ and $\text{C}=\begin{bmatrix}1&0\\-1&0\end{bmatrix},$ verify $(\text{AB})\text{C}=\text{A}(\text{BC}).$
Find the vector equation of the plane passing through the points P(2, 5, -3), Q(-2, -3, 5) and R(5, 3, -3).
Find the foot of perpendicular from the point (2, 3, -8) to the line $\frac{4-\text{x}}{2}=\frac{\text{y}}{6}=\frac{1-\text{z}}{3}.$ Also, find the perpendicular distance from the given point to the line.