Separate the variables on the interval from 0 to π/4:
1+y2dy=−1+e2tanxetanxsec2xdx.
With u=etanx, integration gives tan−1y+tan−1(etanx)=C. At x=0, y=1, so C=π/2.
As etanx>0, the identity tan−1u+tan−1(1/u)=π/2 gives y=e−tanx on this interval. Therefore y(π/4)=e−1=1/e, option (3).