We need to solve (ey+1)cosxdx+eysinxdy=0 with the condition that it passes through (2π,0), and find ey(π/6).
Consider the function F(x,y)=(ey+1)sinx whose total differential is
dF=∂x∂Fdx+∂y∂Fdy=(ey+1)cosxdx+eysinxdy,
exactly matching the given equation. Hence
d[(ey+1)sinx]=0.
Integration yields
(ey+1)sinx=C.
Applying the condition at (2π,0) gives
(e0+1)sin2π=C⟹(1+1)⋅1=C⟹C=2.
At x=6π, the equation becomes
(ey+1)sin6π=2⟹(ey+1)⋅21=2⟹ey+1=4⟹ey=3.
Therefore, ey(π/6)=3.