Matrix calculus you actually need

The chain rule with the bookkeeping done by vectors and matrices. That means one layout convention, the Jacobian, five identities you'll reuse forever, and the habit of checking every derivative by its shape and by finite differences.

50 min

After this lesson you can

  • State the layout convention used in Descent and recognise the others in papers
  • Compute Jacobians and read them as the best local linear map
  • Derive the gradients of , , and a linear layer
  • Apply the chain rule as a product of Jacobians, and as a vector–Jacobian product
  • Verify any gradient numerically with finite differences

In this lesson

  1. First, a convention (and a warning)
  2. The Jacobian: the derivative of a vector function
  3. Five identities, derived
  4. The chain rule, with Jacobians
  5. Check shapes, then check numbers

This lesson is part of Descent Pro

Descent Pro unlocks every lesson on the route, from base camp to the summit. Every plan starts with a free trial.

Descent Pro

Start your free trial to keep reading

This lesson, and every other lesson on the route, is part of Descent Pro. Every plan starts with a free trial, and students with a .edu email get longer. Cancel before the trial ends and you pay nothing.