Summary and Revision Notes
Use this page to review the chapter before doing the exercises.
Key Ideas
| Idea | Meaning | Question to ask |
|---|---|---|
| average slope | change in output divided by change in input | What happened over this interval? |
| derivative | local rate of change | What happens near this input? |
| partial derivative | one-input sensitivity | What if this input changes and others stay fixed? |
| gradient | vector of partial derivatives | What is the local sensitivity vector? |
| directional derivative | change along a chosen unit direction | What if we move this way? |
| Jacobian | derivative table for vector outputs | How do all outputs respond to all inputs? |
| Hessian | second-derivative table | How is the gradient changing? |
| chain rule | local sensitivities multiplied through composition | How does change pass through this path? |
| computation graph | dependency map of values and operations | Which values depend on which earlier values? |
| backpropagation | chain rule applied backward through a graph | How did earlier values affect the loss? |
Formulas to Remember
Average slope:
Local approximation:
Gradient:
Directional derivative:
Chain rule:
Gradient descent:
Useful Distinctions
| Do not confuse | Difference |
|---|---|
| average slope and derivative | average slope uses two points; derivative is local at one point |
| derivative and partial derivative | a partial derivative is for a multi-input function |
| gradient and descent direction | the gradient points uphill; descent uses the negative gradient |
| gradient and Jacobian | a gradient is for scalar output; a Jacobian is for vector output |
| Jacobian and Hessian | a Jacobian tracks first derivatives; a Hessian tracks second derivatives |
| chain rule and backpropagation | backpropagation is organized chain rule over a graph |
| local approximation and guarantee | a derivative gives a nearby estimate, not a global promise |
Common Traps
- Treating a derivative as a global description of the whole function.
- Forgetting that partial derivatives hold other variables fixed.
- Comparing gradient components by sign instead of magnitude.
- Moving with the gradient when the goal is to decrease loss.
- Forgetting that a directional derivative usually uses a unit direction.
- Thinking a zero gradient always means the best possible point.
- Treating backpropagation as separate from the chain rule.
- Forgetting that branch contributions are added during backpropagation.
- Trusting an autodiff result without checking shapes and dependencies.
- Forgetting that the Jacobian is the local linear map for vector-output changes.
Mental Model
Calculus tells how quantities change.
Training uses that information to adjust parameters.
Backpropagation is the bookkeeping that carries those local change signals through a computation graph.