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

If $\text{A}=\begin{bmatrix}3 & -2 \\4 & -2 \end{bmatrix},$ find the value of $\lambda$ so that $\text{A}^2=\lambda\text{A}-2\text{I}.$ Hence, find $A^{-1}$.
Evaluate the following integrals:
$\int\cos^{-1}(4\text{x}^3-3\text{x})\text{dx}$
Let A = {1, 2, 3}. Then, the number of relations containing (1, 2) and (1, 3) which are reflexive and symmetric but not transitive is:
  1. 1
  2. 2
  3. 3
  4. 4
A factory manufactures two types of screws, A and B, each type requiring the use of two machines - an automatic and a hand-operated. It takes 4 minute on the automatic and 6 minutes on the hand-operated machines to manufacture a package of screws 'A', while it takes 6 minutes on the automatic and 3 minutes on the hand-operated machine to manufacture a package of screws 'B'. Each machine is available for at most 4 hours on any day. The manufacturer can sell a package of screws 'A' at a profit of 70 P and screws 'B' at a profit of Rs. 1. Assuming that he can sell all the screws he can manufacture, how many packages of each type should the factory owner produce in a day in order to maximize his profit? Determine the maximum profit.
Discuss the continuity of the f(x) at the indicated points f(x) = |x| + |x - 1| at x = 0, 1.
Differentiate the following functions with respect to x:
$\tan^{-1}\Big(\frac{\text{x}-\text{a}}{\text{x}+\text{a}}\Big)$
Evaluate:
$\int\frac{1}{\sin^{4}\text{x} +\sin^{2}\text{x}\cos^{2}\text{x}+\cos^{4}\text{x}}\text{dx}$
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}$
Find the vector and cartesian forms of the plane passing through the point (1, 2, -4) and parallel to the lines $\vec{\text{r}}=(\hat{\text{i}}+2\hat{\text{j}}-4\hat{\text{k}})+\lambda(2\hat{\text{i}}+3\hat{\text{j}}+6\hat{\text{k}})$ and $\vec{\text{r}}=(\hat{\text{i}}-3\hat{\text{j}}+5\hat{\text{k}})+\mu(\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}}).$ Also, find the distance of the point (9, -8, -10) from the plane thus obtained.
Form the differential equation of the family of curves represented by the equation (a being the perimeter):$(2\text{x}+\text{a})^2+\text{y}^2=\text{a}^2$