For exactness we must have ∂y∂M=∂x∂N. Let us check:
∂y∂M=tan2x+1,∂x∂N=sec2x.
Remembering the trigonometric identity tan2x+1=sec2x, we find that the two partial derivatives are equal, so the differential equation is indeed exact.
Therefore there exists a potential function F(x,y) such that
∂x∂F=M,∂y∂F=N.
Integrating M with respect to x while treating y as a constant, we write
F(x,y)=∫((y+1)tan2x+y)dx+g(y),
where g(y) is an arbitrary function of y (because the partial derivative with respect to x “misses” such a term).
We now evaluate the integral. First recall the identity tan2x=sec2x−1. Also recall the elementary antiderivative
∫sec2xdx=tanx.
Hence
∫tan2xdx=∫(sec2x−1)dx=tanx−x+C.
Using this result we get
F(x,y)=(y+1)(tanx−x)+yx+g(y).
Next we enforce the second requirement ∂y∂F=N=tanx. Differentiating F with respect to y gives
∂y∂F=(tanx−x)+x+g′(y)=tanx+g′(y).
Setting this equal to N=tanx immediately forces g′(y)=0, so g(y) must be a constant, which we absorb into the constant of the final solution. Consequently the exact integral of the differential equation is
F(x,y)=(y+1)(tanx−x)+yx=C,
where C is a constant determined by the initial/limit condition.
We are told that the solution satisfies the limiting condition
limx→0+xy(x)=1.
To exploit this, let us study the behaviour of F(x,y) as x→0+. For small x we use the Maclaurin expansion tanx=x+3x3+O(x5). Therefore
tanx−x=3x3+O(x5).
Substituting into F(x,y) we write, for small x,
F(x,y)=(y+1)(3x3+O(x5))+yx.
The limit information tells us that yx→1 as x→0+, hence near the origin y≈x1. Then
(y+1)3x3≈x1⋅3x3=3x2x→00.
So the first bracketed term vanishes in the limit, while yx→1. Consequently
C=limx→0+F(x,y)=1.
Thus the explicit implicit equation of the required solution curve is
(y+1)(tanx−x)+yx=1.
We are asked to find y(4π). Put x=4π; recall that tan4π=1. Then
tanx−x=1−4π.
Introduce the unknown value y0=y(4π). Substituting x=4π,y=y0 into the implicit relation gives