Question
Question: The solution of the differential equation \(\dfrac{{dy}}{{dx}} + \dfrac{y}{2}\sec x = \dfrac{{\tan x...
The solution of the differential equation dxdy+2ysecx=2ytanx, where 0⩽x⩽2π and y(0)=1, is given by:
A. y2=1+secx+tanxx
B. y=1+secx+tanxx
C. y=1−secx+tanxx
D. y2=1−secx+tanxx
Solution
The given equation is a nonlinear differential equation. We will convert it into linear differential equation by dividing the equation by y. Then, make necessary substitution and compare with the standard linear differential equation. Find the integrating factor and apply initial value to get the value of c.
Complete step by step solution:
Given differential equation is a nonlinear equation.
dxdy+2ysecx=2ytanx
Divide the equation by y to convert it into a differential equation.
dxydy+2y2secx=2tanx
Let v=y2, then
⇒dxdv=2ydxdy ⇒ydxdy=21dxdv
On substituting the values, we will get,
21dxdv+2vsecx=2tanx ⇒dxdv+vsecx=tanx
Here, we can observe that the given differential equation is of the type linear in y
That is the equation dxdv+vsecx=tanx is of the form dxdy+Py=Q, where P=secx and Q=tanx
Then, integrating factor is given by e∫P(x)dx which is IF=e∫secxdx
We know that ∫secxdx=ln∣tanx+secx∣
This implies, eln∣tanx+secx∣=tanx+secx
We can solve the value of v using the formula,
v=IF1∫IF×Q(x)+c
On substituting the values, we will get,
v=(tanx+secx)1∫tanx(tanx+secx)+c
Now, we will solve the integration part and then substitute its value.
∫tanx(tanx+secx)=∫(tan2x+tanxsecx)dx
Also, tan2x=sec2x−1
Then, the value of integral is
⇒∫(sec2x−1+tanxsecx)dx ⇒∫sec2x−∫1dx+∫tanxsecxdx ⇒tanx−x+secx
Hence, the value of v becomes,
v=(tanx+secx)tanx+secx−x+c
Put v−y2
y2=(tanx+secx)tanx+secx−x+c ⇒y2=1−tanx+secxx+c
Put the initial condition y(0)=1
1=1−0+c ⇒c=0
Therefore,
y2=1−tanx+secxx
Hence, option D is correct.
Note:
The differential equation of the form dxdy+yP(x)=ynQ(x) can be converted into linear form by dividing the equation by yn and then substituting y1−n and then dividing by 1−n. Also, students must do the integration correctly.