Physics-Informed Neural Networks: A Didactic Derivation of the Complete Training Cycle
Abdeladhim Tahimi

TL;DR
This paper provides a detailed, step-by-step derivation of the complete training cycle for Physics-Informed Neural Networks (PINNs), including explicit numerical examples and formulas, to clarify the underlying algebra and connect to automatic differentiation.
Contribution
It offers a didactic, transparent derivation of PINN training, including explicit calculations, recursive formulas for gradients, and validation against automatic differentiation, enhancing understanding and reproducibility.
Findings
Achieved a relative L2 error of 4.290e-4 on the example problem.
Derived general recursive formulas for gradient computation in deep networks.
Provided a reproducible Jupyter/PyTorch notebook for manual and automatic gradient validation.
Abstract
This paper is a step-by-step, self-contained guide to the complete training cycle of a Physics-Informed Neural Network (PINN) -- a topic that existing tutorials and guides typically delegate to automatic differentiation libraries without exposing the underlying algebra. Using a first-order initial value problem with a known analytical solution as a running example, we walk through every stage of the process: forward propagation of both the network output and its temporal derivative, evaluation of a composite loss function built from the ODE residual and the initial condition, backpropagation of gradients -- with particular attention to the product rule that arises in hidden layers -- and a gradient descent parameter update. Every calculation is presented with explicit, verifiable numerical values using a 1-3-3-1 multilayer perceptron with two hidden layers and 22 trainable parameters.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
