Question
Find the general solution of $\frac{d y}{d x}+2 y=\sin x$

Answer

It is given that $\frac{d y}{d x}+2 y=\sin x$ 
This is equation in the form of $\frac{d y}{d x}+p y=Q$ (where, p = 2 and Q = sin x)
Now, I.F = $e^{\int p d x}=e^{\int 2 d x}=e^{2 x}$ 
Thus, the solution of the given differential equation is given by the relation:
$\mathrm{y}(\mathrm{I}. \mathrm{F} .)=\int(\mathrm{Q} \times \mathrm{I.F.}) \mathrm{d} \mathrm{x}+\mathrm{C}$ 
$\Rightarrow \mathrm{ye}^{2 \mathrm{x}}=\int \sin \mathrm{x} \cdot \mathrm{e}^{2 \mathrm{x}} \mathrm{d} \mathrm{x}+\mathrm{C}$ .....(i)
Let $I=\int \sin x \cdot e^{2 x} d x$ 
$\Rightarrow \mathrm{I}=\sin \mathrm{x} \int \mathrm{e}^{2 \mathrm{x}} \mathrm{d} \mathrm{x}-\int\left(\frac{\mathrm{d}}{\mathrm{dx}}(\sin \mathrm{x}) \cdot \int \mathrm{e}^{ 2x }\mathrm{d} \mathrm{x}\right) \mathrm{d} \mathrm{x}$ 
= $\sin x \cdot \frac{e^{2 x}}{2}-\int\left(\cos x \cdot \frac{e^{2 x}}{2}\right) d x$ 
= $\frac{\mathrm{e}^{2 \mathrm{x}} \sin \mathrm{x}}{2}-\frac{1}{2}\left[\cos \mathrm{x} \int \mathrm{e}^{2 \mathrm{x}}-\int\left(\frac{\mathrm{d}}{\mathrm{d} \mathrm{x}}(\cos \mathrm{x}) \cdot \int \mathrm{e}^{2 \mathrm{x}} \mathrm{d} \mathrm{x}\right) \mathrm{d} \mathrm{x}\right]$ 
= $\frac{\mathrm{e}^{2 \mathrm{x}} \sin \mathrm{x}}{2}-\frac{1}{2}\left[\cos \mathrm{x} \frac{\mathrm{e}^{2 \mathrm{x}}}{2}-\int\left[(-\sin \mathrm{x}) \cdot \frac{\mathrm{e}^{2 \mathrm{x}}}{2}\right] \mathrm{d} \mathrm{x}\right]$ 
= $\frac{\mathrm{e}^{2 \mathrm{x}} \sin \mathrm{x}}{2}-\frac{\mathrm{e}^{2 \mathrm{x}} \cos \mathrm{x}}{4}-\frac{1}{4} \int\left(\sin \mathrm{x} \cdot \mathrm{e}^{2 \mathrm{x}}\right) \mathrm{d} \mathrm{x}$ 
= $\frac{e^{2 x}}{4}(2 \sin x-\cos x)-\frac{1}{4} I$ 
$\Rightarrow \frac{5}{4} \mathrm{I}=\frac{\mathrm{e}^{2 \mathrm{x}}}{4}(2 \sin \mathrm{x}-\cos \mathrm{x})$ 
$\Rightarrow \mathrm{I}=\frac{\mathrm{e}^{2 \mathrm{x}}}{5}(2 \sin \mathrm{x}-\cos \mathrm{x})$ 
Now, putting the value of I in (i), we get,
$\Rightarrow \mathrm{ye}^{2 \mathrm{x}}=\frac{\mathrm{e}^{2 \mathrm{x}}}{5}(2 \sin \mathrm{x}-\cos \mathrm{x})+\mathrm{C}$ 
$\Rightarrow \mathrm{y}=\frac{1}{5}(2 \sin \mathrm{x}-\cos \mathrm{x})+\mathrm{Ce}^{-2 \mathrm{x}}$ 
Therefore, the required general solution of the given differential equation is
$y=\frac{1}{5}(2 \sin x-\cos x)+C e^{-2 x}$

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 $\text{y}=1+\frac{\alpha}{\big(\frac{1}{\text{x}}-\alpha\big)}+\frac{\frac{\beta}{\text{x}}}{\big(\frac{1}{\text{x}}-\alpha\big)\big(\frac{1}{\text{x}}-\beta\big)}+\frac{\frac{\gamma}{\text{x}^2}}{\big(\frac{1}{\text{x}}-\alpha\big)\big(\frac{1}{\text{x}}-\beta\big)\big(\frac{1}{\text{x}}-\gamma\big)},$ find $\frac{\text{dy}}{\text{dx}}$
Solve the following initial value problems:
$\text{y}'+\text{y}=\text{e}^{\text{x}},\text{ y}(0)=\frac{1}{2}$
Decompose the vector $6\hat{\text{i}}-3\hat{\text{j}}-6\hat{\text{k}}$ into vectors which are parallal and perpendicular to the vector $\hat{\text{i}}+\hat{\text{j}}+\hat{\text{k}}.$
Find the maximum and minimum value of this function.$
f(x)=\sec x+\log \cos ^2 x, 0 < x < 2 \pi
$
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}.$
Evaluate the following integrals:
$\int \frac{\text{x}+1}{(\text{x}-1)\sqrt{\text{x}+2}}\text{ dx}$
Find the angle between the following pairs of lines:

$\frac{\text{x}-2}{3}=\frac{\text{y}+3}{-2},\text{z}=5$ and $\frac{\text{x}+1}{1}=\frac{2\text{y}-3}{3}=\frac{\text{z}-5}{2}$

Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}=\frac{\text{y}}{\text{x}}-\sqrt{\frac{\text{y}^2}{\text{x}^2}-1}$
The management committee of a residential colony decided to award some of its members (say x) for honesty, some (say y) for helping others and some others (say z) for supervising the workers to keep the colony neat and clean. The sum of all the awardees is 12. Three times the sum of awardees for cooperation and supervision added to two times the number of awardees for honesty is 33. If the sum of the number of awardees for honesty and supervision is twice the number of awardees for helping others, using matrix method, find the number of awardees of each category. Apart from these values, namely, honesty, cooperation and supervision, suggest one more value which the management of the colony must include for awards.
Find the equation of the plane passing through the point (-1, 3, 2) and perpendicular to each of the planes x + 2y + 3z = 5 and 3x + 3y + z = 0.