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

Differentiate the following functions with respect to x:
$10^{\log\sin\text{x}}$
Evaluate the following intregals:
$\int\frac{3\text{x}+1}{\sqrt{5-2\text{x}-\text{x}^2}}\text{dx}$
In each of the show that the given differential equation is homogeneous and solve each of them.
$\text{x}\frac{\text{dy}}{\text{dx}}-\text{y}+\text{x}\sin\bigg(\frac{\text{y}}{\text{x}}\bigg)=0$
If  $\vec{\text{a}}=2\hat{\text{i}}+5\hat{\text{j}}-7\hat{\text{k}},\vec{\text{b}}=-3\hat{\text{i}}+4\hat{\text{j}}+\hat{\text{k}}$ and $\vec{\text{c}}=\hat{\text{i}}-2\hat{\text{j}}-3\hat{\text{k}},$ compute $\big(\vec{\text{a}}\times\vec{\text{b}}\big)\times\vec{\text{c}}$ and $\vec{\text{a}}\times\big(\vec{\text{b}}\times\vec{\text{c}}\big)$ and verify that these are not equal.
A company manufactures two types of toys A and B. Type A requires 5 minutes each for cutting and 10 minutes each for assembling. Type B requires 8 minutes each for cutting and 8 minutes each for assembling. There are 3 hours available for cutting and 4 hours available for assembling in a day. The profit is Rs. 50 each on type A and Rs. 60 each on type B. How many toys of each type should the company manufacture in a day to maximize the profit?
Find the coordinates of the point where the line through the points A(3, 4, 1) and B(5, 1, 6) crosses the XY-plane.
If O is the origin and the coordinates of A are (a, b, c) Find the direction cosines of OA and the equation of the plane through A at right angles to OA.
Evaluate the following integrals:
$\int\limits^1_0\frac{1-\text{x}^2}{\text{x}^4+\text{x}^2+1}\text{ dx}$
Find the angle of intersecting of the following curves:
$\text{x}^2+\text{y}^2-4\text{x}-1=0\text{ and }\text{x}^2+\text{y}^2-2\text{y}-9=0$
Evaluate the following integrals:
$\int\limits^{\frac{3}{2}}_0\big|\text{x}\sin\pi\text{x}\big|\text{dx}$