Lecture 8: Multivariate calculus (cont); Proof of second-order necessary condition for optimality
Overview
Burton Ma reviews directional derivatives and the Jacobian, including how the polar-coordinate transformation produces the area factor r. He then proves the second-order necessary condition: at a twice-differentiable local minimum with f'(t*) = 0, the Taylor expansion's quadratic term must have f''(t*) ≥ 0 because the remainder is little-o of (t − t*)².
Key takeaways
- The directional derivative of the norm at a nonzero vector is 1 when the movement direction is the vector's own unit direction; the result follows immediately from the limit definition.
- For f: Rⁿ → Rᵐ, the Jacobian is an m-by-n matrix whose i-th row contains the partial derivatives of output component fᵢ.
- The polar-coordinate transformation has Jacobian determinant r, which supplies the r factor in the area element r dr dθ.
- At a twice-differentiable local minimum t* with f'(t*) = 0, the second derivative must satisfy f''(t*) ≥ 0, although equality does not guarantee a minimum.
- The Taylor remainder condition R(t) = o((t − t*)²) ensures the remainder becomes smaller than the quadratic term near t*, allowing the quadratic term to determine the sign.
- If f''(t*) were negative, a sufficiently small remainder could not prevent the Taylor expansion from decreasing near t*, contradicting local minimality.
Chapters
- A directional derivative measures the change in a function divided by the distance moved in a chosen direction.
- For the length function at a nonzero vector W, moving along the unit direction W/||W|| increases the length at rate 1.
- The result follows directly from the limit definition: ||W + h(W/||W||)|| = ||W|| + h for positive h, so the difference quotient is 1.
- The gradient of a scalar-valued function f is the column vector of its partial derivatives and is central to optimization.
- For a vector-valued map f: Rⁿ → Rᵐ, each component function fᵢ has a row of partial derivatives.
- Stacking the m rows produces the m-by-n Jacobian matrix; each row is the transpose of the gradient of one output component.
- The coordinate map from (r, θ) to (x, y) is x = r cos θ and y = r sin θ.
- Its Jacobian matrix has rows [cos θ, −r sin θ] and [sin θ, r cos θ].
- The determinant is r(cos² θ + sin² θ) = r, explaining the r factor in the polar area element r dr dθ.
- For a local minimizer t*, the first-order necessary condition is f'(t*) = 0.
- The second-order necessary condition states f''(t*) ≥ 0, but f''(t*) = 0 does not by itself prove that t* is a minimum.
- A second-order Taylor expansion leaves a remainder term that must be controlled before the sign of the quadratic term can establish the result.
- Write f(t) = f(t*) + f'(t*)(t − t*) + ½f''(t*)(t − t*)² + R(t).
- The remainder satisfies R(t) = o((t − t*)²) as t approaches t*, meaning R(t)/(t − t*)² tends to zero.
- Burton Ma derives this limit from the remainder formula using L’Hôpital’s rule and the definition of the derivative, showing the remainder is negligible relative to the quadratic term.
- Assume f''(t*) < 0; the Taylor expansion then has a negative quadratic term proportional to (t − t*)².
- Because the remainder divided by (t − t*)² tends to zero, it can be bounded by an arbitrarily small positive multiple of that square near t*.
- Choosing the bound smaller than half the magnitude of f''(t*) makes the full Taylor change negative, contradicting the local-minimum condition f(t) − f(t*) ≥ 0.
- Therefore f''(t*) cannot be negative, proving the second-order necessary condition f''(t*) ≥ 0.
- Burton Ma closes the lecture after completing the proof and postpones the next gradient-focused lecture set.
- He says Test One covers lecture slides 1 through 5 and plans to post a sample question set over the weekend.
- A student is directed to the Lecture 03 addendum for previously posted material.
Transcript excerpt
0:00 length. So the directional derivative of the length for some vector W, right, in the direction of W, right? Uh and so when you work that out, it equals to it equals one, right? And the explanation as to why it's equal to one. So the fact that it makes one does make sense, right? Because the derivative is a rate of change, right? And so derivative, right? So remember a derivative is just an instantaneous rate of change. Uh and you know that for the standard derivatives that you talk about in first
0:47 year calculus, you've got a little formula for it, right? All right, the derivative is just equal to f of t plus h minus f of t / h. And so that's the basic def uh as and then you take the limit uh as h goes to zero, right? All right. And so the thing in the numerator is just the change uh in f uh when uh moving by an amount h. Right? So if you start out at f of t and you go to f of t plus h, right? What is
1:36 the change in the value of f? Well, you just subtract the two. Right? And h is just how far you moved. Right? And so when you say it's an instantaneous rate of change, right, it's just how much did you change as a fraction of how far you moved, right? And so that's all it means. So for a directional derivative, it's the same thing. It's ex exact same thing, right? Except if for a directional derivative um you have to take into account the fact that you're moving in some direction and you're working with vector quantities. So you can still write sorry you can still write it as a limit right
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, Burton Ma.