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

Find the vector equations of the coordinate planes.
Let $A=\{1,2,3,4\} ; B=\{3,5,7,9\} ; C=\{7,23,47,79\}$ and $f: A \rightarrow B, g: B \rightarrow C$ be defined as $f(x)=2 x+1$ and $g(x)=x^2-$ 2. Express $(g \circ f)^{-1}$ and $f^{-1} og ^{-1}$ as the sets of ordered pairs and verify that $(g \circ f)^{-1}=f^{-1} \circ g^{-1}$.
Find the particular solution of the differential equation $\frac{\text{dy}}{\text{dx}}=-4\text{xy}^2$ given that $\text{y}=1.$ when $\text{x}=0.$
Classify the following functions as injection, surjection or bijection:
$f : R \rightarrow R,$ defined by $f(x) = x^3 - x$
Solve the following systems of homogeneous linear equations by matrix method:
$x + y - z = 0$
$x - 2y + z = 0$
$3x + 6y - 5z = 0$
A card is drawn and replaced in an ordinary pack of 52 cards. How many times must a card be drawn so that.
  1. there is at least an even chance of drawing a heart.
  2. the probability of drawing a heart is greater than $\frac{3}{4}$?
Find the angle between the following pairs of lines:$\frac{\text{x}-5}{1}=\frac{2\text{y}+6}{-2}=\frac{\text{z}-3}{1}$ and $\frac{\text{x}-2}{3}=\frac{\text{y}+1}{4}=\frac{\text{z}-6}{5}$
Let n be a fixed positive integer. Define a relation R on Z as follows:
$(\text{a, b})\in\text{R}\Leftrightarrow\ \text{a}-\text{b}$ is divisible by n. Show that R is an equivalence relation on Z.
In a binomial distribution the sum and product of the mean and the variance are $\frac{25}{3}$ and $\frac{50}{3}$ respectively. Find the distribution.
Prove the following results:
$\sin^{-1}\frac{5}{13}+\cos^{-1}\frac{3}{5}=\tan^{-1}\frac{63}{16}$