Skip to content

Stage 1 · Beginner · F2

The Slope of Everything

Every AI model is a machine for taking one derivative.

12 lessons · 101 minEasy

About this chapter

Learning is one question asked over and over: if I nudge this number, does the error go up or down? This chapter builds that question from a picture rather than a definition. You will zoom in on a curve until it turns into a straight road, meet the chain rule as a row of gears, and read a gradient as an arrow that points uphill. By the end you can say what a model is doing when it trains, check a gradient by hand, and tell a real bottom from a saddle.

What you will be able to do

  1. 1

    The Question Every Model Asks

    State learning as a search for the direction that lowers the error.

    7 min
  2. 2

    How Fast, Not How Much

    Turn two readings into a rate, and read that rate off a curve.

    7 min
  3. 3

    Zoom In Until It Is Straight

    Say why a smooth curve looks like a line up close, and read the tilt there.

    8 min
  4. 4

    The Derivative Is a Slope at a Point

    Read the tangent anywhere on a curve and say what the sign of the derivative means there.

    9 min
  5. 5

    The Rules You Will Actually Use

    Differentiate powers and sums without looking anything up.

    8 min
  6. 6

    The Chain Rule Is the Whole Game

    Send a rate through a chain of boxes by multiplying one link at a time.

    10 min
  7. 7

    One Knob at a Time

    Take a partial derivative and name the numbers you froze to get it.

    8 min
  8. 8

    The Gradient Points Uphill

    Read a gradient as an arrow: a direction to climb and a steepness.

    9 min
  9. 9

    Bottoms, Tops and Saddles

    Tell a bottom, a top and a saddle apart when the ground is flat.

    9 min
  10. 10

    Every Model Is a Derivative Machine

    Explain why one derivative of one number is all a model ever needs.

    9 min
  11. 11

    Measure It Both Ways

    Measure a derivative by nudging, pick a sensible step, and use it to check the rules.

    9 min
  12. 12

    A Taste of Area

    Add up thin slices to get the area under a curve, and say why probability needs it.

    8 min

Before you start

Keep going

All chapters