My book suggest to use the substitution $y(t)=y_{1}(t)+u(t)$ for Riccati odes
Given the ode:
$$y'=1+x^2-y^2$$
$\frac{dy}{dx}=1+x^2-y^2$
A solution is $y_{1}=x$ so $y=x+u$
$\frac{dy}{dx}=1+\frac{du}{dx}$
$1+\frac{du}{dx}=1+x^2-y^2$
$\frac{du}{dx}=x^2-(x+u)^2$
$\frac{du}{dx}=x^2-x^2-2xu-u^2$
$\frac{du}{dx}=-2xu-u^2$
How do I procceed from here? Is the substitution incorrect?
$$y'=1+x^2-y^2$$ $$y_1'=1+x^2-y_1^2$$
the difference gives
$$(y-x)'=(x-y)(x+y)=(x-y)(y-x+2x)$$
$$u'=-u(u+2x)=-2xu-u^2$$
$$-\frac{u'}{u^2}=2x\frac{1}{u}+1$$
this is Bernouilli type.
put $z=\frac{1}{u}$.
thus $$z'=2xz+1$$