The solution of the differential equation \[\frac{\mathrm{d} y}{\mathrm{~d} x}=\frac{1+y^2}{1+x^2}\] is