Representing information / 4 of 7
Derivatives and gradients
What you’ll learn
- Explain the main idea of “Derivatives and gradients” 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
A gradient extends a derivative to a function with several inputs. Each component describes change along one coordinate while holding the others fixed. It points toward the steepest local increase under the usual Euclidean geometry.
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
For L(x,y)=x²+3y², the gradient is (2x,6y). Negating the gradient gives a local descent direction; the step size still controls whether the actual loss decreases.
A zero gradient can indicate a minimum, maximum, or saddle point.
A worked example
At (1,1), the gradient is (2,6). A step size of 0.1 produces (0.8,0.4).
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.
See the mechanism
Start at −3. Take a step at 0.5, then take several steps at 1.1. Compare the loss in the two runs and use the step history to explain the difference.
Opening the experiment…
Try it yourself
For L(w)=w² at w=4, take a gradient step with rate 0.1.
Key takeaways
- The negative gradient with a sufficiently small step
- A zero gradient can indicate a minimum, maximum, or saddle point.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther 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.