Question
Question: Solve the differential equation: \[\dfrac{{dy}}{{dx}} + y{\sec ^2}x = \tan x{\sec ^2}x;y(0) = 1\]...
Solve the differential equation:
dxdy+ysec2x=tanxsec2x;y(0)=1
Solution
We need to solve the differential equation, which means we need to bring it to the simplest form. Now, as we observe the equation, we see that it is in the form dxdy+Py=Q. When the equation is in this form, we go to the next step which is finding out the Integrating Factor (IF). IF is given by e∫P.dx. The Solution is given by, y.e∫P.dx=∫(Qe∫P.dx)dx+c. We substitute the values of P and Q properly. Then after simplifying, we get the final solution by using substitution and integration by parts method. There is one more condition given in the question, that is, y(0)=1. We use this condition to find the value of c and then we substitute it in the solution to get the final answer.
Complete step-by-step solution:
Let us consider the given equation,
dxdy+ysec2x=tanxsec2x
This is of the form,
dxdy+Py=Q
We can identify P and Q, which is
P=sec2x
Q=tanxsec2x
We find the Integrating Factor (IF) using the formula,
IF=e∫P.dx
By substituting for P, we get
IF=e∫sec2x.dx
We know that, ∫sec2xdx=tanx+c
Substituting this in the above equation,
IF=etanx
We know that,
y.e∫P.dx=∫(Qe∫P.dx)dx+c
Where, e∫P.dx is the IF.
So, we get,
⇒yetanx=∫(tanxsec2xetanx)dx
Now, we consider the RHs
∫(tanxsec2xetanx)dx
We can solve this integral by substitution method.
Put tanx=t
Differentiating on both sides with respect to x,
⇒sec2xdx=dt
We substitute this in the above equation,
∫(tanxsec2xetanx)dx=∫t.etdt…….(1)
We now solve the RHS by Integration by parts.
The formula used is,
∫udv=uv−∫vdu
Where,