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 equatoion of the plane passing through the points $(2, 2, 1)$ and $(9, 3, 6)$ and perpendicular to the plane $2x + 6y + 6z = 1.$
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$
Without expanding, show that the values of the following determinant are zero:
$\begin{vmatrix}0&\text{x}&\text{y}\\-\text{x}&0&\text{z}\\-\text{y}&-\text{z}&0\end{vmatrix}$
Evaluate the following integrals:
$\int\limits^2_{-2}|2\text{x}+3|\text{dx}$
Prove that:
$\begin{vmatrix}\text{a}^2&\text{bc}&\text{ac}+\text{c}^2\\\text{a}^2+\text{ab}&\text{b}^2&\text{ac}\\\text{ab}&\text{b}^2+\text{ac}&\text{c}^2\end{vmatrix}=4\text{a}^2\text{b}^2\text{c}^2$
Show that $\text{y}=\frac{\text{a}}{\text{x}}+\text{b}$ is a solution of the differential equation $\frac{\text{d}^2\text{y}}{\text{dx}^2}=\frac{2}{\text{x}}\Big(\frac{\text{dy}}{\text{dx}}\Big)=0$
The two vectors $\hat{\text{j}}+\hat{\text{k}}$ and $3\hat{\text{i}}-\hat{\text{j}}+4\hat{\text{k}}$ represents the sides $\overrightarrow{\text{AB}}$ and $\overrightarrow{\text{AC}}$ respectively of a triangle ABC. Find the length of the median through A.
A pair of fair dice is thrown. Let X be the random variable which denotes the minimum of the two numbers which appear. Find the probability distribution, mean and variance of X.
Examine the continuity of the function
 $\text{f}\text{(x)}=\begin{cases}3\text{x}-2 &, \text{ if x} \leq 0\\\text{x}+1 &, \text{ if x} > 0\end{cases}\text{at x}=0$ 
 Also sketch the graph of this function.
Given that the two numbers appearing on throwing two dice are different. Find the probability of the event 'the sum of numbers on the dice is 4'.