Calculus I · Maxima, Minima, and the Shape of a Function
Where this is heading
In Chapter 9, gradient descent chases the condition this chapter is built on — it steps downhill precisely to drive the slope toward zero, the critical-point equation you’ve been solving by hand. And the convexity you proved here is exactly the guarantee that its descent can’t get lost. The two chapters are one idea from two sides: this one finds minima with algebra, the next one finds them by iteration when algebra can’t.
And the whole story reopens, larger, in Book 3. There, becomes a vector, the single slope becomes the gradient, “” becomes “the gradient vanishes,” the second derivative becomes a matrix of curvatures, and convexity becomes a statement about that matrix. The shape of a function in many dimensions is where optimization, and machine learning, actually live — and every word of it is built on the single-variable shapes you just learned to read.
Problems
Six tiers. Fluency and Practice are doing* — classify critical points and solve real optimization problems until it’s automatic. Concept & counterexample and ◆ Diamond are thinking — the convexity ideas and the proofs. Teach it is teaching. Looking ahead opens Chapter 9. Do all of Fluency; the Concept tier here is where the convexity ideas actually take hold.*
Fluency — do these fast
- Find all critical points of: (a) ; (b) ; (c) .
- Use the second-derivative test to classify each critical point in problem 1.
- State where each is concave up and concave down, and find any inflection points: (a) ; (b) .
- Find the critical points of on and classify them. (Recall .)
- For each, decide whether it’s convex, concave, or neither on all of , using the sign of : (a) ; (b) ; (c) (on ); (d) ; (e) .
- Find the global max and min of on using the closed-interval method.
Practice — apply and optimize
- Find the global max and min of on .
- A farmer has m of fencing and wants to enclose the largest possible rectangular area against a straight river (no fence needed on the river side). Find the dimensions. (Set up area as a function of one side, then optimize.)
- Find the point on the line closest to the origin. (Minimize the squared distance — it has the same minimizer and easier algebra.)
- A box with a square base and open top must hold . Find the dimensions using the least material. (Mirror the can example: express surface area in one variable, optimize, confirm with .)
- Find the maximum of for , and confirm it’s a maximum two ways (first- and second-derivative tests).
- On , find where is largest. (A trig optimization — find , set it to zero.)
Concept & counterexample — think; true/false with justification, or build the example
- Every critical point is a local maximum or minimum. (b) If , then is an inflection point. (c) A convex function can have two distinct local minima. (d) If and , the point is definitely not an extremum.
- Find the error. A student says: “ has and , so by the second-derivative test is neither a max nor a min.” What’s wrong, and what is true at ?
- Construct a function with a local minimum that is not its global minimum. (This is exactly the “false floor” convexity forbids.)
- Construct a critical point where but is neither a max nor a min, and a different one where yet is a minimum. (These show why each “inconclusive” case really is inconclusive.)
- Is it possible? A convex function with a local maximum somewhere in the interior of its domain. Argue from the four faces why or why not.
- Explain in two or three sentences why a convex loss function makes gradient descent guaranteed to find the best answer, while a non-convex one does not — referring to the two-valley picture.
◆ Diamond — the proofs are the foundation
- ◆ Prove Fermat’s theorem (cite Fermat’s lemma from Chapter 6) and explain why the conclusion is only “ or doesn’t exist,” not just the first.
- ◆ Prove the first-derivative test for a local maximum: if just left of and just right, then is a local max. (Use Chapter 6’s monotonicity consequence on each side.)
- ◆ Prove the second-derivative test: if and , then is a local minimum. (Use the Chapter 7 quadratic , and argue the quadratic term dominates for near .)
- ◆ Prove that implies the graph lies above each of its tangent lines (Face 4 Face 2), using the Taylor remainder. Then specialize to re-prove .
- ◆◆ Prove the keystone theorem: if is convex and , then is the global minimum. (Use the tangent-below face with the horizontal tangent at .)
- ◆◆ Prove Face 2 Face 1 (tangent below chord above): take two points, and show the chord between them stays on or above the graph. (Hint: a clean route is to first prove for any between and , lies below the chord, using that is increasing.)
Teach it — explain it, write it up, or fix it
- In three or four sentences with the bowl-and-floor picture, teach a friend what convexity is and why it means “no false floors.”
- Debug your classmate. They claim: “I found a point where , so it’s the minimum of .” Explain in two sentences what they’ve actually found and the two things they still have to check before calling it a global minimum.
- Write a complete worked solution to “find the rectangle of maximum area with perimeter ,” narrating each step — setup, the single-variable function, optimize, confirm — so a peer could redo it for any perimeter.
- Design a problem. Invent an applied optimization problem (a box, a fence, a can, or a dose) whose answer is a clean number, and write the full solution key including the check.
- In a few sentences, teach the difference between a local and a global extremum, and explain why convexity is exactly the condition that makes the two coincide.
Looking ahead — Chapter 9 and Book 3 in your hands early
- Gradient descent (Chapter 9) finds minima by stepping downhill until the slope is zero — i.e., it chases the equation you’ve been solving by hand. For the convex function , predict: starting anywhere, will gradient descent find the global minimum? Why does convexity guarantee it?
- For the non-convex (the two-valley function), predict what determines which minimum gradient descent lands in, and connect this to why “where you start” mattered in the Chapter 9 lab.
- In Book 3, becomes a vector and “” becomes “the gradient is the zero vector.” Predict: what should replace the second derivative when there are many input directions, and what might “convex” mean for a bowl in many dimensions? (You’re guessing the shape of multivariable optimization — the real home of machine learning.)
Questions to talk about
No answer key. These are for arguing over, with someone who read the same chapter.
- A convex function has no false floors — every place its slope is zero is the true global minimum. Why does that one property divide optimisation problems that are guaranteed to work from ones where you cross your fingers?
- Training a neural network is named as the non-guaranteed case. What does it mean to use a method daily while knowing it can settle in the wrong valley?
- 'You are not learning new magic, you are spending what you already own.' Which earlier chapter is each tool in this one drawn from?