Applications of Derivatives — Optimization and Curve Sketching
Optimization and curve sketching use the first and second derivatives of a function to find its largest/smallest values and to draw its graph accurately. Key result: at a smooth maximum or minimum, the derivative equals zero (); the second derivative's sign reveals which it is and how the curve bends. Applies to: maximizing profit, minimizing material or distance, modelling motion, and sketching any differentiable curve. Who/when: rooted in the work of Fermat (1630s) and Newton/Leibniz (1660s–1680s).
A differentiable function can only turn around — switch from increasing to decreasing or vice versa — at a point where its tangent line is horizontal. Therefore the interesting features of a graph (its hills, valleys, and bends) are encoded in the places where , where is undefined, and where changes sign. Reading these three pieces of information lets you reconstruct the entire shape of a curve and pinpoint its optimal values without plotting hundreds of points.
Formal Statement
A critical point of a function is a number in the domain of at which either
Derivation hint: A critical point is by definition where the candidate-extremum condition can be met; the two cases correspond to smooth turning points and to corners/cusps respectively. Here is the derivative of evaluated at , geometrically the slope of the tangent line to the graph at .
has a local (relative) maximum at if for all near ; a local minimum if for all near . It has an absolute (global) maximum at if for every in the domain, and similarly for absolute minimum. The symbol "near " means within some open interval containing .
If has a local maximum or minimum at an interior point of its domain, and exists, then
Derivation hint: Compare the one-sided difference quotients on each side of a peak; one is , the other , and if the two-sided limit exists it must equal both, forcing .
Let be a critical point of a continuous function .
- If changes from positive to negative at , then has a local maximum at .
- If changes from negative to positive at , then has a local minimum at .
- If does not change sign, is neither.
Symbolically, increasing means and decreasing means on the relevant interval.
If and exists:
Derivation hint: means the slope is increasing through , so goes from negative to positive — a valley; the inequality is reversed for a peak. If the test is inconclusive.
is concave up on an interval where (the curve lies above its tangents, shaped like ) and concave down where (shaped like ). An inflection point is a point where the concavity changes, requiring
Derivation hint: Inflection is the second-order analogue of an extremum: it is where "turns around," found by setting and checking for an actual sign change.
If is continuous on a closed, bounded interval , then attains both an absolute maximum and an absolute minimum on . These occur either at critical points inside or at the endpoints or .
Why It Holds
Suppose has a local maximum at an interior point and exists. 1. By definition of local maximum, for all sufficiently small , so . 2. For : the difference quotient satisfies (negative over positive). Taking the limit as gives the right-hand derivative . 3. For : now (negative over negative). Taking the limit as gives the left-hand derivative . 4. Since exists, the left and right limits are equal. The only number satisfying both and is . The minimum case follows by applying this result to .
∎Building Intuition
intuition Imagine walking along the graph from left to right as if it were a hilly road. The first derivative is your forward tilt: uphill (), downhill (), or level (). You can only switch between climbing and descending by momentarily walking on flat ground — that flat spot is a hilltop (max) or valley bottom (min). The second derivative describes the shape of the road surface itself. Concave up () is a valley-shaped dip that would collect rainwater; concave down () is a dome that sheds it. An inflection point is the precise spot where the road transitions from one curvature to the other — like the middle of an S-bend on a mountain pass. This is why the second-derivative test works: at a flat spot, if the surface curves up like a cup, you must be at the bottom of a valley (minimum); if it curves down like a cap, you must be at the top of a hill (maximum).
Worked Examples
Given: An open-top box with a square base must hold a volume of . Find the dimensions that minimize the surface area (material used).
Setup. Let the base side be and height . Volume: , so . Surface area (base + four sides): . Substitute :
Derivation hint: Eliminate using the volume constraint so depends on a single variable .
Differentiate and set to zero:
Derivation hint: Apply the power rule to and to , then clear the denominator. So , and .
Confirm minimum: everywhere, so the critical point is indeed a minimum.
Given: Sketch .
Step 1 — Critical points. . Setting gives and .
Step 2 — Classify with the second derivative. .
- At : → local maximum, value .
- At : → local minimum, value .
Step 3 — Inflection point. at ; since changes from negative to positive there, is an inflection point.
Step 4 — Intercepts and behaviour. at and . As , ; as , .
Common Misconceptions
"Setting always gives the maximum or minimum." This is incomplete on three counts: 1. Critical points include places where is undefined (corners, cusps, vertical tangents) — e.g. has a minimum at where does not exist. 2. On a closed interval, the absolute extremum may be at an endpoint, where need not be zero. 3. A critical point can be neither a max nor a min (the second-derivative test failing). The vanishing of is necessary for an interior smooth extremum but never sufficient on its own.
Consider . Then , so — the point is critical. Yet has no extremum there: it is increasing on both sides ( for ). The second-derivative test is inconclusive because . In fact is an inflection point. This shows that does not guarantee a maximum or minimum, and that the second-derivative test can give no verdict.
Connections
Optimization and curve sketching sit at the heart of differential calculus and connect outward in several directions. They are the natural pay-off of The Derivative and the rules for computing it, especially The Chain Rule for composite functions. The justification of the first-derivative test relies on The Mean Value Theorem, which guarantees a point where instantaneous slope equals average slope. Closed-interval optimization depends on Continuity through the Extreme Value Theorem. The inverse problem — recovering a function from its rate of change, needed in applications like total cost from marginal cost — is handled by The Definite Integral and the Fundamental Theorem of Calculus. Related rate-of-change problems share the same machinery under the heading Related Rates.
Real-World Applications
Historical Development
Subtleties & Limits
The techniques here apply cleanly to smooth, single-variable functions on nice domains, but the boundaries of the subject open onto deep territory. For functions of several variables, critical points are found by setting all partial derivatives to zero, and the classification requires the Hessian matrix (a multivariable second-derivative test) — yet saddle points proliferate and global optimization becomes genuinely hard. Non-differentiable and non-convex optimization (as in modern machine learning) has no guarantee that following the derivative reaches the global minimum; gradient descent can stall in local minima or saddle regions, and characterizing when it succeeds is an active research area. Even the innocent assumption of a closed bounded interval matters: drop it and a continuous function may have no maximum at all (e.g. on the open interval ). Constrained optimization with inequality constraints (the Karush–Kuhn–Tucker conditions) generalizes Fermat's idea but lies beyond the elementary setting.
See Also
The Mean Value Theorem · Extreme Value Theorem · Concavity and Inflection Points · Related Rates · Gradient Descent · The Fundamental Theorem of Calculus