The nonlinear method

Recalculate the equation, there might be some errors in the equation.
Complete but not verified