From classical methods to SciML
Finite differences, finite elements and Runge–Kutta methods are among the great achievements of applied mathematics. So why learn anything else? This chapter is the bridge: what classical methods do best, where they struggle, and how scientific machine learning connects to — and builds on — them.
Classical methods are like a perfectly engineered road network: reliable, well understood, with guaranteed travel times — as long as you travel where roads exist. Scientific machine learning (SciML) is like adding aircraft: it can reach places without roads (very high dimensions, sparse data, unknown physics), but it is newer, needs more care, and for a short trip down a good road the car is still faster. A good scientist knows both, and increasingly combines them.
- what classical numerical methods guarantee, and where they genuinely struggle;
- how physics and data can be combined — see it in a simulation;
- a dictionary linking every classical idea to its SciML counterpart;
- hybrid remedies that use the strengths of both;
- an honest guide to choosing a method, and why learning SciML is worth it.
Suppose 10 grid points per direction are enough. A line needs $10$ points, a square $10 \times 10 = 100$, a cube $10^3 = 1000$. A problem with 10 variables needs $10^{10}$ — ten billion — and one with 20 variables needs $10^{20}$, more than any computer can store. That one multiplication, $n^d$, is the "curse of dimensionality", and it is the simplest reason why new methods are needed for some problems.
The big picture: AI, machine learning, deep learning and SciML
Before comparing methods, place them on one map. Artificial intelligence (AI) contains machine learning (ML); ML contains neural networks; neural networks contain deep learning; deep learning contains transformers and the large language models (LLMs) behind chatbots such as ChatGPT. Scientific computing — everything in Chapters 2–8 — is a separate field that overlaps ML. That overlap is scientific machine learning (SciML), and physics-informed neural networks (PINNs) and neural operators sit where it meets deep learning. Click the map to explore.
1. What classical methods do superbly
For a PDE (Partial Differential Equation) with known coefficients on a domain in one to three space dimensions, classical methods offer what no learning method yet offers in general:
- Proven convergence and error bounds. Consistency + stability ⇒ convergence (Lax equivalence, Chapter 8); for finite elements, Céa's lemma bounds the error by the best possible approximation in the chosen space.
- Predictable cost and accuracy. Halve the mesh size of a second-order method and the error drops by four — you can plan a computation and verify it.
- Decades of verified software. Sparse direct and multigrid solvers, adaptive time-steppers, and finite element and finite volume codes used in industry and national laboratories.
- Speed for a single solve. Careful comparisons show that, for standard forward problems in low dimensions, well-implemented classical solvers are usually much faster and more accurate than PINNs.
SciML does not replace classical numerical analysis. It is most valuable exactly where classical methods are expensive or awkward — and its best methods use classical ideas inside them. Everything you learned in Chapters 2–8 remains essential.
2. Where classical methods struggle

①High dimensions
A grid with $n$ points per direction has $n^d$ points. Fine in 3D; impossible in 10D or 100D (option pricing with many assets, many-particle quantum mechanics, uncertainty with many random inputs).
SciML ideasample points instead of grids; let a network represent the solution (Han, Jentzen & E, PNAS 115(34), 2018, 8505–8510).
②Inverse problems and sparse data
Finding unknown coefficients or sources from a few noisy measurements needs many forward solves, adjoint codes and regularisation. Data cannot easily be "added" to a finite-difference code.
SciML ideaput data and equation in one loss; unknown parameters become trainable (PINNs, Chapter 16).
③Many-query tasks
Design optimisation, uncertainty quantification, real-time control and history matching of reservoirs call the solver thousands of times. Each call starts from scratch; nothing is learned between calls.
SciML idealearn the solution operator once, then evaluate in milliseconds (neural operators, Chapter 18).
④Unknown or incomplete physics
Classical solvers need a complete model. Often part of it is unknown: turbulence closures, constitutive laws of new materials, reaction rates, multiphase flow in rock.
SciML idealearn the missing term from data while keeping the known physics (closure learning, equation discovery such as SINDy (Sparse Identification of Nonlinear Dynamics): Brunton, Proctor & Kutz, PNAS 113(15), 2016, 3932–3937).
⑤Complex geometry and meshing
Generating a good mesh for a complicated 3D domain can take more engineer time than the simulation itself; moving boundaries make it worse.
SciML ideamesh-free formulations: PINNs only need points inside the domain and on its boundary.
⑥Stability limits and stiffness
Explicit schemes need tiny steps ($\Delta t \propto \Delta x^2$ for heat, CFL (Courant–Friedrichs–Lewy) for waves); implicit schemes need large linear solves at every step (Chapters 6, 8).
SciML idealearn coarse-grid corrections or time-steppers that take larger steps (Kochkov et al., PNAS 118(21), 2021, e2101784118).
⑦Combining heterogeneous data
Satellite images, sensors, experiments and simulations at different resolutions are hard to merge into one discretised model.
SciML ideanetworks take any inputs; the loss can weight each data source (multi-fidelity learning).
⑧Every new case is a new computation
Change a parameter, boundary condition or geometry and the whole solve is repeated, even though the solutions are similar.
SciML ideaparametric surrogates and reduced-order models reuse what earlier solves taught (Benner, Gugercin & Willcox, SIAM Review 57(4), 2015, 483–531).
3. Data + physics: the central idea

