Question
Solve the following differential equation : $\frac{\text{dy}}{\text{dx}}+2\text{y}=\sin\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+2\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$
and
$\text{Q}=\sin\text{x}$
$\therefore I.F. =\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int2\text{dx}}$
$=\text{e}^{2\text{x}}$
Multiplying both sides of $(1)$ by $I.F. = e^{2x},$ we get
$\text{e}^{2\text{x}}\Big(\frac{\text{dy}}{\text{dx}}+2\text{y}\Big)=\text{e}^{2\text{x}}\sin\text{x}$
$\Rightarrow\ \text{e}^{2\text{x}}\frac{\text{dy}}{\text{dx}}+2\text{e}^{2\text{x}}\text{y}=\text{e}^{2\text{x}}\sin\text{x}$
Integrating both sides with respect to $x,$ we get
$\text{ye}^{2\text{x}}=\int\text{e}^{2\text{x}}\sin\text{x dx + C}$
$\Rightarrow\ \text{ye}^{2\text{x}}=\frac{1}5\int[2\text{e}^{2\text{x}}(2\sin\text{x}-\cos\text{x}+\text{e}^{2\text{x}}(2\cos\text{x}+\sin\text{x})]$
Putting $\text{e}^{2\text{x}}(2\sin\text{x}-\cos\text{x})=\text{t}$
$\Rightarrow[2\text{e}^{2\text{x}}(2\sin\text{x}-\cos\text{x})+\text{e}^{2\text{x}}(2\cos\text{x}+\sin\text{x})]\text{dx}=\text{dt}$
$\therefore\ \text{ye}^{2\text{x}}=\frac{1}5\int\text{dt + C}$
$\Rightarrow\text{ye}^{2\text{x}}=\frac{\text{t}}5+\text{C}$
$\text{ye}^{2\text{x}}=\frac{\text{e}^{2\text{x}}}5(2\sin\text{x}-\cos\text{x})+\text{C}$
$\Rightarrow\ \text{y}=\frac{1}5(2\sin\text{x}-\cos\text{x})+\text{Ce}^{-2\text{x}}$
Hence $, \text{y}=\frac{1}5(2\sin\text{x}-\cos\text{x})+\text{Ce}^{-2\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

If $x^x + y^x = 1,$ prove that $\frac{\text{dy}}{\text{dx}}=-\Big\{\frac{\text{x}^\text{x}(1+\log\text{x})+\text{y}^\text{x}\times\log\text{y}}{\text{x}\times\text{y}^{\text{x}-1}}\Big\}$
Solve the system of equations: $\frac{2}{\text{x}}+\frac{3}{\text{y}}+\frac{10}{\text{z}}=4 \frac{4}{\text{x}}-\frac{6}{\text{y}}+\frac{5}{\text{z}}=1 \frac{6}{\text{x}}+\frac{9}{\text{y}}-\frac{20}{\text{z}}=2$
Finde the value of a and b, if the function f(x) defined by $\text{f(x)}\begin{cases}\text{x}^2+3\text{x}+\text{a}, &\text{x}\leq1\\\text{bx}+2, & \text{x}>1\end{cases}$is differentiable at x = 1.
Find one-parameter families of solution curves of the following differential equation: (or solve the following differential equation)$\frac{\text{dy}}{\text{dx}}-\frac{2\text{xy}}{1+\text{x}^2}=\text{x}^2+2$
A manufacturing company makes two types of teaching aids A and B of Mathematics for class XII. Each type of A requires 9 labour hours of fabricating and 1 labour hour for finishing. Each type of B requires 12 labour hours for fabricating and 3 labour hours for finishing. For fabricating and finishing, the maximum labour hours available per week are 180 and 30 respectively. The company makes a profit of A and ₹ 80 on each piece of type ₹ 120 on each piece of type B. How many pieces of type A and type B should be manufactured per week to get a maximum profit? Make it as an LPP and solve graphically. What is the maximum profit per week?
Differentiate $\sin^{-1}\Big(\frac{2\text{x}}{1+\text{x}^2}\Big)$ with respect to $\tan^{-1}\Big(\frac{2\text{x}}{1-\text{x}^2}\Big),$ if -1 < x < 1.
Find the general solution of $x \log x \frac{d y}{d x}+y=\frac{2}{x} \log x$
Show that $\text{AB}\neq\text{BA}$ in the following cases:
$\text{A}=\begin{bmatrix}1&3&-1\\2&-1&-1\\3&0&-1\end{bmatrix}$ and $\text{B}=\begin{bmatrix}-2&3&-1\\-1&2&-1\\-6&9&-4\end{bmatrix}$
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.
Find the inverse of the matrix (if it exists) given $\left[\begin{array}{ccc}1 & -1 & 2 \\ 0 & 2 & -3 \\ 3 & -2 & 4\end{array}\right]$