Source: Annotated lecture PDF · Review roadmap

Gradients and directional derivatives

For differentiable ,

The lecture writes the directional derivative at in direction as

This is a scalar, whereas the gradient is a vector. Equivalent notation, using a general point and direction , is

The dot denotes a dot product. With column vectors, the transpose turns the gradient into a row so matrix multiplication gives the same scalar; no transpose is needed when using .

For , this is change per unit distance. If :

The nonzero gradient is perpendicular to a level curve/surface. Steepest direction depends on the norm; these formulas use the Euclidean norm.

Convexity

A convex set contains the segment between any two of its points:

A convex function on a convex domain satisfies

Every local minimum of a convex function is global. Strict convexity gives at most one minimiser.

Taylor approximations and the Hessian

: continuous first derivatives. : continuous second derivatives.

For small displacement :

Gradient = slope; Hessian = curvature. For functions the Hessian is symmetric. These approximations are local; the second-order expression is exact for quadratic functions.

Bases, transformations and similarity

A basis represents each vector uniquely as . Coordinates depend on the chosen basis and its ordering. A linear transformation satisfies .

If invertible contains new basis vectors in old coordinates:

Similar matrices describe the same transformation in different coordinates. Distinguish moving an object from changing its coordinate representation.

Connections

  • L2: gradient descent: directional derivatives justify choosing .
  • L3: Armijo: first-order Taylor change becomes the sufficient-decrease benchmark.
  • L4: Newton: minimise a second-order Taylor model to obtain the Newton step.
  • L5: rescaling: coordinate transformations explain why matrix-scaled gradients can improve conditioning.

For diagrams and derivations: directional derivative, pp. 9–12 · Taylor, pp. 13–15 · coordinates, pp. 22–26.