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

The management committee of a residential colony decided to award some of its members (say x) for honesty, some (say y) for helping others and some others (say z) for supervising the workers to keep the colony neat and clean. The sum of all the awardees is 12. Three times the sum of awardees for cooperation and supervision added to two times the number of awardees for honesty is 33. If the sum of the number of awardees for honesty and supervision is twice the number of awardees for helping others, using matrix method, find the number of awardees of each category. Apart from these values, namely, honesty, cooperation and supervision, suggest one more value which the management of the colony must include for awards.
If the mean and variance of a random variable X having  a binomial distribution are 4 and 2 respectively, find P (X = 1).
Write the minors and cofactors of element of the first column of the following matrices and hence evaluate the determinant in case:
$\text{A}=\begin{vmatrix}1&\text{a}&\text{bc}\\1&\text{b}&\text{ca}\\1&\text{c}&\text{ab} \end{vmatrix}$
Evalute the following integrals:
$\int\frac{\cos4\text{x}-\cos2\text{x}}{\sin4\text{x}-\sin2\text{x}}\text{dx}$
Differentiate the following functions from first principles:
$\log\text{cosec x}$
Evaluate:$\int\limits_0^{\pi/2}\frac{\text{x + sin x}}{\text{1 + cosx}}\text{dx}$.
Find the value of a and b so that the function f(x) defind by $\text{f(x)}=\begin{cases}\text{x}+\text{a}\sqrt{2}\sin\text{x},&\text{if }0\leq\text{x}<\frac{\pi}{4}\\2\text{x}\cot\text{ x}+\text{b},&\text{if }\frac{\pi}{4}\leq\text{x}<\frac{\pi}{2}\\\text{a}\cos2\text{x}-\text{b}\sin\text{x},&\text{if }\frac{\pi}{2}\leq\text{x}\leq\pi\end{cases}$ becomes continuous on $[0,\pi]$
Without expanding, show that the values of the following determinant are zero:
$\begin{vmatrix}\cos(\text{x}+\text{y})&-\sin(\text{x}+\text{y})&\cos2\text{y}\\\sin\text{x}&\cos\text{x}&\sin\text{y}\\-\cos\text{x}&\sin\text{x}&-\cos\text{y} \end{vmatrix}$
At every point on a curve the slope is the sum of the abscissa and the product of the ordinate and the abscissa, and the curve passes through (0, 1). Find the equation of the curve.
$\text{If y = }\sqrt{\text{x}}+\frac{1}{\sqrt{\text{x}}},\text{ show that }\text{2x}\frac{\text{dy}}{\text{dx}}+\text{y}=2\sqrt{\text{x}}.$