Question
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+\text{y}=\cos\text{x}$

Answer

Here, $\frac{\text{dy}}{\text{dx}}+\text{y}=\cos\text{x}$
It is a linear differential equation. Comparing the equation by,
$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
$\text{P}=1,\text{Q}=\cos\text{x}$
I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\text{dx}}$
$=\text{e}^{\text{x}}$
Solution of the equation is given by,
$\text{y}\times(\text{I.F.})=\int\text{Q}\times(\text{I.F.})\text{dx + C}$
$\text{y}(\text{e}^{\text{x}})=\int(\cos\text{x})(\text{e}^{\text{x}})+\text{C}_1\ \dots(\text{i})$
Let $\text{I}=\int\text{e}^{\text{x}}\cos\text{xdx}$
$=\cos\text{x}\times\int\text{e}^{\text{x}}\text{dx}\int(\sin\text{x}\int\text{e}^{\text{x}}\text{dx})\text{dx + C}_2$
Using integration by parts
$\text{I}=\text{e}^{\text{x}}\cos{\text{x}}+\int\sin\text{xe}^{\text{x}}\text{dx + C}$
$=\text{e}^{\text{x}}\cos\text{x}+\big[\sin\text{x}\int\text{e}^{\text{x}}\text{dx}-\int(\cos\text{x}\int\text{e}^{\text{x}}\text{dx})\text{dx}\big]+\text{C}_2$
$\text{I}=\text{e}^{\text{x}}\cos\text{x}+\sin\text{e}^\text{x}-\text{I}+\text{C}_2$
$2\text{I}=\text{e}^{\text{x}}(\cos\text{x}+\sin\text{x})+\text{C}_2$
$\text{I}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin\text{x})+\frac{\text{C}_2}{2}$
$\text{I}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin\text{x})+\text{C}_3$
Putting I in equation (i),
$\text{ye}^{\text{x}}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin{\text{x}})+\text{C}_1+\text{C}_3$
$\text{ye}^{\text{x}}=\frac{\text{e}^{\text{x}}}2(\cos\text{x}+\sin\text{x})+\text{C}$
$\text{y}=\frac{1}2(\cos\text{x}+\sin\text{x})+\text{Ce}^{-\text{x}}$

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 function $f : R \rightarrow R$ is defined as $f(x) = x^3 + 4.$ Is it a bijection or not? In case it is a bijection, find $f^{-1}(3).$
Find the area bounded by the parabola $x=8+2 y-y^2$, the $y$-axis and the line $y=-1$ and $y=3$
Four balls are to be drawn without replacement from a box containing 8 red and 4 white balls. If X denotes the number of red balls drawn, then find the probability distribution of X.
Find the general solution of the differential equation $\text{x}\frac{\text{dy}}{\text{dx}}+2{\text{y}}=\text{x}^2$
Discuss the applicability of Lagrange's mean value theorem for the function:
f(x) = |x| on [−1, 1]
If $(\sin\text{x})^{\text{y}}=\text{x}+\text{y},$ prove that $\frac{\text{dy}}{\text{dx}}=\frac{1-(\text{x}+\text{y})\text{y}\cot\text{x}}{(\text{x}+\text{y})\log\sin\text{x}-1}$
The contents of three urns are as follows:
Urn 1 : $7$ white, $3$ black balls,
Urn 2 : $4$ white, $6$ black balls,
Urn 3 : $2$ white, $8$ black balls.
One of these urns is chosen at random with probabilities $0.20, 0.60$ and $0.20$ respectively. From the chosen urn two balls are drawn at random without replacement. If both these balls are white, what is the probability that these came from urn $3$?
If $y^x = e^{y-x},$ Prove that $\frac{\text{dy}}{\text{dx}}=\frac{(1+\log\text{y})^2}{\log\text{y}}$
Find the equation of the plane passing through the points (-1, 2, 0), (2, 2, -1) and parallel to the line $\frac{\text{x}-1}{1}=\frac{2\text{y}+1}{2}=\frac{\text{z}+1}{-1}.$
Differentiate the following functions with respect to x:
$\sin^{-1}\Big\{\frac{\sin\text{x}+\cos\text{x}}{\sqrt{2}}\Big\},-\frac{3\pi}{4}<\text{x}<\frac{\pi}{4}$