Question
Question: Solve the following differential equation: \[\dfrac{dy}{dx}+y\tan x=\cos x\]...
Solve the following differential equation:
dxdy+ytanx=cosx
Solution
Hint: The given differential equation is a first degree linear differential equation of the form dxdy+Py=Q. The solution is given by:
y×I.F=∫Q×I.F.dx+c
where I.F=e∫Pdx
So we will first calculate an integrating factor known as I.F then we will substitute it in the equation of solution.
Complete step-by-step answer:
We have been given the differential equation dxdy+ytanx=cosx.
It is of the form dxdy+Py=Q known as first degree differential equation and the solution is given by,
y×I.F=∫Q×I.Fdx+c
where I.F=e∫Pdx
So we have where P=tanx and Q=cosx.
Now we will calculate the value of I.F as follows:
I.F=e∫Pdx=e∫tanxdx
Since we know that ∫tanxdx=ln(secx)
⇒I.F=eln(secx)
Also, we know that elnt=t
⇒I.F=secx
So the equation of the given differential equation is given as follows:
ysecx=∫secxcosxdx+c
Since we know that secx=cosx1