Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Matrices0/5
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
dydx\tfrac{dy}{dx}dxdy​Maths, module 12: Derivatives, lesson 2 of 5

The chain rule

A handful of rules cover every function a network uses. The most important one handles functions inside functions.

9 minute readOne thing to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • Power rule: the derivative of xnx^nxn is nxn−1n x^{n-1}nxn−1. Sums are handled term by term.
  • Chain rule: for a function inside a function, multiply the derivatives of the links.
  • A network is one long chain, so the chain rule is what makes training possible.

More in Derivatives

  1. 1Slope and the derivative
  2. 2The chain rule
  3. 3Gradients
  4. 4Backpropagation by hand
  5. 5Valleys, peaks and saddles