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

Evaluate the following intregals:
$\int\frac{\text{ax}^2+\text{bx}+\text{c}}{(\text{x}-\text{a})(\text{x}-\text{b})(\text{x}-\text{c})}\ \text{dx},$ where a, b, c are distinct
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{k}+1,&\text{if}\text{ x}\leq\pi\\\cos\text{x},&\text{if}\text{ x}>\pi\end{cases}\text{at x} = \pi$
Evaluate the following integrals:
$\int\cos\Big\{2\cot^{-1}\sqrt{\frac{1+\text{x}}{1-\text{x}}}\Big\}\text{dx}$
Coloured balls are distributed in 3 bags as shown in the following table :
Colour of balls
BagBlackWhiteRed
I123
1241
III453

A bag is selected at random and then two balls are randomly drawn from the selected bag. The colours of the balls are black and red. What is the probability that ball drawn is from bag I?
If the axes are rectangular and p is the point (2, 3, -1), find the equation of the plane throught p at right angles to OP.
Find all points of discontinuity of f, where f is defined by:
$\text {f(x)}=\begin{cases}\frac{\left|\text x\right|}{\text x},\ \ \text {if x}\neq0\\0,\ \ \ \ \text{if x} = 0\end{cases}$
Evaluate the following intregals:
$\int\frac{\sin2\text{x}}{(1+\sin\text{x})(2+\sin\text{x})}\text{ dx}$
Find $\frac{\text{dy}}{\text{ dx}} $in the following:
$\text{y}=\sin^{-1}\Bigg(\frac{{1}-\text{x}^{2}}{1+\text{x}^{2}}\Bigg), 0 <\text{x}<1$
If $\text{y}=500\text{e}^{7\text{x}}+600\text{e}^{-7\text{x}}$ prove that $\frac{\text{d}^2\text{y}}{\text{dx}^2}=49\text{y}.$
If $\text{A}=\begin{bmatrix}1&0&-3\\2&1&3\\0&1&1\end{bmatrix},$ then verify A2 + A = A(A + I), where I is the identity matrix.