Find a general solution to the equation $$y'-x^2y+y^2=2x$$
I managed to guess a solution $y=x^2$ $$(x^2)'-x^2\cdot x^2+(x^2)^2=2x-x^4+x^4=2x$$ To get the general solution I tried plugging $y=z(x)+x^2$ into the equation, which gives $$z'+x^2z+z^2=0$$ The equation is not exact $$dz+(x^2z+z^2)dx=0$$ and I failed in the search for an integrating factor. Moreover, the solution in Wolfram is not so welcoming. Maybe there is some implicit solution...
Set $z=\frac1u$ and you get the linear DE $$ -u'+x^2u+1=0. $$ The full, one-step parametrization is $y(x)=x^2+\frac1{u(x)}$, as is usual for Riccati-equations with one known solution.
As the integrating factor is $\exp(-\frac{x^3}3)$, the resulting solution will not be simpler than the one found via WA.