The Maths You Actually NeedLesson 21 of 76

Module 3 · Change, slopes and the walk downhill

Many knobs, one derivative each

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalCompute a partial derivative and a chain-rule derivative by hand, trace a gradient backwards through a two-layer network and say where the memory goes, and diagnose from a loss curve and a gradient-norm plot whether the learning rate, the curvature or a vanishing gradient is the cause.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Freeze everything else

A loss depends on millions of weights, not one. The extension is simpler than it sounds: to find the partial derivative with respect to one variable, treat every other variable as a constant and differentiate as usual.

Take f(x, y) = x^2 + 3xy + y^3.

For the partial with respect to x, pretend y is a fixed number:

Text
d/dx of x^2   = 2x
d/dx of 3xy   = 3y        (y is a constant, so this is 3y times x)
d/dx of y^3   = 0         (no x in it, so it is a constant)

df/dx = 2x + 3y

Now the same for y, pretending x is fixed:

Text
df/dy = 0 + 3x + 3y^2 = 3x + 3y^2

Evaluate both at the point (2, 1):

Text
df/dx = 2(2) + 3(1) = 7
df/dy = 3(2) + 3(1) = 9

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Many knobs, one derivative each’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/partial-derivatives-and-the-gradient (Accessed: 29 November 2026).