Higher-Order Derivatives
Differentiate the derivative and you get curvature: the second derivative tells whether the slope itself is rising or falling, which sorts valleys from hills.
Why Does This Exist?
First derivatives find flat points; they cannot tell valleys from hills from passes. That sorting needs curvature, the second derivative, and it powers real decisions: Newton's method steps use curvature to converge quadratically, the second-order terms of Taylor series carry the approximation's accuracy, and in deep learning the Hessian's eigenvalues reveal sharp versus flat minima that generalize differently.
Derivatives of common functions supplies the first-derivative table this page differentiates again. This page answers what the repeats mean.
The one idea you need first
The first derivative is the slope at . The second derivative is the slope of the slope: it measures how the slope itself changes as you move. Positive means slopes are increasing as you go right, which bends the curve upward like a bowl.
Think of It Like This
Reading the road's bend, not just its grade
A grade sign says the road currently falls 2 percent: that is the first derivative. But it says nothing about what comes next. If the grade signs ahead read steeper and steeper downhill, you are cresting into a dive; if they read flatter, you are bottoming into a valley. The rate at which the grade itself changes is the second derivative.
Drivers brake for the bend, not the grade. Optimizers should too: a steep slope into a sharp valley floor needs a short step, while the same slope on a gentle straightaway takes a long one. Curvature sizes the step, which is Newton's whole insight.
How It Actually Works
Differentiate repeatedly: is first order (slope), is second order (curvature), third, and so on. The sign chart for :
- : concave up, bowl shaped, slopes increasing left to right.
- : concave down, dome shaped, slopes decreasing.
- : possibly an inflection where curvature flips, test further.
The second-derivative test: at a flat point (), positive confirms a local minimum and negative confirms a local maximum.
Worked example
. Differentiate term by term:
- . At : . The curve falls through .
- . At : . Curvature bends upward.
So at the function value is , the slope is (still descending), but the upward curvature 6 says a valley floor is near. Indeed the minimum sits at , just right of our point: falling slope plus upward bend means the bottom is ahead, not behind.
Watch Out For
Reading the second derivative as the slope direction
The symptom is "positive second derivative, so the function rises," which confuses bend with grade. In the worked example sits beside a falling slope of : the valley bends up while the path still descends. Fix it with two separate questions: says which way you walk, says how the ground bends underfoot. Never let one answer both.
Paying full Hessian price in high dimensions
Second derivatives generalize to the Hessian matrix with entries for parameters: a million-parameter model means a trillion-entry matrix nobody stores. The symptom is an out-of-memory crash from calling a full second-order routine on a real network. Use curvature cheaply instead: Hessian-vector products, diagonal approximations, or quasi-Newton updates like BFGS that build curvature estimates from gradients. Full Hessians are for analysis and small problems.
The Quick Version
- is the slope of the slope: positive bends upward, negative bends downward.
- At a flat point, confirms a valley and confirms a hill.
- For at : value , slope , curvature 6, valley ahead.
- Curvature sizes Newton steps, which is why they converge fast near minima.
- Bend and grade are separate questions: upward bend can accompany a falling slope.
- In dimensions curvature is an Hessian, so approximate it.