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

Find the cartesian and vector equations of a line which passes through the point $(1, 2, 3)$ and is parallel to the line $\frac{-\text{x}-2}{1}=\frac{\text{y}+3}{7}=\frac{2\text{z}-6}{3}.$
Evaluate the following integrals:
$\int\limits^{5}_0\frac{\sqrt[4]{\text{x}+4}}{\sqrt[4]{\text{x}+4}+\sqrt[9]{9-\text{x}}}\text{ dx}$
Find the angle between the following pairs of lines:$\frac{\text{x}-5}{1}=\frac{2\text{y}+6}{-2}=\frac{\text{z}-3}{1}$ and $\frac{\text{x}-2}{3}=\frac{\text{y}+1}{4}=\frac{\text{z}-6}{5}$
Prove the following results:
$\tan^{-1}\frac{1}{7}+2\tan^{-1}\frac{1}{3}=\frac{\pi}{4}$
Let $X$ be a discrete random variable whose probability distribution is defined as follows:
$\text{P}(\text{X}=\text{x})=\begin{cases}\text{k}(\text{x}+1) & \text{for}\text{ x}= 1,2,3,4\\2\text{kx} & \text{for}\text{ x } =5,6,7\\0&\text{otherwise} \end{cases}$
where k is a constant. Calculate:
  1. The value of $A$ if $E(X) = 2.94$
  2. Variance of $X$.
  3. Standard deviation of $X$.
A manufacturer of electronic circuits has a stock of 200 resistors, 120 transistors and 150 capacitors and is required to produce two types of circuits A and B. Type A requires 20 resistors, 10 transistors and 10 capacitors. Type B requires 10 resistors, 20 transistors and 30 capacitors. If the profit on type A circuit is Rs. 50 and that on type B circuit is Rs. 60, formulate this problem as a LPP so that the manufacturer can maximise his profit.
Evaluate the following integrals:
$\int\limits^4_{0}\big(|\text{x}|+|\text{x}+2|+|\text{x}+4|\big)\text{dx}$ 
Solve the following differential equation:
$\text{y}^2\text{dx}+(\text{x}^2-\text{xy}+\text{y}^2)\text{dy}=0$
Show that the height of the cylinder of maximum volume that can be inscribed a sphere of radius R is $\frac{2\text{R}}{\sqrt{3}}$ .
Evaluate the following integrals:
$\int\limits^{\frac{\pi}{2}}_{-\frac{\pi}{2}}\sin\text{x}|\sin\text{x}|\text{dx}$