Given
(tan−1y−x)dxdy=1+y2,y(0)=0.
Invert the equation:
dydx=1+y2tan−1y−x.
Thus,
dydx+1+y2x=1+y2tan−1y.
This is a linear differential equation in x.
The integrating factor is
μ(y)=e∫1+y2dy=etan−1y.
Multiplying through by the integrating factor:
dyd(xetan−1y)=etan−1y1+y2tan−1y.
Let
u=tan−1y,du=1+y2dy.
Then
xeu=∫ueudu+C.
Using integration by parts:
∫ueudu=eu(u−1)+C.
Therefore,
xetan−1y=etan−1y(tan−1y−1)+C.
Apply the condition x=0,y=0:
0=−1+C,
so
C=1.
Hence,
etan−1y(x−tan−1y+1)=1.
Note: The equation is printed as (tan−1y−x)dxdy=(1+y2)dx, which mixes forms; the intended equation, solved above, is (tan−1y−x)dy=(1+y2)dx.