Mathematics · live now

Optimisation Foundations

Extend calculus to functions of several variables and use it to optimise them. Learn the multivariable chain rule, the gradient, directional derivatives and tangent planes. Then use the Hessian and convexity to find and classify critical points.

No account needed to read a lesson · 30-day money-back guarantee

See the full learning path

7

lessons

78

practice questions

102

prerequisite lessons

See it taught

2 of the 7 lessons here are free to preview - the whole explanation and worked example, with no account and no email.

Live, not a screenshot

Lesson 06 · Steepest ascent and descent

(a,b)
∇f(a,b)
u→
θ

Move the slider to turn the unit direction u→.

cos⁡θ=0.50
Du→f(a,b)=‖∇f(a,b)‖cos⁡θ=1.12

Here ∇f(a,b)=[21], so ‖∇f(a,b)‖=5≈2.24. The angle θ is always the smaller angle between u→ and ∇f(a,b), so it rises to 180∘ and then falls back to 0∘.

This is the diagram from the lesson itself, running here. Drag it - the lesson is built round the thing it shows, not round a picture of it.

The 7 lessons

The 7 lessons in this unit. Expand any one to see what it covers. Each unlocks when its own prerequisites are passed.

01

The multivariable chain rule

12 questions

Learn how to draw a dependency diagram for a function whose inputs each depend on one further variable, read the multivariable chain rule from it, and write the chain rule equation for functions given by formulas.

Covers

Dependency diagrams

The multivariable chain rule

Writing the chain rule for given functions

02

Computing with the multivariable chain rule

12 questions

Learn how to compute with the multivariable chain rule when the functions are given as formulas, first with one independent variable and then with two, where every derivative is partial.

Covers

One independent variable

Two independent variables

Computing both partial derivatives

03

The gradient vector

6 questions

Learn how to find the gradient of a function of two or more variables by collecting its first partial derivatives into a single column vector, and how to evaluate it at a point.

Covers

Computing the gradient

04

Rates of change along a line

14 questions

Learn how to find the point reached by stepping along a line in a unit direction, and how fast a function of two variables changes as you move along that line.

Covers

The point reached after a step

How direction and position affect the rate

Computing the rate at a point

05

Directional derivatives

13 questions

Learn how to find the rate of change of a function in any direction as the dot product of its gradient with a unit vector, normalise a direction that is not a unit vector, and interpret what the value tells you about the function.

Covers

The directional derivative

Computing a directional derivative

Interpreting a directional derivative

06

Steepest ascent and descent

Preview

13 questions

Learn how the rate of change depends on the angle to the gradient, find the directions in which a function rises and falls fastest and how fast, and read the direction of the gradient off a contour plot.

Covers

The rate as ∥∇f∥cos⁡θ\|\nabla f\|\cos\theta

Steepest ascent is along the gradient

The gradient on a contour plot

Preview this lesson - no account needed

07

Tangent planes and linear approximation

Preview

8 questions

Learn how to write the equation of the tangent plane to a surface at a point from the height and the two partial derivatives there, and how to use it to estimate values of a function of two variables near that point.

Covers

The tangent plane to a surface

Linear approximation in two variables

Preview this lesson - no account needed

Where this unit sits in the curriculum

This unit is part of our Essential Calculus for ML learning path, which contains 189 lessons. Every one of them is drawn below.

The diagnostic test lets you skip any lesson you already know, including the ones in this unit.

Every dot is a lesson and every line a prerequisite. The 7 red dots are the lessons in Optimisation Foundations; the 102 blue dots feeding into them are the lessons Optimisation Foundations depends on; the 80 pale dots are the rest of the learning path, which come after Optimisation Foundations or alongside it.Optimisation FoundationsFirst lessons on the left189 lessons

Hover any dot to name its lesson.

7 lessons in this unit

102 prerequisite lessons across the unit, counting every step back to the start

80 other lessons in the learning path - after this unit, or alongside it

Every dot is a lesson, every line a prerequisite. You can only start a lesson once you have mastered all of its prerequisites, so you are always building on solid foundations.

Start Optimisation Foundations

One subscription covers every learning path, and you can test out of anything you already know.

One subscription covers every learning path · 30-day money-back guarantee

More in Calculus: Limits, Derivatives, Integrals, Partial derivatives, Double integrals