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

10

lessons

112

practice questions

111

prerequisite lessons

See it taught

2 of the 10 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∘.

The diagram from the lesson itself, running live.

10 of 15 lessons

10 lessons you can take today, and 5 more being written. 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

08

Critical points of a function of two variables

14 questions

Learn why every local maximum or minimum of a function of two variables occurs at a critical point, and how to find the critical points by solving for where the gradient is zero, including systems that split into cases.

Covers

The gradient at a local extremum

Finding critical points

Critical points when an equation factors

09

Convex functions

9 questions

Learn what it means for a function of one or two variables to be convex, by comparing its graph with its secant lines.

Covers

What convex means

Convexity in two variables

10

Minimising convex functions

11 questions

Learn why a local minimum of a convex function is its global minimum, and how to find the global minimum of a convex function of one or two variables by solving for where its derivative or gradient is zero.

Covers

A local minimum of a convex function is global

Finding the global minimum at a critical point

—

The Hessian matrix

In drafting

—

Second directional derivatives

In drafting

—

Classifying critical points

In drafting

—

Convexity and the Hessian

In drafting

—

Gradient descent

In drafting

Where this unit sits in the curriculum

This unit is part of our Essential Calculus for ML learning path, which contains 192 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 10 red dots are the lessons in Optimisation Foundations; the 111 blue dots feeding into them are the lessons Optimisation Foundations depends on; the 71 pale dots are the rest of the learning path, which come after Optimisation Foundations or alongside it.Optimisation FoundationsFirst lessons on the left192 lessons

Hover any dot to name its lesson.

10 lessons in this unit

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

71 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