LESSON 2.12 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Automatic differentiation
Watch automatic differentiation push exact derivatives through a graph of simple steps.
Needs2.11 The chain rule
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 2.12 · AUTODIFF BAY2 INPUTS · 5 STEPS · 1 OUTPUT
01
Stage 1 of 6 · Build the graph
A computational graph splits y into 5 simple operations, from left to right.
Explain it simply
A computer doesn't see the formula as one piece. It splits it into small steps, like lines in a recipe. Each box is one step: ln, times, sin, plus or minus. The lines show which box feeds which. This map is called a computational graph.
A graph with inputs x₁ and x₂, operation nodes a, b, c, d and y, and 8 edges.
input and node valueslocal derivative on an edgecarried derivative, Jacobianoutput valuegraph structure
Toy: 2 small graphs of 4 or 5 operations · numbers to 2 decimals
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each node applies one simple operation to the nodes that feed it.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.