Given \(y^{\prime }=f_{0}+f_{1}y+f_{2}y^{2}\), and also given one known particular solution \(y_{1}\). This is easy case. See section (3-1-2) on how to try to find a particular solution if one is not given. Once one particular solution is known (either given or by using 3-1-2) then finding the solution is done as follows. Let
The ode becomes Bernoulli as shown below
Assuming we are given a particular solution \(y_{1}\) to the general Riccati ode \(y^{\prime }=f_{0}\left ( x\right ) +f_{1}\left ( x\right ) y+f_{2}\left ( x\right ) y^{2}\). Then we can either let \(y=y_{1}+u\) or \(y=y_{1}+\frac {1}{u}\).
Using \(y=y_{1}+u\) method, then the the Riccati ode \(y^{\prime }=f_{0}+f_{1}y+f_{2}y^{2}\) becomes a Bernoulli ode.
Which is Bernoulli ode. Solving this for \(u\) then \(y=y_{1}+u\). Another possibility is to assume that \(y=y_{1}+\frac {1}{u\left ( x\right ) }\) which results in Linear ode instead of Bernoulli which is a little simpler to solve. A direct formula to obtain the general solution if particular solution \(y_{1}\) is known is given on page 105 of the handbook of exact solutions of ordinary differential equation as
If the input ode was \(g\left ( x\right ) y^{\prime }=f_{0}+f_{1}y+f_{2}y^{2}\) instead, then (1) is modified to be
Examples below show how to use these formulas. The above formula can be derived from using \(y=y_{1}+\frac {1}{u\left ( x\right ) }\) and using an integrating factor to solve for \(u\).