
Adjoint Differentiation of ODE Solutions
Alan Edelman and Steven Johnson cover how to differentiate the solution of an ordinary differential equation with respect to its parameters, a core operation in scientific machine learning and optimal control. This is part of MIT's 18.S096, Matrix Calculus for Machine Learning and Beyond, taught during the January 2023 Independent Activities Period. The lecture builds toward the adjoint method, showing why solving a second, backward-running adjoint ODE is often far more efficient than direct sensitivity analysis when the number of parameters is large. Edelman and Johnson work through the derivation on the board, connecting it to the matrix calculus and automatic differentiation ideas developed earlier in the course, and framing the adjoint approach as the continuous analog of backpropagation. The session assumes familiarity with linear algebra and basic ODE theory from prior lectures in the series.