CPBS 7620 - Lecture 14 - Frechet Derivative
Overview
The Fréchet derivative generalizes the scalar derivative to functions from ℝⁿ to ℝᵐ: it is the Jacobian matrix whose linear approximation error, divided by the input-change norm, tends to zero. The lecture connects Jacobian entries to partial derivatives and shows how gradients encode directional change, steepest ascent, and the update rule for gradient descent.
Key takeaways
- The Fréchet derivative A of f: ℝⁿ → ℝᵐ is characterized by a residual error that vanishes relative to ‖Δx‖, not merely by requiring the approximation error to approach zero.
- The Jacobian has m rows and n columns, with entry (i, j) equal to the partial derivative of output component fᵢ with respect to input coordinate xⱼ.
- A directional derivative is the ordinary one-dimensional derivative of the restricted curve g(t) = f(x + tu) at t = 0.
- For a scalar-valued function and a unit direction u, the rate of change is ∇f(x) · u; it is maximized when u points along the gradient.
- Gradient descent uses xₖ₊₁ = xₖ − α∇f(xₖ), and an overly large step size can impair convergence, motivating backtracking line search.
Chapters
- For a scalar function, the derivative gives a local linear approximation: f(x + Δx) ≈ f(x) + f′(x)Δx.
- For f: ℝⁿ → ℝᵐ, the linear approximation must multiply an n-dimensional input change and return an m-dimensional output change, so its matrix has shape m × n.
- A direct vector analogue of the scalar difference quotient fails because a vector in ℝᵐ cannot be divided by a vector in ℝⁿ.
- The Fréchet derivative is a matrix A for which ‖f(x + Δx) − f(x) − AΔx‖ / ‖Δx‖ tends to zero as Δx tends to zero; this stricter condition rules out arbitrary matrices.
- For f: ℝⁿ → ℝᵐ, the Fréchet derivative is the Jacobian matrix; for a scalar-valued function, its derivative is represented by the transposed gradient.
- Restricting f to a line through x in direction u gives g(t) = f(x + tu); g′(0) is the directional derivative of f at x along u.
- When u is a standard basis vector eᵢ, the directional derivative becomes the partial derivative with respect to coordinate xᵢ.
- The Jacobian entry in row i and column j is ∂fᵢ/∂xⱼ, describing how output component i changes when input coordinate j changes.
- For scalar-valued f, the directional derivative along u equals ∇f(x) · u; for a unit direction, it is ‖∇f(x)‖ cos θ.
- The gradient points in the direction of steepest ascent, and its norm gives the maximum directional derivative over unit directions.
- Gradient descent moves opposite the gradient using xₖ₊₁ = xₖ − α∇f(xₖ), where α > 0 is the step size.
- An excessively large α can prevent convergence; backtracking line search, such as the Armijo rule, can adapt the step size.
Transcript excerpt
0:00 Hi, I'm Nicholas Dwark and today we'll discuss the Fche derivative. Recall that for functions that map real numbers to real numbers, the derivative is defined like so. The limit as h goes to 0 of f(x) + h - fx all over h or the limit as y goes to x of f of y - fx all over y - x. This gives us this extremely useful approximation where as long as delta x is small, we can approximate a function as a line where the derivative is the slope. We now want to generalize this concept to functions that map vectors in Rn to vectors in Rn. And we definitely want to retain this approximation that's been so useful to us. If we look at the dimensions of each of these objects, we see that f ofx plus delta x is rm. f ofx is rm and delta x
0:51 is rn. So we need something that multiplies a vector in rn and returns a vector in rm. A matrix of size m byn does exactly that. So we're going to let frime of x be a matrix of size m by n. Suppose we were to define the derivative the same way we did before as the limit as y approaches x of f of y + x - fx all over y - x. The numerator of this fraction is in RM, but the denominator of this fraction is in Rn. And we don't have a way to divide one vector by another. So this definition doesn't even make sense. We're going to have to do something else. If we turn back to our approximation, we could define the derivative as the matrix that makes this approximation
1:39 equality when delta x goes to zero. The good news is that this is an expression
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Nicholas Dwork.