Question
Question: The solution of the differential equation \(\dfrac{{{\text{dy}}}}{{{\text{dx}}}}{\text{ + }}\dfrac{{...
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
We can make the nonlinear differential equation to linear differential equation by dividing the equation with a suitable power of y and then by giving a suitable substitution. We can solve the linear ordinary differential equation by finding the integrating factor and integrating. Then apply the initial value to get the value of the constant of integration.
Complete step by step solution: We have a nonlinear ordinary differential equation.
dxdy + 2ysecx = 2ytanx
We can make the equation by following steps. Firstly, we can divide the equation by y1,
dxydy + 2y2secx = 2tanx
Let v = y2,then,
dxdv = 2ydxdy
⇒ydxdy = 21dxdv
Making this substitution in , we get,
21×dxdv + 2vsecx = 2tanx
Multiplying the equation throughout with 2, we get,
dxdv + vsecx = tanx
Now we have a linear differential equation with P(x) = secx and Q(x) = tanx. Then the integrating factor is given by,
IF = e∫P(x)dx = e∫secxdx
We know that, ∫secxdx = ln∣tanx + secx∣,
⇒IF = eln∣tanx + secx∣
We know that, eln∣a∣ = a. So, we get,
⇒IF = tanx + secx
Now we can solve for v,
v = IF1∫IF×Q(x)dx + C = tanx + secx1∫tanx(tanx + secx)dx + C
We can solve the integration part.
∫tanx(tanx + secx)dx = ∫(tan2x + tanxsecx)dx
We know that tan2x = sec2x - 1. So, we get,
= ∫(sec2x - 1 + tanxsecx)dx = ∫sec2xdx - ∫1dx + ∫tanxsecxdx
We know the integral of ∫sec2xdx = tanx, ∫1dx = xand ∫tanxsecxdx = secx. So, we get,
∫tanx(tanx + secx)dx = tanx - x + secx
So, vbecomes,
v = tanx + secxtanx + secx - x + C
Resubstituting v = y2, we get,
y2 = 1 - tanx + secxx + C
Applying initial condition, y(0) = 1,
Giving, C = 0, we get,
y2 = 1 - tanx + secxx
Therefore, the correct answer is option D.
Note: A non-linear ordinary differential equation of the form dxdy + yP(x) = ynQ(x) can be converted into linear form by dividing the equation by yn, the give substitution for y1 - nand divide by 1 - n.
We can solve the linear differential equation by finding the integrating factor and integrating. As the initial value is given, we must find the value of the constant of integration by applying the initial condition. This type of problem with the initial values given is called initial value problems.