Note that we can encounter situations similar to y'=-y2/y - this system must be declare linear, a simple check if y appears to power one in the right side of the equation is not enough.
The mathematical expression of each second derivative can be obtained by the same procedure as the first derivative.
For the simple test if this derivative is constant or not, it is not necessary to compute and store the mathematical expressions of the second derivatives.