Representing information / 3 of 7

Calculus: measuring change

8 minOpening your notebook…

What you’ll learn

  • Explain the main idea of “Calculus: measuring change” in your own words.
  • Trace a concrete example and identify the assumptions behind it.
  • Apply the principle in a practice problem and recognize a common failure.

The idea, intuitively

Calculus describes how quantities change and accumulate. For AI, the derivative tells us how a small change in a parameter affects a loss. It is a local description, so a large step may behave differently from the predicted small-step change.

Use small numbers first and work one operation at a time. Track the shape and units of every quantity before doing algebra. The equations here describe idealized objects; implementing them on a computer introduces finite precision and resource constraints. You can understand the mechanism before learning every proof.

Under the hood

The derivative is the limit of a difference quotient as the input change approaches zero. Integration accumulates quantities over an interval. Optimization mainly uses derivatives to choose directions that reduce an objective.

f′(x)=lim⁡h→0f(x+h)−f(x)hf^{\prime}(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}
h is a small change in x. The fraction measures the average slope over that interval. The limit gives the local slope when the derivative exists.
A useful caution

A derivative is a local slope, not a guarantee about distant points.

A worked example

For f(x)=x², the slope at x=3 is 6. Moving by 0.01 changes the value by approximately 0.06.

How to use this way of thinking

Check a symbolic result with a numeric example, then consider an edge case such as zero, a very large value, or an incompatible shape. Explain what each symbol means rather than memorizing the equation. If a result surprises you, inspect the assumptions and the units first.

Try it yourself

Differentiate f(x)=3x² and evaluate at x=2.

Key takeaways

  • Local rate of change
  • A derivative is a local slope, not a guarantee about distant points.
  • Check the assumptions with a small example before applying this idea to a larger system.

Check your understanding

0/2 checked

Use feedback to learn. Quiz scores and lesson completion are tracked separately.

1What does a derivative measure?
2True or false: A derivative describes a local rate of change.
Go to lesson completion

Further reading

Original papers and reference material for this school. External resources may be in English and require internet access.

Mathematics for Machine Learning (open textbook) (opens a new tab)

Finish this lesson

Mark this lesson complete when you’re ready to continue.

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close