Extreme points β the local maxima and minima of a function β are where optimisation lives: the most profit, the least material, the highest point of a trajectory. Finding them by hand means differentiating, solving for critical points, and then classifying each one, a three-stage process with a failure mode at every stage. This calculator identifies a function's maximum and minimum points directly, so you can check each stage of your own work or get the coordinates when the analysis matters more than the algebra.
Quick Answer
Candidates for extreme points occur where fβ²(x) = 0 or fβ²(x) is undefined. A critical point is a local maximum if fβ² changes from positive to negative there, a local minimum if it changes from negative to positive, and neither if the sign does not change.
Critical Points Are Suspects, Not Verdicts
Fermat's theorem guarantees that a smooth function's local extremes hide among its critical points, but the reverse is false β not every critical point is an extreme. The point x = 0 on f(x) = xΒ³ has derivative zero yet is neither max nor min; the curve flattens and keeps climbing. That is why the second stage, classification, exists. The first derivative test reads the sign of fβ² on either side: rising then falling means a peak, falling then rising means a valley, no change means a terrace. The second derivative test is quicker when it works: fβ³(a) negative means the curve is concave down at the critical point, so it is a local maximum; fβ³(a) positive means concave up, a local minimum; fβ³(a) = 0 means the test is silent and you must fall back on the sign test.
Local and global extremes are different claims. A local maximum only beats its neighbours; the global maximum beats everything in the domain. On a closed interval, the global extremes can also occur at the endpoints, which are not critical points at all β so a complete search checks critical points and endpoints and compares values. Endpoints, corners, and cusps are exactly the places a purely derivative-based search can miss, which is why stating the domain is part of stating the problem.
How to Use the Extreme Points Calculator
- Enter the function f(x) exactly as written, with brackets around grouped terms.
- If your problem restricts the domain (for instance, a closed interval), note the endpoints separately β you will need to compare their values too.
- Run the calculation and list the critical points it reports, with the function's value at each.
- Classify each point: check whether it is labelled maximum or minimum, and whether that matches the sign-change pattern you expect.
- Evaluate the function at any endpoints of the domain and compare all values before declaring a global maximum or minimum.
- Sketch or graph the function to confirm the reported points sit where the curve actually turns.
A Worked Example: f(x) = xΒ³ β 6xΒ² + 9x + 2
Differentiate: fβ²(x) = 3xΒ² β 12x + 9 = 3(xΒ² β 4x + 3) = 3(x β 1)(x β 3). Critical points at x = 1 and x = 3. Apply the second derivative, fβ³(x) = 6x β 12. At x = 1: fβ³(1) = β6, negative, so the point is a local maximum, with f(1) = 1 β 6 + 9 + 2 = 6, giving the point (1, 6). At x = 3: fβ³(3) = 6, positive, so it is a local minimum, with f(3) = 27 β 54 + 27 + 2 = 2, giving the point (3, 2). The story is consistent: the cubic climbs to (1, 6), descends to (3, 2), then climbs away. Neither point is a global extreme, because a cubic with a positive leading coefficient runs from ββ to +β β a useful reminder that "extreme point" without the word local or a stated domain is an incomplete answer.
Classification Errors and Missing Candidates
The most common mistake is stopping after solving fβ²(x) = 0 and listing every root as a max or min without any test β the xΒ³ terrace punishes exactly that. Second is forgetting points where fβ² is undefined: |x| has its minimum at a corner where no derivative exists. Third is ignoring endpoints on closed intervals, where the global extreme is frequently an endpoint rather than a turning point. A subtler error is trusting the second derivative test when it returns zero and guessing anyway; that case demands the sign test. Seeing the turning points on a graph helps catch all of these β the Derivative Graph Calculator shows the function and derivative together, and the Second Derivative Calculator supplies the concavity values used in the test.
Endpoints Strike Back: A Closed-Interval Check
To see why the domain belongs in every extreme-point answer, put the worked example's cubic, f(x) = xΒ³ β 6xΒ² + 9x + 2, on the closed interval [β1, 4] and hunt for the global extremes. The interior critical points are the ones already found: (1, 6) a local maximum and (3, 2) a local minimum. Now evaluate the endpoints: f(β1) = β1 β 6 β 9 + 2 = β14, and f(4) = 64 β 96 + 36 + 2 = 6. Comparing all four candidate values {6, 2, β14, 6}, the global maximum on the interval is 6 β achieved twice, at the interior point x = 1 and at the endpoint x = 4 β while the global minimum is β14, achieved only at the endpoint x = β1, a place where the derivative is 3(1) + 12 + 9... precisely, fβ²(β1) = 3 + 12 + 9 = 24, nowhere near zero. A search that only solved fβ²(x) = 0 would have missed the interval's lowest point entirely. Whenever a problem states a closed interval, the candidate list is always: critical points inside, plus both endpoints, no exceptions.
Extremes Are Where the Answer Usually Is
Most applied calculus questions end at an extreme point, so accuracy here carries the whole problem. Verify your candidates and classifications with this calculator, then use the Derivative Calculator to inspect the derivative itself when a classification looks suspicious.