Question
Solve differential equation: $\frac{d y}{d x}-y \tan x=e^x$

Answer

The given differential equation is,
$\frac{d y}{d x}-y \tan x=e^x$
It is a linear differential equation.
Comparing it with $\frac{d y}{d x}+p y=Q$
$P=-\tan X, Q=e^{X}$
$\text { L.F. }=e^{\int pdx x}$
$=e^{-\int \tan x dx}$
$=e^{-\log \sec x}$
$=\cos x$
Solution of the given equation is given by,
$y \text { (I.F.) }=\int Q \times(I . F) d x+c_1$
$y \cos x=\int e^x \cos x d x+c_1$
$y \cos x=I+c_1 \ldots .(1)$
$I=\int e^x \cos x d x$
Using equation by parts
$I=e^x \int \cos x d x-\int\left(e^x \int \cos x d x\right) d x+c_2$
$=e^x \sin x-\int e^x \sin x d x+c_2$
$=e^x \sin x-\left[e^x\left(\int \sin x d x\right)-\int\left(e^x\left(\int \sin x d x\right) d x\right]+c_2\right.$
$I=e^x \sin x+e^x \cos x-\int e^x \cos x d x+c_2$
$I=e^x(\sin x+\cos x)-I+c_2$
$2 I=e^x(\sin x+\cos x)+c_2$
$I=\frac{1}{2} e^x(\sin x+\cos x)+c_3$
Using equation $(i)$
$y \cos x=\frac{1}{2} e^x(\sin x+\cos x)+c$

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

If $x ^{ x }+ y ^{ x }=1$, prove that $\frac{d y}{d x}=-\left\{\frac{x^x(1+\log x)+y^x \cdot \log y}{x \cdot y^{(x-1)}}\right\}$
If $\sin^{-1}\frac{2\text{a}}{1+\text{a}^2}-\cos^{-1}\frac{1-\text{b}^2}{1+\text{b}^2}=\tan^{-1}\frac{2\text{x}}{1-\text{x}^2},$ then prove that $\text{x}=\frac{\text{a}-\text{b}}{1+\text{ab}}$
If $4\sin^{-1}\text{x}+\cos^{-1}\text{x}=\pi,$ then what is the value of x?
Dot product of a vector with $\hat{\text{i}}+\hat{\text{j}}-3\hat{\text{k}},\hat{\text{i}}+3\hat{\text{j}}-2\hat{\text{k}}$ and $2\hat{\text{i}}+\hat{\text{j}}+4\hat{\text{k}}$ are 0, 5 and 8 respectively. Find the vector.
Write a value of $\int\frac{1+\cot\text{x}}{\text{x}+\log\sin\text{x}}\text{ dx}$
If $​​\vec{\text{a}}+​​\vec{\text{b}}​​+\vec{\text{c}}=\vec{0,}$ show that the angle $\theta$ between the vectors $​​\vec{\text{b}}$ and $\vec{\text{c}}$ is given by $\cos\theta=\frac{|\vec{\text{a}}|^2-\big|\vec{\text{b}}\big|^2-|\vec{\text{c}}|^2}{2\big|\vec{\text{b}}\big||\vec{\text{c}}|}.$
If the mean and variance of a binomial distribution are 4 and 3, respectively, find the probability of no success.
Solve : $\cos (x+y) d y=d x$.
For the following differntial equations verify that the accompanying function is a solution:
Differential equation Function
$\text{x}+\text{y}\frac{\text{dy}}{\text{dx}}=0$ $\text{y}=\pm\sqrt{\text{a}^2-\text{x}^2}$
If $\big|\vec{\text{a}}\times\vec{\text{b}}\big|^2+\big|\vec{\text{a}}.\vec{\text{b}}\big|^2=400$ and $|\vec{\text{a}}|=5,$ then write the value of $\big|\vec{\text{b}}\big|.$