Foundations to Frontier
Tests
A. Mathematical Foundations › A8 Numerical Methods and Scientific Computing

PDE Solvers: Finite Differences, Finite Elements, Finite Volumes, Spectral Methods

Heat flow in a radiator, airflow over a wing, stress in a bracket and radiation transport are partial differential equations. This topic surveys the four families of discretization (finite differences, finite elements, finite volumes and spectral methods), with the ideas that matter in practice: consistency plus stability gives convergence (Lax), von Neumann stability analysis and the CFL condition, explicit vs implicit time stepping, conservation, and spectral accuracy for smooth periodic problems. You will solve the heat and Poisson equations, verify second-order convergence with a manufactured solution, and compute the temperature field of a spacecraft radiator plate whose discrete heat balance is exact.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Chopping space into little boxes

Heat spreading through a metal plate depends on time and on position in every direction at once. That’s a partial differential equation. The computer’s trick is to chop the plate into a grid of small cells. Each cell exchanges heat only with its neighbours, so one huge continuous problem becomes many simple local rules. Make the cells smaller and you get closer to reality, at the price of more computation.

Heat flow on a rod: explicit vs Crank–Nicolson
exactFTCS (explicit)Crank–Nicolsoninitial
80 steps of Δt = 2.50e-4 · max error: FTCS 2.62e-2 · Crank–Nicolson 2.76e-2
Explicit FTCS updates each point from its neighbours and is only stable when r = αΔt/Δx² ≤ ½, so halving the grid spacing forces four times as many time steps. Crank–Nicolson averages explicit and implicit Laplacians and solves a tridiagonal system each step; it is unconditionally stable and second order in time, though with large r the sharp bump can ring briefly before diffusing.
Why engineers care

Thermal analysis of spacecraft, CFD for entry vehicles and drones, structural FEA of launch loads and antenna design are all PDE solves. They’re the most compute-hungry simulations in engineering. Choosing a stable, conservative discretization is what separates a trustworthy result from a pretty but wrong picture.

📝 Quick check (Level 0)
0/3 answered
  1. 1. PDE solvers break space into…
  2. 2. Smaller cells usually give…
  3. 3. Heat at one cell is updated using…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Model equations

  • Heat (parabolic): ut=αuxxu_t = \alpha u_{xx}.
  • Advection or waves (hyperbolic): ut+cux=0u_t + cu_x = 0.
  • Poisson (elliptic): −∇2u=f-\nabla^2u = f.

Finite differences

Replace derivatives by difference quotients on a grid: uxx≈(ui+1−2ui+ui−1)/h2u_{xx}\approx(u_{i+1} - 2u_i + u_{i-1})/h^2 (error O(h2)O(h^2)). In 2-D this is the 5-point Laplacian.

FTCS for the heat equation

uin+1=uin+r(ui+1n−2uin+ui−1n),r=αΔtΔx2u_i^{n+1} = u_i^n + r(u_{i+1}^n - 2u_i^n + u_{i-1}^n),\quad r = \frac{\alpha\Delta t}{\Delta x^2}

It’s stable only for r≤12r\le\frac12. Halving Δx\Delta x forces 4× smaller Δt\Delta t.

📝 Quick check (Level 1)
0/3 answered
  1. 1. The heat equation is…
  2. 2. FTCS is stable when r ≤ …
  3. 3. The 3-point second difference has error O(…)

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Four families

Method Idea Strengths
Finite differences derivatives → differences on a structured grid simple, fast; rectangular domains
Finite elements weak form; piecewise polynomial basis on an unstructured mesh complex geometry, structures, error theory
Finite volumes integrate conservation laws over cells; fluxes across faces exact discrete conservation; CFD and shocks
Spectral global Fourier or Chebyshev basis exponential accuracy for smooth problems

Stability and the CFL condition

Von Neumann analysis substitutes ujn=gneikjΔxu_j^n = g^ne^{ikj\Delta x}. For FTCS, g=1−4rsin⁡2(kΔx/2)g = 1 - 4r\sin^2(k\Delta x/2), and ∣g∣≤1\lvert g\rvert\le1 for all kk iff r≤12r\le\frac12. For advection, explicit schemes need CFL ∣c∣Δt/Δx≤1\lvert c\rvert\Delta t/\Delta x\le1: information can’t cross more than one cell per step (Courant, Friedrichs and Lewy, 1928).

Implicit time stepping

Crank–Nicolson, (I−Δt2L)un+1=(I+Δt2L)un(I - \frac{\Delta t}2L)u^{n+1} = (I + \frac{\Delta t}2L)u^n, is second order in time and unconditionally stable. It costs a (sparse) linear solve per step (a8-11).

Lax equivalence

For a consistent linear scheme, stability ⇔ convergence (Lax and Richtmyer, 1956).

🐍 Exercise 1: heat, Poisson and spectral derivatives
Implement FTCS and Crank–Nicolson for the heat equation and show the r = ½ stability limit. Solve 1-D Poisson by finite differences and measure second-order convergence. Show the spectral accuracy of FFT differentiation.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Finite volumes are preferred in CFD because they…
  2. 2. The CFL condition limits…
  3. 3. Lax equivalence: for consistent linear schemes, convergence ⇔

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Von Neumann analysis of FTCS

