7. Ordinary Differential Equations (ODEs)#
There are a few special cases that are exactly solvable. Most tricks attempt to bring an equation into one of these forms. Note that there are many tricks, and so often it is easiest to try to use a table of exact results like [Polyanin and Zaitsev, 2018] if you need an exact solution. These notes are intended as a summary of Chapter 7 of [Arfken et al., 2013].
Separable#
For most physics problems, I highly recommend including the endpoints of integration – this makes determining the constants of integration much more natural.
Exact#
The idea here is to express the ODE as a total derivative of some function \(f(x, y)\) which will then be constant. A quick check is to look at the mixed partials to see if they are equal \(f_{,xy} = f_{,yx}\).
Integrating Factor#
Related is trying to find an integrating factor \(\lambda(x)\) such that multiplying the equation by it makes it exact:
Integrating factors always exist, but there is no general algorithm for finding them.
Example: General first-order linear equation.
Linear first-order equations always have a solution
As [Arfken et al., 2013] shows, one can try to find an integrating factor that makes it exact.
Isobaric/Homogeneous#
These are equations of the form
Basically, this means that the equation makes sense dimensionally, and that one can introduce a dimensionless variable \(v = y/x^{m}\) so \(y = vx^{m}\) to separate the equations:
The basic idea is that \(x\) and \(y\) have the “same” dimensions (up to a power \(m\)), and this just defines the units for the problem. Once these units are scaled out, we obtain a separable equation for the non-trivial dimensionless combination \(v\).
Clairaut’s Equation: Envelopes#
A fun example worth being aware of is Clairaut’s Equation:
Notice that this is solved by a general set of lines whose slopes and intercepts are related by \(b = f(m)\):
The interesting property is that the envelope of these lines is also a singular solution of the equation. This can be found by differentiating the equation again:
Thus, either \(y''=0\) – the lines we have already described – or \(x + f'(y') = 0\) – which describes the singular solution through the parametric relationship
where \(m\) is the slope (which changes monotonically as we traverse the envelope).
Do It! Find the singular solution.
The equation \(x = -f'(y')\) suggests using \(t=y'(x)\) as a parameter so that \(x(t) = -f'(t)\). Differentiating \(y(t)\), we have
It looks like we have an integration constant here, but remember that we are solving the derivative of the original equation. Returning to Clairaut’s Equation, we have
Hence, the integration constant was spuriously introduced by our procedure and the solution is in fact singular.
Variation of Parameters#
Related to the method of undetermined coefficients used to solve \(y' + p(x)y = q(x)\) is Lagrange’s method of variation of parameters, which is useful for finding particular solutions of the inhomogeneous equation
if you know the homogeneous solutions. I.e., let \(y_n(x)\) satisfy the homogeneous equation
then look for solutions that are linear combinations of the form
Dropping the explicit \(x\) dependence in further expressions, the trick is to impose the condition \(u_1'y_1 + u_2'y_2 = 0\) so that we have the following:
Substituting these back into the original equation, the left set of terms cancel, and what remains, including the trick, is a solvable linear set of equations for \(u'_n(x)\):
Note that this works for higher order equations: see [Polyanin and Zaitsev, 2018] for details.
Series and Frobenius’s Method#
The goal is to look for series solutions for ODEs. The general strategy is:
Look for singularities and asymptotic behaviour.
Express the solution as an appropriate series.
Find recurrence relations for the coefficients.
Check the solution for convergence, issues, and against the original equation.
To simplify matters, we will always expand about \(x=0\), but for a given differential equation it might make sense to expand about another point \(x_0\). If so, just change variables. Here are some notes:
1. Singularities and Asymptotics
[Arfken et al., 2013] describes the general approach for identifying singularities based on Fuch’s theorem. E.g., if we write the equation as
then there are no singularities where \(p(x)\), \(q(x)\), and \(g(x)\) are analytic.
Note
In [Arfken et al., 2013] and [Hassani, 2013], they consider
and couch this in terms of \(P(x) = p(x)/x\) having at worst a simple pole, and \(Q(x) = q(x)/x^2\) having at worst a double pole.
One should also consider \(x \rightarrow 1/w\) to see if there are singularities at \(x\infty\).
Looking for the asymptotic behaviour is not generally considered a part of the Frobenius method, but can be very helpful for physical applications and is used extensively in quantum mechanics. For example, if we consider the following differential equation
which arises from the Schrödinger equation for a quantum harmonic oscillator, then we find that the solutions have the form
where \(H(x)\) is a polynomial. I.e., factoring out the correct asymptotic behaviour renders the solution exact. Of course, there is no problem
Details
For large \(x\), we can neglect \(a\) to obtain
Looking for solutions that vanish for large \(x\), we see that \(y \approx e^{-x^2/2}\) is appropriate:
Thus, we might consider series solutions of the form
We will find that, for appropriate values of \(a\) (associated with the quantized energy eigenstates), the series terminates yielding the Hermite polynomials \(H(x)\).
Of course, there is nothing wrong with simply looking for a series solution for \(y(x)\) directly – it will be related to this by expanding the gaussian, but will have infinitely many terms.
2. Form of the Series
The standard approach is to write the solution as
The factor \(x^{s}\) has a similar flavour describing “asymptotic” behaviour that might not be of a pure power-law form. Additional factors deduced above might be included here.
In any case, the first task is to solve the indicial equation for \(s\) (called \(\nu\) in [Hassani, 2013]) by requiring that the first non-zero term is \(a_0\). If \(x=0\) is not singular as described above, then Fuch’s theorem ensures that there will be a solution of this form. In general, we expect a second order ODE to generate a quadratic indicial equation, and the two values of \(s \in \{s_1, s_2\}\) will generate the two independent solutions.
This can fail if the two solutions differ by an integer \(s_1 - s_2 \in \mathbb{Z}\) including zero (\(s_1 = s_2\)). In this case, the recurrence might fail to give an independent solution, but one can then look for a second solution \(y_2(x)\) of the form
Theorem 15.2.6 of [Hassani, 2013] states the precise conditions for this solution, which can also be found using the method of variation of parameters discussed above.