TExcelTAD
Home › Differential Equations › Singular Points and the Frobenius Method

Singular Points and the Frobenius Method

At a singular point the coefficients of y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0 blow up, and solutions need not be power series: they can behave like x1/2x^{1/2}, x−1x^{-1} or ln⁡x\ln x. 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

x0=0x_0 = 0 is a regular singular point if x p(x)x\,p(x) and x2q(x)x^2q(x) are analytic at 0. In other words the equation can be written

x2y′′+x P(x) y′+Q(x) y=0x^2y'' + x\,P(x)\,y' + Q(x)\,y = 0

with PP, QQ analytic. The simplest case, PP and QQ constant, is the Cauchy-Euler equation x2y′′+bxy′+cy=0x^2y'' + bxy' + cy = 0, solved by y=xry = x^r with r(r−1)+br+c=0r(r - 1) + br + c = 0.

The Frobenius series

Try

y=xr∑k=0∞akxk,a0≠0.y = x^r\sum_{k=0}^\infty a_kx^k, \qquad a_0 \ne 0.

The lowest power of xx gives the indicial equation

r(r−1)+P(0) r+Q(0)=0,r(r - 1) + P(0)\,r + Q(0) = 0,

whose roots r1≥r2r_1 \ge r_2 (when real) are the possible leading exponents. Then:

  • If r1−r2r_1 - r_2 is not an integer, both roots give a Frobenius solution.
  • If r1=r2r_1 = r_2 or r1−r2r_1 - r_2 is a positive integer, r1r_1 always gives one; the second solution may contain y1ln⁡xy_1\ln x.

Example

2x2y′′+3xy′−(1+x)y=02x^2y'' + 3xy' - (1 + x)y = 0, i.e. x2y′′+32xy′−1+x2y=0x^2y'' + \frac{3}{2}xy' - \frac{1 + x}{2}y = 0, so P(0)=32P(0) = \frac{3}{2}, Q(0)=−12Q(0) = -\frac{1}{2}. Indicial equation: r2+12r−12=0r^2 + \frac{1}{2}r - \frac{1}{2} = 0, r=12r = \frac{1}{2} or r=−1r = -1. The difference 32\frac{3}{2} is not an integer, so there are two Frobenius solutions.

Substituting y=∑akxk+ry = \sum a_kx^{k+r} into 2x2y′′+3xy′−y=xy2x^2y'' + 3xy' - y = xy gives, for k≥1k \ge 1,

(2(k+r)(k+r−1)+3(k+r)−1)ak=ak−1.\big(2(k + r)(k + r - 1) + 3(k + r) - 1\big)a_k = a_{k-1}.
python · try it yourself
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 r=12r = \frac{1}{2} series at a point and compare with an ODE solver started from the series values at a small xx (we cannot start at x=0x = 0, where the equation is singular):

python · try it yourself
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

python · try it yourself
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 appears
Eq(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 xln⁡xx\ln x.

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 (r=0r = 0 in polar coordinates), the axis of a cylinder, the poles of a sphere.

Exercises

Exercise 1: Classify the point

Is x=0x = 0 an ordinary, regular singular or irregular singular point of x2y′′+xy′+(x2−4)y=0x^2y'' + xy' + (x^2 - 4)y = 0? Of x3y′′+y=0x^3y'' + y = 0?

Answer

Regular singular; irregular singular.

Solution

First: xp=1xp = 1, x2q=x2−4x^2q = x^2 - 4, both analytic. Second: q=x−3q = x^{-3}, so x2q=x−1x^2q = x^{-1} is not analytic at 0.

Exercise 2: Indicial roots

Find the indicial roots of x2y′′+xy′+(x2−4)y=0x^2y'' + xy' + (x^2 - 4)y = 0 (Bessel's equation of order 2).

Answer

r=±2r = \pm 2.

Solution

P(0)=1P(0) = 1, Q(0)=−4Q(0) = -4: r(r−1)+r−4=r2−4=0r(r - 1) + r - 4 = r^2 - 4 = 0. The roots differ by an integer, so only r=2r = 2 is guaranteed a Frobenius solution (the other involves a logarithm).

Exercise 3: Cauchy-Euler (code)

Solve x2y′′−2xy′+2y=0x^2y'' - 2xy' + 2y = 0 for x>0x > 0.

Answer

y=c1x+c2x2y = c_1x + c_2x^2.

Solution

r(r−1)−2r+2=r2−3r+2=(r−1)(r−2)r(r - 1) - 2r + 2 = r^2 - 3r + 2 = (r - 1)(r - 2).

python · try it yourself
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…

  1. ∑akxk\sum a_kx^k
  2. xr∑akxkx^r\sum a_kx^k
  3. erxe^{rx}
  4. ln⁡x\ln x

For x2y′′+xP(x)y′+Q(x)y=0x^2y'' + xP(x)y' + Q(x)y = 0, the indicial equation is…

  1. r2+1=0r^2 + 1 = 0
  2. r(r−1)+P(0)r+Q(0)=0r(r-1) + P(0)r + Q(0) = 0
  3. P(0)=Q(0)P(0) = Q(0)
  4. r=P(0)r = P(0)

When the indicial roots differ by an integer, the second solution…

  1. is always a Frobenius series
  2. may contain a ln⁡x\ln x term
  3. does not exist
  4. is exe^x