Last updated: October 2026
How do I find the absolute max and min on an interval?
Short answer: the closed-interval method — differentiate, find critical points, evaluate everything, compare. Three steps, no exceptions on a closed interval.
It works because of a simple guarantee: on a closed interval [a, b], a continuous function must attain an absolute max and an absolute min somewhere (the Extreme Value Theorem), and that somewhere can only be a critical point inside the interval or one of the two endpoints. So instead of checking infinitely many x-values, you check a short list. The calculator above runs exactly this method and prints each step with your numbers.
Worked example: f(x) = x³ − 3x² on [−1, 3]
Short answer: absolute max 0 (at x = 0 and x = 3), absolute min −4 (at x = −1 and x = 2). Here is every step.
Step 1 — differentiate. f′(x) = 3x² − 6x = 3x(x − 2).
Step 2 — critical points. Set f′(x) = 0: 3x(x − 2) = 0 gives x = 0 and x = 2. Both lie inside (−1, 3), so both are critical points. (f′ is a polynomial, so it is never undefined — no extra points.)
Step 3 — evaluate and compare.
The largest value is 0 — the absolute maximum, attained twice (x = 0 and x = 3). The smallest is −4 — the absolute minimum, also attained twice (x = −1 and x = 2). Note how the endpoints did half the work: without them you would miss the max at x = 3 entirely. Click the first example chip above to watch the calculator reproduce this.
Absolute vs local extrema — what is the difference?
Short answer: local means highest nearby; absolute means highest anywhere on the interval. In the example above, x = 0 is a local max and an absolute max, but x = 2 is a local min and an absolute min — while a different function could have three local maxima and only one absolute winner.
Students mix these up because the words sound interchangeable. They are not: "local" is about a neighborhood, "absolute" is about the whole interval. The calculator labels every critical point (local max / local min / neither), so you can see the distinction on your own function instead of memorizing definitions.
What if there are no critical points?
Short answer: then the function is monotonic (always rising or always falling) on the interval, and the absolute max and min are simply the two endpoint values. The calculator tells you this directly.
Take f(x) = x³ on [−1, 1]: f′(x) = 3x² is zero only at x = 0, which the second-derivative test calls an inflection point, not an extremum. So the only candidates are the endpoints: f(−1) = −1 (absolute min) and f(1) = 1 (absolute max). Whenever your function has no genuine turning points inside the interval, the answer is just "check the ends" — which is exactly what the method does.
Pitfalls and honest limitations
Short answer: this calculator finds critical points numerically — extremely close or pathological features can be missed, and unbounded functions have no absolute extrema to find.
A few things worth knowing before you trust any number it prints:
It is numerical, not symbolic. The derivative is exact (computed symbolically), but locating where it equals zero is done by scanning and bisection. Two critical points closer together than about a billionth of your interval width could merge into one. For homework and exam problems this never happens; for adversarial math, use a computer algebra system.
Unbounded functions have no answer. f(x) = 1/x on [−1, 1] shoots to ±infinity near x = 0, so no absolute max or min exists. The calculator detects this blow-up pattern and warns you rather than silently reporting the endpoint values as if they were extrema.
Endpoints must be finite and ordered. The method needs a closed interval [a, b] with a < b. Open intervals (like (0, 1)) are a different problem — the extrema might not be attained at all.
Syntax matters. Write 3*x^2, not 3x²; write e^x and ln(x). If the parser cannot read your function, it says so instead of guessing.
Frequently asked questions
How do I find the absolute max and min of a function on an interval?
Use the closed-interval method: 1) differentiate f to get f′(x); 2) find the critical points where f′(x) = 0 or is undefined inside (a, b); 3) evaluate f at every critical point and at both endpoints a and b — the largest value is the absolute max, the smallest is the absolute min. The calculator above does all three steps and shows its working.
What is a critical point?
A critical point is an x-value where the derivative f′(x) equals zero or is undefined (like a cusp or corner). They are the only places inside an interval where a local max or min can occur — which is why the closed-interval method checks every one of them.
What is the difference between absolute and local maximum?
A local maximum is the highest point in its immediate neighborhood; an absolute maximum is the highest point on the entire interval. Every absolute max is also a local max (or an endpoint), but a function can have several local maxima with only one absolute winner. The calculator labels each critical point so you can see both.
Do the endpoints of the interval count?
Yes — on a closed interval [a, b], the absolute max or min very often occurs at an endpoint. For example, f(x) = x² on [−2, 1] has its absolute max of 4 at the endpoint x = −2, not at any critical point. Never skip the endpoints.
What if the derivative is zero everywhere or there are no critical points?
If f′ never hits zero inside (a, b), the function is monotonic there — always rising or always falling — so the absolute max and min must be at the endpoints. A constant function has derivative zero everywhere, and then every point ties for both max and min.
Can it handle trig functions like sin(x)?
Yes. Type sin(x), cos(x), tan(x), e^x, ln(x), sqrt(x), abs(x) and similar — the parser understands standard math notation with ^ for powers. Try the sin(x) on [0, 2π] example above: it finds the max of 1 at x = π/2 and the min of −1 at x = 3π/2.
Why does the calculator warn about a vertical asymptote?
If f(x) blows up toward ±infinity somewhere inside your interval (like 1/x near x = 0), then no true absolute max or min exists there — the function is unbounded. The calculator detects this pattern and warns you instead of silently reporting a wrong answer from the finite parts.