Question
Find the general solution of the differential equation $\frac{\text{dy}}{\text{dx}}-{\text{y}}=\cos\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}-{\text{y}}=\cos\text{x}$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{P}\text{y}=\text{Q}$
Where P = -1 and $\text{Q}=\cos\text{x}$
$\therefore\text{ I}.\text{F}.=\text{e}^{\int{\text{P}\text{dx}}}$
$=\text{e}^{-\int\text{dx}}$
$=\text{e}^{-\text{x}}$
Multiplying both sides of (1) by $\text{I.F.}=\text{e}^{-\text{x}},$ we get
$\text{e}^{-\text{x}}\Big(\frac{\text{dy}}{\text{dx}}-\text{y}\Big)=\text{e}^{-\text{x}}\cos\text{x}$
$\Rightarrow\text{e}^{-\text{x}}\frac{\text{dy}}{\text{dx}}-\text{e}^{-\text{x}}\text{y}=\text{e}^{-\text{x}}\cos\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\text{e}^{-\text{x}}=\int \ \text{e}^{-\text{x}} \cos\text{x}\text{ dx} \ + \ \text{C}$
$\Rightarrow\text{ye}^{-\text{x}}=\text{I}+\text{C} \ ....(2)$
Here,
$\text{I}=\int\text{e}^{-\text{x}}\cos\text{x}\text{ dx}\ ..(3)$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin{\text{x}}-\int\big(-\text{e}^{-\text{x}}\sin\text{x}\big)\text{dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x}+\int {\text{e}^{-\text{x}}}\sin\text{x}\text{ dx}$
$\Rightarrow\text{I}= \text{e}^{-\text{x}}\sin \text{x}-\text{e}^{-\text{x}}\cos\text{x}-\int[(-\text{e}^{-\text{x}})\times(-\cos\text{x})]\text{dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x}-\text{e}^{-\text{x}}\cos\text{x}-\int\text{e}^{-\text{x}}\cos\text{x}\text{ dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x} - \text{e}^{-\text{x}}\cos\text{x} - \text{I}$ [From (3)]
$ \Rightarrow2\text{I}=\text{e}^{-\text{x}}(\sin\text{x}-\cos\text{x})$
$\Rightarrow\text{I}=\frac{\text{e}^{-\text{x}}}{2}(\sin\text{x}-\cos{\text{x}})\ ...(4)$
From (2) and (4) we get
$\Rightarrow\text{y}\text{e}^{-\text{x}}=\frac{\text{e}^{-\text{x}}}{2}(\sin\text{x} - \cos\text{x})+\text{C}$
$\Rightarrow\text{y}=\frac{1}{2}(\sin\text{x} - \cos\text{x}) +\text{C}\text{e}^{\text{x}}$
Hence, $\text{y}=\frac{1}{2}(\sin\text{x} - \cos\text{x}) +\text{C}\text{e}^{\text{x}}$ is the requires 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

A pair of dice is thrown. Find the probability of getting the sum 8 or more, if 4 appears on the first die.
Prove that a conical tent of given capacity will require the least amount of canvas when the height is √2 times the radius of the base.
On R − {1}, a binary operation * is defined by a * b = a + b − ab. Prove that * is commutative and associative. Find the identity element for * on R − {1}. Also, prove that every element of R − {1} is invertible.
The two adjacent sides of a parallelogram are $2\hat{\text{i}}-4\hat{\text{j}}-5\hat{\text{k}}$ and $2\hat{\text{i}}+2\hat{\text{j}}+3\hat{\text{k}}.$ Find the two unit vectors parallel to its diagonals. Using the diagonal vectors, find the area of the parallelogram.
Differentiate the following functions with respect to x:
$\log(\text{cosec x}-\cot\text{x})$
Solve the following differential equation:
$\text{x}^2\frac{\text{dy}}{\text{dx}}=\text{x}^2+\text{xy}+\text{y}^2$
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=2\text{x}+\text{x}^2\tan\text{x},\text{ y}(0)=1$
If $2 y=\sqrt{x+1}+\sqrt{x-1}$, show that $4\left(x^2-1\right) y_2+4 x y_1-y=0$.
In the following, find the value of the constant k so that the given function is continuous at the indicated point:
$\text{f(x)}=\begin{cases}(\text{x}-1)\tan\frac{\pi\text{x}}{2},&\text{if}\text{ x}\neq1\\\text{k},&\text{if}\text{ x}=1\end{cases}\text{at x} = 1$
Differentiate the following functions from first principles:
$\sin^{-1}(2\text{x}+3)$