Curriculum

Calculus & Gradients

Understand slopes, partial derivatives, the chain rule, and gradient descent through visual and coded experiments.

Not started3 min explanation

Visualize, practice, and deep-dive material are optional—use only what helps you learn.

Explanation

A focused 3-minute explanation using the topic's authored material.

Learning goals and prerequisites

After this lesson

  • Interpret derivatives as local sensitivity
  • Compute partial derivatives and chain-rule paths
  • Implement and diagnose gradient descent

Helpful before starting

  • Algebra and graphs of functions
  • Basic Python and arrays
  • Comfort with slopes of straight lines

Start here

Calculus & Gradients, in plain language

Understand slopes, partial derivatives, the chain rule, and gradient descent through visual and coded experiments. Gradients connect a model error to parameter updates and make optimization behavior explainable rather than magical.

For a small example, minimize (w - 3)^2 starting at w = 0. Differentiate to get 2(w - 3), take a small step opposite the gradient, and watch the loss shrink. This is the mechanism to keep in view as the lesson becomes more technical. Before moving on, identify the input, transformation, output, and one observation that would falsify your conclusion.

Key points

  • Functions, slopes, derivatives, and local linear approximation.
  • Partial derivatives, gradients, directional derivatives, and chain rule.
  • Loss surfaces, learning rate, steps, and stopping criteria.

Use it well

When Calculus & Gradients helps—and where it breaks

A linear predictor has slope and intercept errors. Compute partial derivatives, update both parameters, and compare analytical gradients with finite differences. A useful result still depends on checking the assumptions and evidence below rather than treating one successful output as proof.

Key points

  • Reading a derivative as a global guarantee. Better approach: Treat it as local sensitivity and inspect the wider objective.
  • Blaming the optimizer first. Better approach: Validate data, loss, shapes, and gradients before tuning.
  • Using a large step because it learns faster initially. Better approach: Judge stability and final convergence across runs.

Was this lesson helpful?

Submit to the team when server feedback is available; otherwise this browser keeps a local copy and tells you so.