Advanced Physics‹›⌂ 0:00 studied

Module 22 · 9 min read · Free chapter

Ordinary differential equations and special functions: first and second order linear ODEs, Frobenius series, Legendre, Bessel, Hermite and Laguerre functions, Beta and Gamma functions, Green's function

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: laws written as rates

Most laws of physics say how fast something changes. Newton's second law mx¨=Fm\ddot{x} = F links acceleration to force; Kirchhoff's law links the rate of change of current to voltage. Such laws are differential equations, and solving them predicts what happens next.

Simple cases give sines and exponentials. But when a problem has spherical or cylindrical shape, or a quantum particle sits in a well, the equations have variable coefficients. Their solutions are the special functions named after Legendre, Bessel, Hermite and Laguerre, which appear in nearly every Mains derivation.

First and second order linear ODEs

First order linear: dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)y = Q(x). Multiply by the integrating factor e∫P dxe^{\int P\,dx}:

y e∫P dx=∫Q e∫P dx dx+Cy\,e^{\int P\,dx} = \int Q\,e^{\int P\,dx}\,dx + C

Example: an RC circuit charging, RCdqdt+q=CVRC\dfrac{dq}{dt} + q = CV, gives q=CV(1−e−t/RC)q = CV\left(1 - e^{-t/RC}\right).

Second order, constant coefficients: ay′′+by′+cy=f(x)ay'' + by' + cy = f(x).

  1. Complementary function from am2+bm+c=0am^2 + bm + c = 0:
    • real distinct roots: y=Aem1x+Bem2xy = Ae^{m_1x} + Be^{m_2x};
    • equal roots: y=(A+Bx)emxy = (A + Bx)e^{mx};
    • complex roots α±iβ\alpha \pm i\beta: y=eαx(Acos⁡βx+Bsin⁡βx)y = e^{\alpha x}(A\cos\beta x + B\sin\beta x).
  2. Particular integral for the forcing f(x)f(x) (by trial or the D-operator method).

