Critical Points Calculator – Locate and Classify Local Extrema
A critical point of a function f(x) is any x-value in its domain where the slope is flat or breaks — that is, where f'(x) = 0 or f'(x) is undefined. These are the only places a curve can turn from rising to falling (a local maximum), from falling to rising (a local minimum), or momentarily flatten without truly turning at all (a saddle point). This calculator parses your expression with the same symbolic engine used by the Derivative Calculator, computes f'(x) and f''(x), searches your chosen interval for every critical point, and classifies each one automatically.
How the Search Works
For simple polynomials the roots of f'(x) = 0 can sometimes be read off directly, but most real expressions — trig, exponential, logarithmic, or mixed — have no tidy closed form. Instead, the calculator densely samples f'(x) across your search interval [a, b], watches for every sign change, and refines each one with bisection down to your chosen tolerance (as small as 1e-12). It also watches for points where f'(x) is undefined even though f(x) itself is perfectly defined — the sharp corner of |x| at x = 0 is the classic example, since the left-hand and right-hand slopes there are −1 and +1 with nothing in between.
First Derivative Test vs. Second Derivative Test
The second derivative test checks the concavity at each candidate point: if f''(x₀) > 0 the curve bends upward (a local minimum), and if f''(x₀) < 0 it bends downward (a local maximum). When f''(x₀) = 0 the test is inconclusive, so the calculator automatically falls back to the first derivative test, which simply compares the sign of f'(x) just to the left and right of the point. A negative-to-positive change means a minimum, positive-to-negative means a maximum, and no change at all means the point is a saddle point — a flat spot that never actually turns, like f(x) = x³ at x = 0.
Absolute Extrema on a Closed Interval
Local extrema only describe behavior near a point, but many optimization problems ask for the single highest or lowest value f(x) reaches across a bounded range. With Include endpoints enabled, the calculator evaluates f(x) at every interior critical point plus both endpoints a and b, then reports the largest value as the absolute maximum and the smallest as the absolute minimum — the standard closed-interval method taught in every calculus course.
Concavity and Inflection Points
Turning on Show inflection points extends the same root-finding routine to f''(x) = 0, keeping only the roots where concavity genuinely flips from up to down or down to up. This complements the critical-point analysis: while critical points describe where a curve stops rising or falling, inflection points describe where it stops curving one way and starts curving the other, which is essential for accurate curve sketching.
Reading the Graph and Sign Chart
The plot draws f(x) across your search interval with each critical point marked and color-coded by type — local maxima, local minima, saddle points, and corners are all visually distinct. Beneath it, a sign chart shows where f'(x) is positive or negative across the same interval, making it easy to visually confirm exactly why the first derivative test reached the conclusion it did at each marked point.