Visual walkthrough — Second derivative test — concavity, inflection points
Before symbol one: a function is a rule that takes a number and gives back a height . Plot the point for every and you get a curve — a road drawn above a number line. That road is all we will look at.
Step 1 — The slope of the road: what measures
WHAT. Pick a point on the curve and lay a straight ruler so it just grazes the curve there, touching but not crossing. That ruler is the tangent line. Its steepness — how much height you gain per step to the right — is the slope. We name this slope (read "-prime of "). The little prime mark is just notation for "the slope function of ."
WHY this tool. We want to talk about bending, but bending is a change in direction, and direction is exactly what slope captures. So the honest starting point is slope. Nothing about "second" yet — first we must be fluent in the first.
PICTURE. Three tangent rulers on one curve.

Step 2 — Watch the slope change as you walk the cup
WHAT. Take a bowl-shaped () curve and walk left-to-right, reading off the tangent slope at each stop. On the left the ruler points steeply down (very negative slope). Near the bottom it goes flat (zero). On the right it tilts up (positive). So the slope-number marches : it is increasing.
WHY. This is the key observable. "Concave up" is not a new mysterious thing — it is literally the slope getting larger as you move right. We are turning a shape-word ("cup") into a number-behaviour ("slope increasing").
PICTURE. The same bowl with tangent rulers drawn at five stops; slope values labelled.

Step 3 — Measure "slope increasing" — apply the derivative again
WHAT. We have a number that changes as moves: the slope . To ask "is this number increasing?" we do the exact same thing we did in Step 1 — take the slope of it. The slope of is written (two primes = "slope of the slope").
WHY this tool and not another. We already have one perfect device for "is a quantity increasing?": the derivative, because means " goes up as goes up." We do not need to invent anything new — we just feed into that same machine. Choosing the derivative here is the only natural choice because increase/decrease of any function is what the derivative reports.
PICTURE. Two stacked plots — top is (a rising line for our cup); bottom is its own slope , sitting above zero.

Step 4 — The cap (): every sign flips
WHAT. Now walk a dome-shaped () curve. Tangents go from steeply up on the left, to flat at the peak, to steeply down on the right: slope marches — decreasing. Slope decreasing means its slope is negative: .
WHY show this separately. The contract is to cover every case. Cup and cap are the two concavities; we must see the sign genuinely reverse, not assume it.
PICTURE. Dome with five tangent rulers, slopes labelled decreasing; a small inset shows as a falling line.

Step 5 — Where cup becomes cap: the inflection point
WHAT. Slide a single curve from a region into a region. Somewhere the bending must reverse. At that switch the slope stops increasing and starts decreasing — so passes from through to . The crossing point is the inflection point.
WHY is only a clue. For to go from to it must cross zero if it is continuous. But hitting zero is not the same as crossing it — a value can touch and bounce back to the same sign. That is why the definition demands a genuine sign change, not merely .
PICTURE. One S-shaped curve; left half shaded as , right as , the join marked as inflection, with the sign strip underneath.

Step 6 — The degenerate trap: touches zero but never turns
WHAT. Take . Its slope-of-slope is . At this equals — the "clue" fires. But for every (a square is never negative). So dips to and rises again without changing sign: concave up on both sides. No inflection, despite .
WHY it matters. This is the case the naive rule " inflection" gets wrong. Seeing kiss the axis and stay non-negative is the whole lesson.
PICTURE. Top: the flat-bottomed bowl. Bottom: touching the axis at but staying above it.

Step 7 — The other degenerate case: inflection where does not exist
WHAT. The definition allowed a second door: an inflection where fails to exist. Here is the honest example — the cube root . Differentiate twice: At the denominator is zero, so is undefined — division by zero, the curve is vertical there. But look at the sign on each side: for , so (concave up, ); for , so (concave down, ).
WHY this matters. The concavity genuinely flips across , and is continuous there, so is a true inflection point — even though was never zero and never even defined at the switch. This closes the definition's second door that Step 6 left open.
PICTURE. Top: the vertical-tangent cube-root curve, up-bending then down-bending. Bottom: diving to from the left and to from the right — a genuine sign change through a break, not through zero.

Step 8 — The payoff: why concavity classifies a flat point (Taylor)
WHAT. At a critical point the tangent is flat: (this is where Critical points live). Near , Taylor's expansion writes the height difference exactly as the bending term plus a leftover:
WHY this tool. We want to compare the height to the flat-point height for nearby . Taylor's formula is the microscope that writes that difference in terms of . The linear term died because , leaving the square term in charge.
Read the sign. Since always and is negligible near (the limit above), the difference carries the sign of :
- nearby ⇒ sitting in a valley ⇒ local minimum.
- nearby ⇒ sitting on a peak ⇒ local maximum.
- square term vanishes ⇒ now decides ⇒ inconclusive, defer to the First derivative test.
PICTURE. A cup with a flat tangent at its base (min) beside a cap with a flat tangent at its crest (max); the parabola drawn over each.

The one-picture summary
Everything compressed: the curve on top, its slope in the middle, its concavity at the bottom — three plots sharing one -axis so you can read the whole story vertically.

Recall Feynman retelling — the whole walk in plain words
Draw a hilly road. The slope tells you if you're going up or down (that's ). Now don't watch the height — watch the slope itself as you walk. If the slope keeps getting bigger (from steep-down, to flat, to steep-up), the road is curving like a smile, a cup: that's . If the slope keeps shrinking, the road frowns, a cap: . Measuring "is the slope growing?" is the same job as measuring slope, so we just take the slope of the slope — that's the two little primes. Where the smile turns into a frown, the slope stops growing and starts shrinking, so flips sign — that's the inflection point — either passing through zero (like ) or through a break where blows up (like the cube root). It is not an inflection if the road merely kisses flatness and keeps the same curve (like ). Finally, if you stop on a flat spot: a cup-flat is the bottom of a valley (a min), a cap-flat is the top of a bump (a max). That's the whole second-derivative test, seen not memorised.
Recall Quick self-check (open after attempting)
Q1. What does mean geometrically? → Concave up (); the slope is increasing. Q2. Why is taking the derivative twice the right tool for concavity? → Concavity asks "is the slope increasing?", and the derivative is exactly the "is it increasing?" detector — applied to . Q3. Is enough to guarantee an inflection? → No; must actually change sign. has , no flip. Q4. Can an inflection happen where does not exist? → Yes; at flips with undefined. Q5. and — classify. → Local maximum (cap-flat = peak).
Connections
- First derivative test
- Critical points
- Taylor series
- Curve sketching
- Maxima and minima — optimization
- Concavity and convex functions