Damped oscillator. x¨+2γx˙+ω02x=0\ddot{x} + 2\gamma\dot{x} + \omega_0^2x = 0 has roots m=−γ±γ2−ω02m = -\gamma \pm \sqrt{\gamma^2 - \omega_0^2}:

  • γ<ω0\gamma < \omega_0, underdamped: x=Ae−γtcos⁡(ω′t+ϕ)x = Ae^{-\gamma t}\cos(\omega' t + \phi) with ω′=ω02−γ2\omega' = \sqrt{\omega_0^2 - \gamma^2};
  • γ=ω0\gamma = \omega_0, critically damped: x=(A+Bt)e−γtx = (A + Bt)e^{-\gamma t}, the fastest return without overshoot (used in galvanometers and car shock absorbers);
  • γ>ω0\gamma > \omega_0, overdamped: two decaying exponentials.

With forcing F0cos⁡ωtF_0\cos\omega t the steady state has amplitude F0m(ω02−ω2)2+4γ2ω2\dfrac{F_0}{m\sqrt{(\omega_0^2 - \omega^2)^2 + 4\gamma^2\omega^2}}, peaking near resonance.

Wronskian. Two solutions y1y_1, y2y_2 are independent if W=y1y2′−y2y1′≠0W = y_1y_2' - y_2y_1' \neq 0. For y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0, Abel's formula gives W=Ce−∫p dxW = Ce^{-\int p\,dx}.

Series solutions and Legendre polynomials

For y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0, a point x0x_0 is ordinary if p and q are analytic there; a power series ∑anxn\sum a_nx^n works. It is a regular singular point if (x−x0)p(x - x_0)p and (x−x0)2q(x - x_0)^2q are analytic; then the Frobenius series y=∑anxn+sy = \sum a_n x^{n+s} is used, and the lowest power gives the indicial equation for s.

Legendre's equation arises from Laplace's equation in spherical coordinates with axial symmetry (x=cos⁡θx = \cos\theta):

(1−x2)y′′−2xy′+l(l+1)y=0(1 - x^2)y'' - 2xy' + l(l+1)y = 0

Substituting y=∑anxny = \sum a_nx^n gives the recurrence

an+2=n(n+1)−l(l+1)(n+2)(n+1) ana_{n+2} = \frac{n(n+1) - l(l+1)}{(n+2)(n+1)}\,a_n

For general l the series diverges at x = ±1 (θ = 0, π). It terminates only when l is a non-negative integer, giving the Legendre polynomials:

P0=1,P1=x,P2=12(3x2−1),P3=12(5x3−3x)P_0 = 1, \quad P_1 = x, \quad P_2 = \frac{1}{2}(3x^2 - 1), \quad P_3 = \frac{1}{2}(5x^3 - 3x)

This is why angular momentum is quantised: finiteness forces integer l (orbital angular momentum).

Properties:

  • Rodrigues' formula: Pl(x)=12l l!dldxl(x2−1)lP_l(x) = \dfrac{1}{2^l\,l!}\dfrac{d^l}{dx^l}(x^2 - 1)^l.
  • Generating function: 11−2xt+t2=∑l=0∞Pl(x) tl\dfrac{1}{\sqrt{1 - 2xt + t^2}} = \sum_{l=0}^{\infty}P_l(x)\,t^l.
  • Orthogonality: ∫−11Pl(x)Pl′(x) dx=22l+1δll′\int_{-1}^{1}P_l(x)P_{l'}(x)\,dx = \dfrac{2}{2l+1}\delta_{ll'}.
  • Recurrence: (l+1)Pl+1=(2l+1)xPl−lPl−1(l+1)P_{l+1} = (2l+1)xP_l - lP_{l-1}.
  • Pl(1)=1P_l(1) = 1 and Pl(−x)=(−1)lPl(x)P_l(-x) = (-1)^lP_l(x).

Multipole expansion. The distance between r⃗\vec{r} and r⃗′\vec{r}' satisfies 1∣r⃗−r⃗′∣=1r∑l(r′r)lPl(cos⁡γ)\dfrac{1}{\lvert\vec{r} - \vec{r}'\rvert} = \dfrac{1}{r}\sum_l\left(\dfrac{r'}{r}\right)^lP_l(\cos\gamma) for r > r′, straight from the generating function. So a potential far from any charge distribution is a sum of monopole, dipole and quadrupole terms. The Earth's gravity field is described the same way, with the J2J_2 term from its flattening.

Bessel, Hermite and Laguerre functions

Bessel's equation comes from separating the wave or Laplace equation in cylindrical coordinates:

x2y′′+xy′+(x2−n2)y=0x^2y'' + xy' + (x^2 - n^2)y = 0

x = 0 is a regular singular point; Frobenius gives s = ±n and

Jn(x)=∑k=0∞(−1)kk! Γ(n+k+1)(x2)2k+nJ_n(x) = \sum_{k=0}^{\infty}\frac{(-1)^k}{k!\,\Gamma(n + k + 1)}\left(\frac{x}{2}\right)^{2k+n}

The second solution Yn(x)Y_n(x) (Neumann function) diverges at x = 0, so it is dropped when the axis is inside the region.

  • Generating function: ex2(t−1t)=∑n=−∞∞Jn(x) tne^{\frac{x}{2}\left(t - \frac{1}{t}\right)} = \sum_{n=-\infty}^{\infty}J_n(x)\,t^n.
  • Recurrences: Jn−1+Jn+1=2nxJnJ_{n-1} + J_{n+1} = \dfrac{2n}{x}J_n and Jn−1−Jn+1=2Jn′J_{n-1} - J_{n+1} = 2J_n'.
  • J0(0)=1J_0(0) = 1; JnJ_n oscillates like a decaying cosine, Jn(x)≈2πxcos⁡(x−nπ2−π4)J_n(x) \approx \sqrt{\frac{2}{\pi x}}\cos\left(x - \dfrac{n\pi}{2} - \dfrac{\pi}{4}\right) for large x.
  • Zeros of J0J_0: 2.405, 5.520, 8.654.

Drum modes. A circular membrane of radius a clamped at the rim has modes Jn(kr)cos⁡nφJ_n(kr)\cos n\varphi with Jn(ka)=0J_n(ka) = 0. The frequencies are set by the Bessel zeros, so overtones are not whole-number multiples, which is why a drum sounds less musical than a string. Bessel functions also describe the Airy disc in diffraction from a circular aperture, waveguides and the radial modes of optical fibres.

Hermite's equation: y′′−2xy′+2ny=0y'' - 2xy' + 2ny = 0. Finite behaviour of the oscillator wavefunction requires integer n, giving

H0=1,H1=2x,H2=4x2−2,H3=8x3−12xH_0 = 1, \quad H_1 = 2x, \quad H_2 = 4x^2 - 2, \quad H_3 = 8x^3 - 12x

with generating function e2xt−t2=∑Hn(x)tnn!e^{2xt - t^2} = \sum H_n(x)\dfrac{t^n}{n!} and orthogonality ∫−∞∞e−x2HmHn dx=2nn!π δmn\int_{-\infty}^{\infty}e^{-x^2}H_mH_n\,dx = 2^nn!\sqrt{\pi}\,\delta_{mn}. The harmonic oscillator eigenfunctions are ψn∝Hn(ξ)e−ξ2/2\psi_n \propto H_n(\xi)e^{-\xi^2/2} with En=(n+12)ℏωE_n = \left(n + \dfrac{1}{2}\right)\hbar\omega (harmonic oscillator).

Laguerre polynomials solve xy′′+(1−x)y′+ny=0xy'' + (1 - x)y' + ny = 0: L0=1L_0 = 1, L1=1−xL_1 = 1 - x, L2=12(x2−4x+2)L_2 = \dfrac{1}{2}(x^2 - 4x + 2). The associated Laguerre polynomials Ln−l−12l+1(2rna0)L_{n-l-1}^{2l+1}\left(\dfrac{2r}{na_0}\right) give the radial part of the hydrogen wavefunctions (hydrogen atom).

Function Equation arises in Weight, interval
Legendre PlP_l Laplace equation, spherical, axial symmetry 1, [−1, 1]
Bessel JnJ_n cylindrical wave and Laplace problems x, [0, a]
Hermite HnH_n quantum harmonic oscillator e−x2e^{-x^2}, (−∞, ∞)
Laguerre LnL_n hydrogen radial equation e−xe^{-x}, [0, ∞)

All four are solutions of Sturm-Liouville problems, which is why they are orthogonal and complete, so any well-behaved function can be expanded in them.

Gamma and Beta functions; Green's function

Gamma function:

Γ(n)=∫0∞xn−1e−x dx,n>0\Gamma(n) = \int_0^\infty x^{n-1}e^{-x}\,dx, \qquad n > 0

Integrating by parts gives Γ(n+1)=n Γ(n)\Gamma(n+1) = n\,\Gamma(n), so Γ(n+1)=n!\Gamma(n+1) = n! for integers. A key value is

Γ(12)=π\Gamma\left(\tfrac{1}{2}\right) = \sqrt{\pi}

from the Gaussian integral ∫−∞∞e−x2dx=π\int_{-\infty}^{\infty}e^{-x^2}dx = \sqrt{\pi}. Then Γ(32)=π2\Gamma\left(\dfrac{3}{2}\right) = \dfrac{\sqrt{\pi}}{2} and Γ(52)=3π4\Gamma\left(\dfrac{5}{2}\right) = \dfrac{3\sqrt{\pi}}{4}.

Beta function:

B(m,n)=∫01xm−1(1−x)n−1 dx=Γ(m) Γ(n)Γ(m+n)B(m, n) = \int_0^1 x^{m-1}(1 - x)^{n-1}\,dx = \frac{\Gamma(m)\,\Gamma(n)}{\Gamma(m + n)}

with the trigonometric form B(m,n)=2∫0π/2sin⁡2m−1θcos⁡2n−1θ dθB(m, n) = 2\int_0^{\pi/2}\sin^{2m-1}\theta\cos^{2n-1}\theta\,d\theta.

Worked example. ∫0π/2sin⁡4θcos⁡2θ dθ=12B(52,32)=12⋅Γ(52)Γ(32)Γ(4)=12⋅3π4⋅π26=π32\int_0^{\pi/2}\sin^4\theta\cos^2\theta\,d\theta = \dfrac{1}{2}B\left(\dfrac{5}{2}, \dfrac{3}{2}\right) = \dfrac{1}{2}\cdot\dfrac{\Gamma\left(\frac{5}{2}\right)\Gamma\left(\frac{3}{2}\right)}{\Gamma(4)} = \dfrac{1}{2}\cdot\dfrac{\frac{3\sqrt{\pi}}{4}\cdot\frac{\sqrt{\pi}}{2}}{6} = \dfrac{\pi}{32}.

In physics. Gamma functions give the Maxwell-Boltzmann averages (velocity distribution), the volume of an n-dimensional sphere used in density-of-states counting, and Stirling's formula n!≈2πn(ne)nn! \approx \sqrt{2\pi n}\left(\dfrac{n}{e}\right)^n used in statistical mechanics.

Green's function. To solve Ly=f(x)Ly = f(x) for a linear operator L with boundary conditions, first solve

L G(x,x′)=δ(x−x′)L\,G(x, x') = \delta(x - x')

the response to a unit impulse at x′. By superposition, y(x)=∫G(x,x′)f(x′) dx′y(x) = \int G(x, x')f(x')\,dx'.

Worked example. For d2ydx2=f(x)\dfrac{d^2y}{dx^2} = f(x) with y(0) = y(1) = 0, G is linear on each side of x′, continuous at x′, with a unit jump in slope:

G(x,x′)={x(x′−1),x<x′x′(x−1),x>x′G(x, x') = \begin{cases}x(x' - 1), & x < x'\\ x'(x - 1), & x > x'\end{cases}

The electrostatic potential V=14πε0∫ρ(r⃗′)∣r⃗−r⃗′∣dV′V = \dfrac{1}{4\pi\varepsilon_0}\int\dfrac{\rho(\vec{r}')}{\lvert\vec{r} - \vec{r}'\rvert}dV' is exactly this idea, since −14π∣r⃗−r⃗′∣-\dfrac{1}{4\pi\lvert\vec{r} - \vec{r}'\rvert} is the Green's function of ∇2\nabla^2.

Mains lens: how UPSC asks this

Special functions turn up inside quantum mechanics (Hermite, Laguerre, spherical harmonics), electrostatics (Legendre expansions) and waves (Bessel). Geo-Scientist B1 and NET Part A ask them directly.

Expect:

  • Solve a damped or forced oscillator equation and discuss the regimes (10 marks).
  • Show that Legendre's series terminates only for integer l; find P2P_2 or P3P_3.
  • Prove orthogonality of Legendre polynomials or a recurrence from the generating function.
  • Evaluate integrals using Beta and Gamma functions.
  • Show J−n(x)=(−1)nJn(x)J_{-n}(x) = (-1)^nJ_n(x) or a Bessel recurrence.

Model answer plan: "Using the generating function, prove (l+1)Pl+1=(2l+1)xPl−lPl−1(l+1)P_{l+1} = (2l+1)xP_l - lP_{l-1} and find P2(x)P_2(x)." (15 marks).

  1. Write g(x,t)=(1−2xt+t2)−1/2=∑Pltlg(x, t) = (1 - 2xt + t^2)^{-1/2} = \sum P_lt^l.
  2. Differentiate with respect to t: (1−2xt+t2)∂g∂t=(x−t)g(1 - 2xt + t^2)\dfrac{\partial g}{\partial t} = (x - t)g.
  3. Substitute the series and compare coefficients of tlt^l to get the recurrence.
  4. With P0=1P_0 = 1, P1=xP_1 = x, l = 1 gives P2=12(3x2−1)P_2 = \dfrac{1}{2}(3x^2 - 1).
  5. Mention use in the multipole expansion of potential.

Quick revision

  • Constant coefficients: CF from am2+bm+c=0am^2 + bm + c = 0 + PI; damping regimes under, critical, over.
  • Frobenius ∑anxn+s\sum a_nx^{n+s}; indicial equation; termination gives polynomials.
  • Legendre: P2=12(3x2−1)P_2 = \dfrac{1}{2}(3x^2 - 1); norm 22l+1\dfrac{2}{2l+1}; generating (1−2xt+t2)−1/2(1 - 2xt + t^2)^{-1/2}.
  • Bessel JnJ_n: cylindrical problems; zeros of J0J_0 2.405, 5.520; drum overtones not harmonic.
  • Hermite HnH_n: oscillator, weight e−x2e^{-x^2}; Laguerre: hydrogen radial, weight e−xe^{-x}.
  • Γ(n+1)=n!\Gamma(n+1) = n!, Γ(12)=π\Gamma\left(\dfrac{1}{2}\right) = \sqrt{\pi}; B(m,n)=Γ(m)Γ(n)Γ(m+n)B(m,n) = \dfrac{\Gamma(m)\Gamma(n)}{\Gamma(m+n)}.
  • Green's function: LG=δLG = \delta, y=∫Gf dx′y = \int Gf\,dx'.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Solve the equation of a damped harmonic oscillator ẍ + 2γẋ + ω0²x = 0 and discuss underdamped, critically damped and overdamped motion with one practical example of each.

    Show answer points
    • Auxiliary equation m² + 2γm + ω0² = 0, m = −γ ± √(γ² − ω0²)
    • Underdamped γ < ω0: x = A e^(−γt) cos(ω′t + φ), ω′ = √(ω0² − γ²), e.g. a plucked string
    • Critical γ = ω0: x = (A + Bt) e^(−γt), fastest return without overshoot, e.g. galvanometer, shock absorber
    • Overdamped γ > ω0: two decaying exponentials, slow return, e.g. door closer
    • Sketch of x(t) for the three cases
  2. Solve Legendre's equation by the power-series method. Show that the series terminates only for integer l and obtain P0 to P3.

    Show answer points
    • Substitute y = Σ aₙxⁿ into (1 − x²)y″ − 2xy′ + l(l+1)y = 0
    • Recurrence aₙ₊₂ = [n(n+1) − l(l+1)] aₙ / [(n+2)(n+1)]
    • Two series (even and odd); for general l both diverge at x = ±1
    • Termination when l is a non-negative integer; physical finiteness at θ = 0, π
    • P0 = 1, P1 = x, P2 = (3x² − 1)/2, P3 = (5x³ − 3x)/2 normalised by Pl(1) = 1
  3. Using the generating function of Legendre polynomials, prove the recurrence relation (l+1)Pₗ₊₁ = (2l+1)xPₗ − lPₗ₋₁. State the orthogonality relation.

    Show answer points
    • g(x, t) = (1 − 2xt + t²)^(−1/2) = Σ Pₗ tˡ
    • ∂g/∂t gives (1 − 2xt + t²) ∂g/∂t = (x − t) g
    • Substitute series and equate coefficients of tˡ
    • Result (l+1)Pₗ₊₁ = (2l+1)xPₗ − lPₗ₋₁
    • ∫ from −1 to 1 of PₗPₗ′ dx = 2δₗₗ′/(2l+1)
  4. Write Bessel's equation and its series solution Jₙ(x). Explain why the overtones of a circular drum are not harmonic.

    Show answer points
    • x²y″ + xy′ + (x² − n²)y = 0, regular singular point at 0
    • Jₙ(x) = Σ (−1)ᵏ (x/2)^(2k+n) / [k! Γ(n+k+1)]
    • Yₙ diverges at origin, rejected for a full membrane
    • Clamped rim: Jₙ(ka) = 0, frequencies proportional to Bessel zeros
    • Zeros of J0: 2.405, 5.520, 8.654, ratios not integers, so drum overtones are inharmonic
  5. Using Beta and Gamma functions evaluate the integral of sin⁴θ cos²θ from 0 to π/2.

    Show answer points
    • 2∫ sin^(2m−1)θ cos^(2n−1)θ dθ = B(m, n)
    • m = 5/2, n = 3/2; integral = B(5/2, 3/2)/2
    • Γ(5/2) = 3√π/4, Γ(3/2) = √π/2, Γ(4) = 6
    • Integral = (1/2)(3π/8)/6 = π/32

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Mathematical physics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-05 Mathematical Methods in Physics II: differential equations and special functions
  2. NPTEL Mathematical Methods in Physics (IIT)