Mathematics for Machine Learning

Learn / Mathematics for Machine Learning

05 - Vector Calculus

Advanced mastery of Chapter 5, covering every named section and exercise-style synthesis across book pages 139-171.

Learning path

0%

0 of 4 sections marked complete · about 42 minutes

Learning objectives

What you will be able to explain

  • Univariate rules
  • Compute a gradient
  • Gradients
  • Vector-valued derivatives
  • Gradients with matrices
  • Quadratic-form gradient

Section 01

Univariate rules to Gradients

01

Univariate rules

The chapter begins with scalar rules before generalizing dimensions.

Guided checkpoint

Match function to derivative.

Source: Sec. 5.1, pp. 141-146

02

Compute a gradient

The derivatives are 2x+3y2x+3y and 3x+4y3x+4y.

Guided checkpoint

For f(x,y)=x2+3xy+2y2f(x,y)=x^2+3xy+2y^2, evaluate the gradient at (1,2)(1,2).

Source: Sec. 5.2, pp. 146-149

03

Gradients

The gradient represents the derivative as an inner product.

Guided checkpoint

For scalar f:RDRf:R^D \to R.

Source: Sec. 5.2, pp. 146-149

Section 02

Vector-valued derivatives to Quadratic-form gradient

01

Vector-valued derivatives

Jacobians linearize vector-valued maps and compose by matrix multiplication.

Guided checkpoint

For f:RnRmf:R^n \to R^m, match object.

Source: Sec. 5.3, pp. 149-155

02

Gradients with matrices

Trace and differential manipulations preserve noncommuting order.

Guided checkpoint

Check the book's conventions.

Source: Secs. 5.4-5.5, pp. 155-159

03

Quadratic-form gradient

Both occurrences of xx contribute; symmetry reduces this to 2Ax2Ax.

Guided checkpoint

For constant AA, nablax(xTAx)nabla_x(x^TAx) equals:

Source: Sec. 5.5, pp. 158-159

Section 03

Automatic differentiation modes to Second-order Taylor model

01

Automatic differentiation modes

Mode choice depends on Jacobian dimensions; backprop is reverse accumulation.

Guided checkpoint

Match mode to efficiency regime.

Source: Sec. 5.6, pp. 159-164

02

Higher-order derivatives

Curvature distinguishes minima, maxima, and saddles locally.

Guided checkpoint

For twice differentiable scalar ff.

Source: Sec. 5.7, pp. 164-165

03

Second-order Taylor model

Taylor expansion combines local value, slope, and curvature.

Guided checkpoint

Which terms appear around x0x_0?

Source: Sec. 5.8, pp. 165-170

Section 04

Linearization to Exercise-style chain rule

01

Linearization

f(3)+f(3)(.1)=9+6(.1)=9.6f(3)+f'(3)(.1)=9+6(.1)=9.6.

Guided checkpoint

For f(x)=x2f(x)=x^2, linearize at x0=3x_0=3 and evaluate the approximation at 3.13.1.

Source: Sec. 5.8, pp. 165-170

02

Further-reading bridge

The chapter points from calculus identities to AD systems.

Guided checkpoint

Which topic extends derivatives to parameterized programs at scale?

Source: Sec. 5.9, p. 170

03

Exercise-style chain rule

Chain rule gives 3(2x+1)2×2=6(3)2=543(2x+1)^2 \times 2=6(3)^2=54.

Guided checkpoint

Let z=(2x+1)3z=(2x+1)^3. Compute dz/dxdz/dx at x=1x=1.

Source: Chapter 5 exercises, pp. 170-171

Knowledge check

Turn understanding into recall.

The quiz now follows the same concepts in scored form. You can return to this lesson from the quiz whenever a gap appears.