Pure data fitting knows nothing between and beyond the data points. A pure physics solve cannot use measurements and needs every coefficient. SciML combines them in one objective: $$\min_\theta\ \underbrace{\sum_i \big(u_\theta(x_i) - d_i\big)^2}_{\text{fit the data}} \;+\; \lambda\,\underbrace{\sum_m \big|\mathcal N[u_\theta](x_m)\big|^2}_{\text{obey the equation}}.$$ The physics term acts as a regulariser — the same role that smoothness penalties play in classical inverse problems (Tikhonov regularisation). The simulation uses no neural network at all — just a degree-8 polynomial — to show that the idea is older and more general than PINNs.
4. When does a learned surrogate pay off?
Training a neural operator costs many classical solves (to make training data) plus training time. After that, each new query is almost free. Whether that is worth it depends on how many queries you need:
5. A dictionary: classical idea ↔ SciML idea
Almost every SciML concept has a classical ancestor. Seeing the connection makes both easier to understand.
| Classical numerical analysis | Scientific machine learning | Connection |
|---|---|---|
| grid / mesh nodes | collocation (training) points | where the equation is enforced (Ch. 8 ↔ Ch. 13) |
| basis functions (hat functions, polynomials, sines) | neurons $\sigma(\mathbf w\cdot\mathbf x + b)$ | a network is a linear combination of adaptive basis functions (Ch. 11) |
| residual of the discrete equations | PINN loss | the same residual, squared and averaged (Ch. 3, 13) |
| least squares / Galerkin methods | minimising the loss | PINNs are nonlinear least-squares collocation methods; variational PINNs use weak forms |
| Newton's method, quasi-Newton | Adam (Adaptive Moment Estimation), L-BFGS (Limited-memory Broyden–Fletcher–Goldfarb–Shanno method) | optimisers for the parameters (Ch. 10) |
| finite-difference derivative | automatic differentiation | exact derivatives, no step size (Ch. 2, 12) |
| stencil applied over a grid | convolutional layer | a convolution kernel is a stencil (Ch. 8) |
| explicit Euler step | residual network layer | $\mathbf x_{k+1} = \mathbf x_k + h f(\mathbf x_k)$ (Ch. 6, 11) |
| Green's function / solution operator | neural operator (DeepONet (Deep Operator Network), FNO (Fourier Neural Operator)) | a learned map from data to solution (Ch. 14) |
| Fourier / spectral methods | Fourier neural operator, Fourier features | work with frequencies (Ch. 7, 14) |
| reduced-order models (POD (Proper Orthogonal Decomposition)) | autoencoders, DeepONet trunk basis | low-dimensional representations of solutions |
| Tikhonov regularisation | physics term in the loss, weight decay | constrain an ill-posed fit (this chapter) |
| stability and conditioning | training stability, loss conditioning | step-size limits, narrow valleys (Ch. 6, 10) |
| convergence under mesh refinement | error vs. network size and training points | still being developed for SciML — an open research area |
6. Remedies: combine, don't replace
The most reliable progress comes from hybrid methods that keep a classical solver where it is strong and use learning where it is weak:
- Learned closures. Keep the conservation laws; learn only the unknown term, e.g. turbulence closures (Duraisamy, Iaccarino & Xiao, Annu. Rev. Fluid Mech. 51, 2019, 357–377).
- Solver in the loop. A cheap coarse solver plus a learned correction trained through the solver (Um, Brand, Fei, Holl & Thuerey, NeurIPS 2020; Kochkov et al., PNAS 2021).
- Hard constraints. Build boundary conditions and conservation laws into the network so they hold exactly (Chapter 16).
- Classical data for learned operators. Finite element or finite volume solvers generate training data; the operator then answers the many queries (Chapter 18).
- Learning to accelerate solvers. Networks that propose initial guesses for Newton iterations or preconditioners for linear solvers, while the classical method still guarantees the final accuracy.
- Equation discovery. Sparse regression over a library of candidate terms recovers interpretable equations from data (SINDy).
- Verification. Always compare SciML results with a classical solution on test cases with known answers — classical methods are the benchmark.
7. What SciML still struggles with
| Issue | What it means |
|---|---|
| Accuracy | PINNs typically reach relative errors of $10^{-3}$–$10^{-4}$; classical solvers reach $10^{-8}$ or better when needed. |
| Guarantees | Error bounds exist in some settings, but there is no general, computable "halve $h$, error ÷ 4" rule yet. |
| Training | Non-convex optimisation can stall or fail (Chapter 16, Section 4); results depend on hyperparameters. |
| Generalisation | Learned operators can fail silently on inputs unlike their training data (Chapter 18). |
| Reporting | Comparisons against weak baselines have made some published gains look larger than they are (McGreivy & Hakim, 2024). Compare against strong classical solvers. |
8. Why learn SciML — and how
- It is where computational science is going. Physics-informed learning, neural operators and data assimilation now appear in climate and weather modelling, energy and subsurface engineering, aerospace, biomedicine and materials science (Karniadakis et al., Nature Reviews Physics 3, 2021, 422–440).
- Mathematicians are needed. Stability, approximation, optimisation and error analysis of these methods are open research questions — exactly the training you already have.
- It uses everything you know. Calculus, linear algebra, ODEs (Ordinary Differential Equations), PDEs and numerical analysis are the foundations of SciML, not alternatives to it.
- It is practical. Open-source tools (PyTorch, JAX, DeepXDE) run on a laptop or free Google Colab.
Chapter 10 gradient descent from scratch (the apple example) → Chapter 11 optimisation → Chapter 12 the perceptron and neural networks → Chapter 13 training networks → Chapter 14 automatic differentiation: forward and backward propagation → Chapter 15 famous results: overfitting, No Free Lunch, garbage in–garbage out → Chapter 16 PINNs: equations as loss functions → Chapter 17 PINNs step by step with 1, 2, 3 points → Chapter 18 neural operators → Chapter 19 a pendulum, from physics to PINN → Chapter 20 hands-on Python → Chapter 21 theory and open problems → Chapter 22 applications, growth and research directions.
You need to solve the 2D heat equation once, on a square, with known coefficients, to six correct digits. The best tool is most likely…
Right. A single, well-posed, low-dimensional forward problem with high accuracy requirements is classical territory.
You must estimate an unknown, spatially varying permeability from 20 pressure sensors, with the flow equation known. Which statement is best?
Right. Classical adjoint-based inversion also works; physics-informed learning offers a flexible alternative that merges data and equation in one loss.
- Classical methods: guaranteed convergence, high accuracy, fast for single forward problems in low dimensions.
- Their pain points: high dimensions, inverse problems with sparse data, many queries, unknown physics, meshing.
- SciML adds data and learning — the physics term acts as a regulariser that fills the gaps between data.
- Every SciML idea has a classical ancestor; hybrids that combine both are often the most reliable.
- Be honest about accuracy and baselines: compare against strong classical solvers.
Further reading
- G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang & L. Yang, "Physics-informed machine learning", Nature Reviews Physics 3 (2021) 422–440.
- S. L. Brunton & J. N. Kutz, Data-Driven Science and Engineering, 2nd ed., Cambridge University Press, 2022.
- J. Han, A. Jentzen & W. E, "Solving high-dimensional partial differential equations using deep learning", PNAS 115(34) (2018) 8505–8510.
- P. Benner, S. Gugercin & K. Willcox, "A survey of projection-based model reduction methods for parametric dynamical systems", SIAM Review 57(4) (2015) 483–531.
- T. G. Grossmann, U. J. Komorowska, J. Latz & C.-B. Schönlieb, IMA J. Appl. Math. 89(1) (2024) 143–174.
- N. McGreivy & A. Hakim, Nature Machine Intelligence 6 (2024) 1256–1269.