Insert ujn=gneiθju_j^n = g^ne^{i\theta j}: g=1+r(eiθ−2+e−iθ)=1−4rsin⁡2(θ/2)g = 1 + r(e^{i\theta} - 2 + e^{-i\theta}) = 1 - 4r\sin^2(\theta/2). The worst case θ=π\theta = \pi gives g=1−4rg = 1 - 4r, so ∣g∣≤1  ⟺  r≤12\lvert g\rvert\le1\iff r\le\frac12. ∎

Crank–Nicolson is unconditionally stable

g=1−2rsin⁡2(θ/2)1+2rsin⁡2(θ/2)g = \frac{1 - 2r\sin^2(\theta/2)}{1 + 2r\sin^2(\theta/2)}, so ∣g∣≤1\lvert g\rvert\le1 for every r≥0r\ge0. ∎ As r→∞r\to\infty, g→−1g\to-1 for high frequencies, which explains the ringing on sharp data.

Finite elements in one line

The weak form of −u′′=f-u'' = f is: find uu with ∫u′v′=∫fv\int u'v' = \int fv for all test functions vv. With hat functions on a uniform mesh, the stiffness matrix is 1htridiag⁡(−1,2,−1)\frac1h\operatorname{tridiag}(-1, 2, -1), the same as finite differences. Galerkin orthogonality gives ∥u−uh∥H1≤Cmin⁡vh∥u−vh∥H1\lVert u - u_h\rVert_{H^1}\le C\min_{v_h}\lVert u - v_h\rVert_{H^1} (Céa’s lemma).

Exercise 3.1: FTCS amplification for r = 0.6 at θ = π

g=1−2.4=−1.4g = 1 - 2.4 = -1.4. The zig-zag mode grows by 1.4× per step with alternating sign. After 400 steps a perturbation of 10−1010^{-10} reaches about 104810^{48}.

📝 Quick check (Level 3)
0/3 answered
  1. 1. FTCS amplification factor g(θ) =
  2. 2. For very large r, Crank–Nicolson's high-frequency g tends to…
  3. 3. Céa's lemma says FEM error is…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Steady temperature of a radiator plate

A square radiator panel, held at sink temperature on its edges, carries an electronics box that dissipates heat over a small patch. The steady temperature rise solves −k∇2T=q-k\nabla^2T = q. The 5-point finite-difference solution, checked against a manufactured solution sin⁡πxsin⁡πy\sin\pi x\sin\pi y, converges at O(h2)O(h^2). The discrete scheme is also conservative: the heat flowing out through the edges equals the heat generated, to rounding. That’s a key sanity check in thermal analysis and the defining property of finite volumes.

🐍 Exercise 2 (research): radiator plate thermal model
Build the 2-D 5-point Laplacian with Kronecker products. Verify O(h²) convergence with a manufactured solution. Then solve for the temperature field of a plate with a localized heat source, check that heat generated equals edge outflow, and locate the hot spot.

PDE solvers in AI, robotics and aerospace

  • Spacecraft thermal design: lumped and finite-difference or finite-element thermal models (Thermal Desktop/SINDA, ESATAN).
  • CFD: finite-volume RANS and LES for vehicles (NASA FUN3D, OVERFLOW). Entry aerothermodynamics with shock-capturing schemes.
  • Structures: FEA (NASTRAN was born at NASA in the 1960s) for launch loads and vibration.
  • Machine learning: physics-informed neural networks (Raissi, Perdikaris and Karniadakis, 2019) and neural operators (FNO; Li et al., 2021) as surrogate PDE solvers. Classical solvers provide their training data and baselines.

References

  1. R. LeVeque (2007). Finite Difference Methods for Ordinary and Partial Differential Equations. SIAM.
  2. R. LeVeque (2002). Finite Volume Methods for Hyperbolic Problems. Cambridge.
  3. C. Johnson (1987). Numerical Solution of PDEs by the Finite Element Method. Cambridge (Dover reprint).
  4. L. N. Trefethen (2000). Spectral Methods in MATLAB. SIAM.
  5. R. Courant, K. Friedrichs, H. Lewy (1928). “Über die partiellen Differenzengleichungen der mathematischen Physik.” Mathematische Annalen, 100.
  6. P. Lax, R. Richtmyer (1956). “Survey of the stability of linear finite difference equations.” Comm. Pure Appl. Math., 9.
  7. J. Crank, P. Nicolson (1947). “A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type.” Proc. Cambridge Phil. Soc., 43.
  8. M. Raissi, P. Perdikaris, G. Karniadakis (2019). “Physics-informed neural networks.” J. Computational Physics, 378.
  9. Z. Li et al. (2021). “Fourier neural operator for parametric partial differential equations.” ICLR.
  10. D. Gilmore (ed.) (2002). Spacecraft Thermal Control Handbook, Vol. 1. Aerospace Press.