The following shows how to determine if \(F\left ( x,y,y^{\prime },y^{\prime \prime }\right ) =0\) is exact or not (without having to find the first integral \(R\)). This is based on page 164 in Murphy book. The second order ode must be of degree one. If it is, it can not be exact. The ode is exact iff
This turns out to be the same thing as using \(p^{\prime \prime }-q^{\prime }+r=0\) on the ode \(py^{\prime \prime }-q^{\prime }+r=0\). Let us apply the above test on second order ode which is known to be exact to see how it works. The ode is
Hence the above test gives
Confirmed. Since the ode is linear, we could also apply \(p^{\prime \prime }-q^{\prime }+r=0\) to check, which is simpler. Here \(p=x,q=\left ( y-1\right ) ,r=0\). Therefore
The form (1) is given in Murphy book which is more general since it works on nonlinear and linear odes while \(p^{\prime \prime }-q^{\prime }+r=0\) is meant to be used for linear second order odes.
In implementation of the solver this is the same type of ode as "second order integrable as is" ode which is described below. I should merge these together. if a second order ode is exact, then it is also integrable ode as is. This is by definition of exactness above.