Overview
Physics has always been the science of discovering compact mathematical laws from empirical observation. Kepler distilled years of planetary data into three elegant equations. Newton compressed all of mechanics into $F = ma$. Einstein rewrote gravity as spacetime curvature. In each case, the discoverer brought powerful priors: dimensional consistency, symmetry, conservation laws, and the conviction that nature's equations should be simple. The question animating this chapter is: can AI systems leverage the same priors to accelerate the discovery of physical laws and engineering models?
The answer involves three complementary strategies. Symbolic regression searches the space of mathematical expressions for equations that fit data while respecting dimensional analysis and known symmetries. Physics-informed neural networks (PINNs) embed partial differential equations directly into training losses, turning inverse problems (inferring unknown parameters from observations) into optimization problems that neural networks solve naturally. Neural operators learn mappings between function spaces, enabling surrogate models that generalize across initial conditions and boundary parameters without retraining.
These methods differ fundamentally from the black-box regression of Chapter 25. There, the goal was to find patterns in data. Here, the goal is to find physical laws: equations that generalize beyond the training distribution, obey conservation principles, and provide interpretable explanations for why a system behaves as it does. The difference is not merely aesthetic. A neural network that fits a drag coefficient curve cannot predict what happens when the Reynolds number exceeds its training range. A symbolic expression with the correct dimensional structure can.
This chapter builds on the scientific machine learning foundations of Chapter 33, the symbolic regression techniques of Chapter 35, and the differentiable programming framework of Chapter 42. It applies those tools to physics and engineering problems at graduate depth, with working code you can run on your own data. By the end, you will have a complete pipeline that discovers symbolic laws from data, solves inverse PDE problems, and compares symbolic and neural approaches on extrapolation tasks.
Prerequisites
This chapter assumes familiarity with Chapter 33: Scientific Machine Learning (PINNs and neural operators at the conceptual level), Chapter 35: Symbolic Regression and Equation Discovery (genetic programming and expression trees), and Chapter 42: Differentiable Programming for Discovery (JAX fundamentals and automatic differentiation). Readers should be comfortable with partial differential equations at the level of the heat equation and wave equation; Appendix A covers the necessary calculus. Experience with SymPy for symbolic computation is helpful but not required.
Learning Outcomes
- Configure PySR with dimensional constraints and custom operators to discover physically meaningful equations from noisy data.
- Formulate inverse PDE problems as PINN training objectives and solve them with DeepXDE, recovering unknown coefficients from sparse observations.
- Implement a Fourier Neural Operator (FNO) for parametric PDE solving and explain why neural operators generalize across initial conditions.
- Build a Bayesian optimization loop with BoTorch for engineering design problems with expensive simulations.
- Compare symbolic regression, PINNs, and standard neural networks on extrapolation benchmarks, quantifying when each method wins.
- Integrate Noether's theorem as a structural prior for conservation-law discovery.
Sections
50.1 Symbolic Regression for Physics
Dimensional analysis as a hard constraint. PySR with custom operators and unit-aware search. Rediscovering Kepler's third law and the drag equation. SymPy verification and simplification. When symbolic regression outperforms neural networks on extrapolation.
50.2 Physics-Informed Learning
PDE residual losses for forward and inverse problems. Solving the inverse heat equation: recovering thermal diffusivity from sparse temperature measurements. Noether's theorem as a conservation-law prior. Simulation-based inference with normalizing flows. DeepXDE and JAX implementations.
50.3 Neural Operators for PDEs
The universal approximation theorem for operators. Fourier Neural Operator architecture and spectral convolutions. Learning parameterized Darcy flow and Navier-Stokes surrogate models. Comparing FNO, DeepONet, and classical solvers on accuracy, speed, and generalization.
50.4 Building a Physics Discovery Pipeline
Recipe: PySR law discovery from simulation data, PINN inverse problem to recover unknown parameters, neural operator surrogate for rapid evaluation, and BoTorch optimization over the surrogate. End-to-end pipeline on a heat transfer design problem with Discovery Workbench integration.
Bibliography
Symbolic Regression for Physics
The definitive reference for PySR, covering multi-objective symbolic regression with dimensional constraints, custom operators, and integration with Python scientific workflows.
Introduces dimensional analysis, symmetry detection, and separability testing as preprocessing steps that dramatically narrow the symbolic search space for physics equations.
PhySO: a deep reinforcement learning approach to symbolic regression that uses dimensional analysis to constrain the search space, achieving state-of-the-art results on physics benchmarks.
Physics-Informed Neural Networks
The foundational PINN paper establishing PDE residual losses for both forward (solving PDEs) and inverse (parameter recovery) problems.
The DeepXDE library paper, providing a high-level API for PINNs with support for multiple backends, complex geometries, and inverse problems.
Neural Operators
The FNO paper: spectral convolutions in Fourier space that learn resolution-invariant PDE solution operators, with 1000x speedups over classical solvers.
DeepONet formalizes operator learning with the branch-trunk architecture, grounded in the universal approximation theorem for operators (Chen & Chen, 1995).
The theoretical foundation proving that neural networks can approximate any continuous nonlinear operator, the theoretical backbone of DeepONet and all neural operator methods.
Engineering Optimization
BoTorch provides composable Bayesian optimization primitives on top of GPyTorch, enabling multi-objective optimization over expensive engineering simulations.
A comprehensive review of simulation-based inference methods, covering neural ratio estimation, neural posterior estimation, and sequential approaches for likelihood-free problems in physics.
Tools & Libraries
The PySR library used throughout this chapter for dimensionally-constrained equation discovery, backed by the SymbolicRegression.jl Julia engine.
Used for expression simplification, dimensional verification, and converting discovered equations into LaTeX and code.
Reference implementations of FNO, DeepONet, and related architectures for operator learning on PDE problems.