Singular Points and the Frobenius Method
At a singular point the coefficients of blow up, and solutions need not be power series: they can behave like , or . If the singularity is mild, a modified series still works. This is the Frobenius method, and it produces Bessel functions, the subject of the next lesson.
Regular singular points
is a regular singular point if and are analytic at 0. In other words the equation can be written
with , analytic. The simplest case, and constant, is the Cauchy-Euler equation , solved by with .
The Frobenius series
Try
The lowest power of gives the indicial equation
whose roots (when real) are the possible leading exponents. Then:
- If is not an integer, both roots give a Frobenius solution.
- If or is a positive integer, always gives one; the second solution may contain .
Example
, i.e. , so , . Indicial equation: , or . The difference is not an integer, so there are two Frobenius solutions.
Substituting into gives, for ,
from fractions import Fraction as Fr
def frobenius(r, n):
a = [Fr(1)]
for k in range(1, n):
m = k + r
a.append(a[-1] / (2 * m * (m - 1) + 3 * m - 1))
return a
for r in (Fr(1, 2), Fr(-1)):
print(f"r = {r}:", [str(c) for c in frobenius(r, 5)])r = 1/2: ['1', '1/5', '1/70', '1/1890', '1/83160']
r = -1: ['1', '-1', '-1/2', '-1/18', '-1/360']
Numerical check
Evaluate the series at a point and compare with an ODE solver started from the series values at a small (we cannot start at , where the equation is singular):
import numpy as np
from fractions import Fraction as Fr
from scipy.integrate import solve_ivp
a = [Fr(1)]
for k in range(1, 30):
m = k + Fr(1, 2)
a.append(a[-1] / (2 * m * (m - 1) + 3 * m - 1))
y = lambda x: np.sqrt(x) * sum(float(c) * x**k for k, c in enumerate(a))
dy = lambda x: sum(float(c) * (k + 0.5) * x**(k - 0.5) for k, c in enumerate(a))
x0 = 0.1
sol = solve_ivp(lambda x, Y: [Y[1], ((1 + x) * Y[0] - 3 * x * Y[1]) / (2 * x**2)], (x0, 2), [y(x0), dy(x0)],
rtol=1e-11, atol=1e-13)
print(f"series y(2) = {y(2.0):.9f}, solver y(2) = {sol.y[0][-1]:.9f}")series y(2) = 2.066977936, solver y(2) = 2.066977936
The Cauchy-Euler equation by SymPy
import sympy as sp
x = sp.symbols("x", positive=True)
y = sp.Function("y")
print(sp.dsolve(x**2 * y(x).diff(x, 2) + x * y(x).diff(x) - 4 * y(x))) # r = 2, -2
print(sp.dsolve(x**2 * y(x).diff(x, 2) - x * y(x).diff(x) + y(x))) # r = 1 double: log appearsEq(y(x), C1/x**2 + C2*x**2)
Eq(y(x), x*(C1 + C2*log(x)))
The second equation has a double indicial root, and its second solution is .
In software
- Solvers cannot start at a singular point. Scientific codes start a small distance away, using the Frobenius series for the initial values, exactly as in the check above. Bessel and Legendre function libraries do the same internally.
- Singular points mark physically special places: the centre of a drum ( in polar coordinates), the axis of a cylinder, the poles of a sphere.
Exercises
Exercise 1: Classify the point
Is an ordinary, regular singular or irregular singular point of ? Of ?
Answer
Regular singular; irregular singular.
Solution
First: , , both analytic. Second: , so is not analytic at 0.
Exercise 2: Indicial roots
Find the indicial roots of (Bessel's equation of order 2).
Answer
.
Solution
, : . The roots differ by an integer, so only is guaranteed a Frobenius solution (the other involves a logarithm).
Exercise 3: Cauchy-Euler (code)
Solve for .
Answer
.
Solution
.
import sympy as sp
x = sp.symbols("x", positive=True); y = sp.Function("y")
print(sp.dsolve(x**2 * y(x).diff(x, 2) - 2 * x * y(x).diff(x) + 2 * y(x)))Eq(y(x), x*(C1 + C2*x))
Test yourself
The Frobenius method looks for solutions of the form…
For , the indicial equation is…
When the indicial roots differ by an integer, the second solution…
- is always a Frobenius series
- may contain a term
- does not exist
- is