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 $e^x,$ 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

Evaluate the following:
$\begin{bmatrix}1&2&3\end{bmatrix}\begin{bmatrix}1&0&2\\2&0&1\\0&1&2\end{bmatrix}\begin{bmatrix}2\\4\\6\end{bmatrix}$
If a unit vector $\vec{\text{a}}$ makes an angle $\frac{\pi}3$ with $\hat{\text{i}}$, $\frac{\pi}4$ with $\hat{\text{j}}$ and an acute angle $\theta$ with $\hat{\text{k}}$, then find $\theta$ and hence, the components of $\vec{\text{a}}$.
Bag $A$ contains $3$ red and $5$ black balls, while bag $B$ contains $4$ red and $4$ black balls. Two balls are transferred at random from bag $A$ to bag $B$ and then a ball is drawn from bag $B$ at random. If the ball drawn from bag $B$ is found to be red, find the probability that two red balls were transferred from $A$ to $B.$
Differentiate the following functions with respect to x:
$\sin^{-1}\big(1-2\text{x}^2\big),0<\text{x}<1$
A wire of length 28m is to be cut into two pieces. One of the pieces is to be made into a square and the other into a circle. What should be the lengths of the two pieces so that the combined area of the circle and the square is minimum?
Find the angle between the following pairs of lines:$\frac{\text{x}-1}{2}=\frac{\text{y}-2}{3}=\frac{\text{z}-3}{-3}$ and $\frac{\text{x}+3}{-1}=\frac{\text{y}-5}{8}=\frac{\text{z}-1}{4}$
Sketch the graph y = |x - 5|. Evaluate $\int\limits_{0}^{1}|\text{x}-5|\text{dx} $ . What does this value of the integral represent on the graph.
If $AD$ is the median of $\triangle\text{ABC},$ using vectors, prove that $\text{AB}^2+\text{AC}^2=2\big(\text{AD}^2+\text{CD}^2\big).$
Evaluate: $\int\frac{\text{x} + 2}{\sqrt{\text{x}^{2} + 5\text{x} + 6 }}\text{dx}.$
A firm has to transport 1200 packages using large vans which can carry 200 packages each and small vans which can take 80 packages each. The cost for engaging each large van is Rs. 400 and each small van is Rs. 200. Not more than Rs. 3000 is to be spent on the job and the number of large vans can not exceed the number of small vans. Formulate this problem as a LPP given that the objective is to minimise cost.