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

Find the equation of the curve passing through the point (0, 1) if the slope of the tangent to the curve at each of its point is equal to the sum of the abscissa and the product of the abscissa and the ordinate of the point.
Find graphically, the maximum value of Z = 2x + 5y, subject to constraints given below:
$2\text{x}+4\text{y}\leq8$
$3\text{x}+\text{y}\leq6$
$\text{x}+\text{y}\leq4$
$\text{x}\geq0,\text{y}\geq0$
Solve the differential equation $x\frac{\text{dy}}{\text{d}x} + \text{y} = x \cos x + \sin x,$ given that y = 1 when $x = \frac{\pi}{2}.$
Find the shortest distance between the lines $\frac{\text{x}+1}{7}=\frac{\text{y}+1}{-6}=\frac{\text{z}+1}{0}$ and $\frac{\text{x}-3}{1}=\frac{\text{y}-5}{-2}=\frac{\text{z}-7}{1}.$
Determine whether the following pair of lines intersect or not:
$\vec{\text{r}}=\big(\hat{\text{i}}-\hat{\text{j}}\big)+\lambda\big(2\hat{\text{i}}+\hat{\text{k}}\big)$ and $\vec{\text{r}}=\big(2\hat{\text{i}}-\hat{\text{j}}\big)+\mu\big(\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}}\big)$
verify that $\text{y}=\text{e}^{\text{m}\cos^{-1}}$ is a solution of the differential equation $(1+\text{x}^2)\frac{\text{d}^2\text{y}}{\text{dx}^2}-\text{x}\frac{\text{dy}}{\text{dx}}-\text{m}^2\text{y}=0$
Divide $15$ into two parts such that the square of one multiplied with the cube of the other is minimum.
If the vectors $\vec{\text{a}}=2\hat{\text{i}}-3\hat{\text{j}}$ and $\vec{\text{b}}=-6\hat{\text{i}}+\text{m}\hat{\text{j}}$ are collinear, find tghe value of m.
Find the equation of the line passing through the points (1, -1, 1) and perpendicular to the lines joining the points (4, 3, 2), (1, -1, 0) and (1, 2, -1) (2, 1, 1).
It is known that 60% of mice inoculated with a serum are protected from a certain disease. If 5 mice are inoculated, find the probability that.
  1. none contract the disease.
  2. more than 3 contract the disease.