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

Without expanding, show that the values of the following determinant are zero:
$\begin{vmatrix}6&-3&2\\2&-1&2\\-10&5&2 \end{vmatrix}$
$\int\limits^{\frac{\pi}{4}}_{-\frac{\pi}{4}}\log(\sin\text{x}+\cos\text{x})\text{dx}$
Let C be the set of all complex numbers and Cbe the set of all no-zero complex numbers. Let a relation R on Cbe defined as $\text{z}_1\text{R z}_2\Leftrightarrow\frac{\text{z}_1-\text{z}_2}{\text{z}_1+\text{z}_2}$ is real for all $\text{z}_1,\ \text{z}_2\in\text{C}_0.$ Show that R is an equivalence relation.
Find the coordinates of the point where the line $\frac{\text{x}-2}{3}=\frac{\text{y}+1}{4}=\frac{\text{z}-2}{2}$ intersectscts the plane x - y + z - 5 = 0. Also, find the angle between the line and the plane.
Solve the following differential equation $(\text{x}+2\text{y}^2)\frac{\text{dy}}{\text{dx}}=\text{y},$ given that when x = 2, y = 1.
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+2\text{y}=\sin\text{x}$
Differentiate $\sin^{-1}\Big(2\text{ax}\sqrt{1-\text{a}^2\text{x}^2}\Big)$ with respect to $\sqrt{1-\text{a}^2\text{x}^2},$ if $-\frac{1}{\sqrt{2}}<\text{ax}<\frac{1}{\sqrt{2}}$.
If f : R → (-1, 1) defined by $\text{f(x)}=\frac{10^{\text{x}}-10^{-\text{x}}}{10^{\text{x}}+10^{-\text{x}}}$ is invertible, find f-1.
Evaluate the following integrals:
$\int4\text{x}^3\sqrt{5-\text{x}^2}\text{ dx}$
Let X denot the number of colleges where you will apply after your results and P(X = x) denotes your probability of getting admission in x number of colleges. It is given that
$\text{P}(\text{X = x})=\begin{cases}\text{kx},&\text{if}\text{ x}=0\text{ or }1\\2\text{kx},&\text{if x = 2}\\\text{k}(5-\text{x}),&\text{if x = 3 or 4}\\0,&\text{if x > 4}\end{cases}$
where k is a positive constant. Find the value of k. Also find the probability that you will get addmission in
  1. Exactly one college.
  2. At most two colleges.
  3. At least two colleges.