The following flow chart gives the algorithm for solving quadrature ode.
ode internal name "quadrature"
Solved by direct integration. There are two forms. They are
For first form, the solution is
For the second form the solution is
These two forms are special cases of separable first order ode \(y^{\prime }=f\left ( x\right ) g\left ( y\right ) .\)
For the form \(y^{\prime }=f\left ( y\right ) \) and if IC are given, we should always check if IC satisfies the ODE itself first. If so, then the solution is simply \(y=y_{0}\). i.e. there is no need to integrate and solve for constant of integration and any of this. This only works for \(y^{\prime }=f\left ( y\right ) \) form. Not for \(y^{\prime }=f\left ( x\right ) \).
Given an ode \(y^{\prime }=f\left ( x\right ) \) and if it is not possible to integrate \(\int f\left ( x\right ) dx\), then the final solution should be left as
If initial conditions are given as \(y\left ( x_{0}\right ) =y_{0}\) then the above is adjusted to become
This is only when the integration of \(f\left ( x\right ) \) can not be computed.
On the other hand, if the ode is \(y^{\prime }=g\left ( y\right ) \) and it is also not possible to integrate \(\int \frac {1}{g\left ( y\right ) }\) then the final answer now becomes
If initial conditions are given as \(y\left ( x_{0}\right ) =y_{0}\) then the above is adjusted to become
Or
For the case where it is not possible to solve for \(y^{\prime }\) explicitly, then \(\operatorname {RootOf}\) is used. For example, given
This is quadrature, since it has only \(y^{\prime }\) and \(x\). But it is not possible to isolate \(y^{\prime }\). The solution will be in terms of \(\operatorname {RootOf}\) given by
We now still continue as before and integrate both sides which results in
If initial conditions are given as \(y\left ( x_{0}\right ) =y_{0}\) the above is modified to become
What happens if the ode had a missing \(x\) instead? For an example
Now solving for \(y^{\prime }\) gives
Integrating as before results in
If initial conditions \(y\left ( x_{0}\right ) =y_{0}\) are given, the above becomes