You find a function's maximum and minimum values by locating its critical points, testing each one, and then comparing those values against the function's endpoints or its behavior at infinity. The key boundary: this endpoint check applies only on a closed interval, which is exactly where students lose the most marks. On an open interval, a critical point can be a local peak with no global maximum at all — f(x) = x on (0, 1) has neither a largest nor a smallest value, even though it's perfectly smooth. The method below works for polynomials, rational functions, and anything differentiable.

Step 1: Fix the Domain Before Touching the Derivative

Before differentiating anything, write down where the function actually lives. The domain decides whether a maximum can exist at all: a continuous function on a closed interval [a, b] is guaranteed both a maximum and a minimum by the Extreme Value Theorem, while on an open interval or an unbounded domain that guarantee evaporates. A function like f(x) = 1/x on (0, ∞) has no maximum and no minimum — it approaches 0 but never reaches it, and it blows up near 0.

Check three things: division by zero, even roots of negatives, and logarithm arguments. For f(x) = √(x − 3)/(x − 5), the domain is x ≥ 3 with x ≠ 5, and the hole at 5 matters because the function can spike toward ±∞ on either side of it. Write the domain as an interval before proceeding — every later step depends on it.

If the problem states "find the absolute maximum on [−2, 3]," mark the endpoints −2 and 3 immediately. Those two points are candidates that never appear in the derivative test, and on many exam problems the answer is sitting at an endpoint while students hunt only for f′(x) = 0. According to the College Board's AP Calculus course description, optimization and the Extreme Value Theorem sit in Unit 5, and endpoint neglect is a recurring scoring issue in free-response grading.

Here's the boundary rule to internalize: on a closed interval, candidates = critical points + endpoints. On an open interval, candidates = critical points only, and you must additionally check limits at the open ends and at any vertical asymptotes. On an unbounded domain, check the limit as x → ±∞ too, and compare it to your critical-point values.

Step 2: Differentiate and Solve f′(x) = 0 Exactly

Compute the derivative, then set it to zero and solve. For f(x) = x³ − 3x² + 1, f′(x) = 3x² − 6x = 3x(x − 2), so the critical x-values are 0 and 2. Both are in the domain, so both survive to the next step. Keep fractions exact — 4/3 beats 1.333 when you later compare values, because rounding can flip which candidate is larger.

For rational functions, combine the derivative into a single fraction and set the numerator to zero, but track where the denominator vanishes separately. Those denominator zeros are not critical points (the function isn't defined there), yet they can still produce a local extreme in the sense that the function shoots to infinity — a "maximum" in some textbook conventions. Know which convention your course uses. Most standard calculus texts, including Stewart's Calculus, define critical points only where f′ = 0 or f′ is undefined and f is defined.

Factor whenever possible rather than reaching for the quadratic formula. For f′(x) = x³ − 4x = x(x − 2)(x + 2), factoring gives all three roots at once; the formula gives you two and a lost afternoon. If f′ is a fraction with a polynomial numerator, use the rational root theorem on the numerator before assuming no clean roots exist.

Watch for derivative-undefined points that are still in the domain: f(x) = |x| has f′(0) undefined, yet x = 0 is the minimum. Cusps and corners are legitimate critical points, and they never show up as roots of f′ = 0. Check the domain boundaries of each derivative piece for these.

Step 3: Run the First Derivative Test to Classify Each Point

Build a sign chart of f′ across the critical values. For f(x) = x³ − 3x² + 1, test x = −1: f′(−1) = 3(1) + 6 = 9 > 0. Test x = 1: f′(1) = 3 − 6 = −3 < 0. Test x = 3: f′(3) = 27 − 18 = 9 > 0. The pattern +, −, + means f rises to x = 0, falls from 0 to 2, and rises after 2. So x = 0 is a local maximum and x = 2 is a local minimum.

The rules: f′ changes + to − means local maximum; − to + means local minimum; no sign change (± to ±, or no sign test possible) means neither — it's a saddle-style inflection point. For f(x) = x³, f′(x) = 3x² is positive on both sides of 0, so x = 0 is neither a max nor a min despite being stationary. Students lose points here by assuming every f′ = 0 point is an extreme.

Sign charts demand exact test values inside each subinterval, and the test points must sit strictly between consecutive critical values — not on them. If critical values are 0 and 2, test −1, 1, and 3, or better, pick values whose sign is obvious without a calculator. The derivative's sign is what you're reading, and any convenient x in the subinterval works, so choose values that make arithmetic trivial.

A failure case worth remembering: f(x) = x⁴ has f′(x) = 4x³, so x = 0 is the only critical point, and f′ is −, + around it. That's a local minimum. But f(x) = x⁴ − x³ at x = 0 gives f′ changes − to + only after factoring: f′(x) = 4x³ − 3x² = x²(4x − 3), so x = 0 is a flat spot with no sign change and never an extreme. The test has to see all factors.

Sign change of f′ at x = c Classification Example
+ to − Local maximum f(x) = x³ − 3x² + 1 at x = 0
− to + Local minimum Same function at x = 2
+ to + or − to − Neither (inflection) f(x) = x³ at x = 0
No defined f′(c) Check cusp/corner directly f(x) = |x| at x = 0

The sign chart is cheaper than the second derivative test and more powerful, because it also classifies undefined-derivative points. Use it first. Save the second derivative test for when you only need a quick label and the equation's heavier machinery is already in hand.

Step 4: The Second Derivative Test as a Fast Shortcut

Evaluate f″ at each critical point. If f″(c) > 0, the curve is concave up there and c is a local minimum. If f″(c) < 0, concave down, local maximum. If f″(c) = 0, the test is inconclusive and you fall back to the sign chart from Step 3. For f(x) = x³ − 3x² + 1, f″(x) = 6x − 6, so f″(0) = −6 gives a local max at 0, and f″(2) = 6 gives a local min at 2 — confirming the chart in two multiplications.

The inconclusive case is not rare. f(x) = x⁴ at x = 0 has f″(0) = 0 yet a clear minimum, and f(x) = x³ at x = 0 has f″(0) = 0 with no extreme at all. The second derivative test can't distinguish these two shapes, so a zero second derivative forces you back to sign analysis. This is the most common trap in multiple-choice exams about second-derivative testing.

Speed matters in timed exams. The second derivative is one more differentiation of an expression you already know, so for polynomials of degree 3 and up it's usually the fastest classification. For functions involving quotients, radicals, or products, the sign chart often costs less than differentiating again through the quotient or product rule. Choose based on which computation is shorter, not which test you saw last.

One more caution: the tests are local. Passing the first derivative test tells you x = 0 is a local max, but not that f(0) is the biggest value on the whole interval. That global claim needs the endpoint comparison in Step 6. Keep local and global results in separate columns of your scratch work so you don't accidentally promote a local result to a global one.

Step 5: Evaluate f at Every Candidate and Compare in a Table

List each candidate x-value and compute f(x) exactly as a fraction or radical where possible. For f(x) = x³ − 3x² + 1 on [−1, 4]: f(−1) = −1 − 3 + 1 = −3; f(0) = 1; f(2) = 8 − 12 + 1 = −3; f(4) = 64 − 48 + 1 = 17. The table reveals the global maximum is 17 at x = 4, and the global minimum is −3 occurring at both x = −1 and x = 2 (a tie). Note the tie explicitly; many problems ask "at what point(s)" and a missed endpoint tie loses points.

Keep the values in a table like the one below. It's cleaner than a list of sentences, and it forces you to include the endpoints — a step that students who work through everything as prose routinely forget to add.

x f(x) Type
−1 −3 Endpoint (global min tie)
0 1 Critical point, local max
2 −3 Critical point, local min (global min tie)
4 17 Endpoint (global max)

Announce the answer as "global maximum 17 at x = 4; global minimum −3 at x = −1 and x = 2." Do not call the local max at 0 a global max — its value 1 is far below 17. Words matter here; much of the grading penalty in calculus exams comes from saying "maximum" when the value is only local, or from omitting "at x = ..." when the value alone is incomplete.

For irrational critical values, e.g., f′(x) with a root √3, compute f(√3) exactly in radicals if feasible, or carry enough decimals for comparison — three decimals beyond the range of your other candidates is plenty. Never round the candidate before computing f(candidate); the derivative's root is exact and should stay exact in the evaluation.

Step 6: Handle Endpoints and Open Intervals Without Missing the Global Answer

On a closed interval, the endpoint test is mandatory and cheap: two arithmetic evaluations added to your table. On an open interval, compute one-sided limits at the open endpoints, because those limits aren't always the answer — a function can have a local maximum inside and then climb past it as x approaches the open end. For f(x) = x/(x² + 1), the derivative f′(x) = (1 − x²)/(x² + 1)² vanishes at x = ±1, and f(1) = 0.5 is a global maximum over the real line, confirmed by the limit as x → ±∞: f → 0. No finite endpoints exist; the limit comparison does the job endpoints would.

Watch for a common end-run: a function on (0, 5) that has a critical point at 2 with a local minimum can still have no global minimum if f → −∞ near one end. The classic case f(x) = x on (0, 1) has neither extremum because every value is approached but never attained. When the answer is "no maximum exists," say so — that's a legitimate answer and some exam questions are designed to test whether you'll invent one.

Vertical asymptotes are boundaries in disguise. For f(x) = 1/(x − 2) on (0, 4) with x ≠ 2, the function has no maximum and no minimum because it spikes to ±∞ near 2. The domain split at x = 2 forces you to check the left piece (0, 2) and right piece (2, 4) separately, and each approaches an infinite limit as x → 2 from inside. Report the behavior; call the answer "no absolute maximum" with the reason.

On a half-open interval like [0, 3), only x = 0 is a real endpoint to evaluate. The x = 3 side needs a left-sided limit, and if f(3⁻) is larger than every candidate value, the function has no global maximum on the interval — it approaches that limit. If instead the limit is below all candidates, the interior critical point holds the global maximum and the half-open issue is irrelevant. This distinction catches students who mechanically add "3" to the candidate list despite the parenthesis.

Step 7: Use the First Derivative Test Globally on Unbounded Domains

For domains that run to infinity, three tools combine: critical points, endpoint behavior (if any finite endpoints), and infinite limits. For f(x) = x² − 4x + 3 on (−∞, ∞), f′(x) = 2x − 4 = 0 gives x = 2. Since f″(2) = 2 > 0, x = 2 is a local minimum and f(2) = −1 is the global minimum. There is no global maximum; x² − 4x + 3 → ∞ as x → ±∞. Answer: minimum −1 at x = 2, no maximum.

When the leading term is negative even degree, the situation flips. f(x) = −x² + 6x − 5 has f′(x) = −2x + 6 = 0 at x = 3, f(3) = 4 is a global maximum, and no minimum exists. The pattern for polynomials: odd degree → neither bound; even degree with positive leading coefficient → global minimum, no maximum; even degree negative leading coefficient → global maximum, no minimum. Recognizing these at a glance saves the limit computation on exams, though you should still verify for anything more complicated than a polynomial.

Rational functions can have both. f(x) = (x² + 1)/(x² + 4) has f′(x) = 6x/(x² + 4)² which vanishes only at x = 0. f(0) = 1/4 is a local minimum, and as x → ±∞ f → 1, so the function rises toward 1 without reaching it. Here there's no global maximum (1 is a supremum but not attained) and the global minimum is 1/4 at x = 0. The limit-as-supremum distinction is exactly the kind of answer that earns full credit and shows you understand the definition.

Trigonometric and periodic functions need the period handled explicitly on unbounded domains. f(x) = sin x has no global maximum on (−∞, ∞) even though it attains 1 infinitely often; every value 1 is a local max but none is "the" largest in a way that distinguishes it. On [0, π], sin x's endpoints give 0 and 0, and the interior critical point at π/2 gives 1 — so the closed-interval version has a clean global maximum at 1. Domain changes the answer, so always recheck after switching from open to closed.

Worked Comparison: Four Functions, Four Different Outcomes

The most common error is fixing a single template — "derivative equals zero, pick the bigger value" — and applying it blindly. The four cases below share the same machinery but end in different answers, and each one is a real exam archetype.

Function and domain Critical points Endpoint or infinite limits Global max Global min
x³ − 3x² + 1 on [−1, 4] x = 0, 2 f(−1) = −3, f(4) = 17 17 at x = 4 −3 at x = −1 and x = 2
x² − 4x + 3 on (−∞, ∞) x = 2 f → ∞ as x → ±∞ None −1 at x = 2
1/x on (0, ∞) None (f′ = −1/x² never zero) f → ∞ as x → 0⁺; f → 0 as x → ∞ None None
x/(x² + 1) on (−∞, ∞) x = ±1 f → 0 as x → ±∞ 1/2 at x = 1 −1/2 at x = −1

Read the fourth row carefully: both a global max and a global min exist even with no endpoints, because the limits at ±∞ are approached but never attained as extrema — the critical points dominate the limits. The third row shows a function with no critical values at all and no extrema; the derivative is negative everywhere, so the function decreases monotonically from ∞ toward 0.

Note the tie in row 1 and its handling: the answer lists two x-locations for the same minimum value. If a problem asks for "the minimum value," it's −3 once. If it asks "where does the minimum occur," both x = −1 and x = 2 are correct. The comparison table forces both value and location into view.

These four cases appear in more or less every standard optimization unit. Recognizing their shapes — polynomial with endpoints, polynomial on the real line, rational with a vertical asymptote, rational with horizontal asymptote limits — lets you sanity-check your computed answer against the function's expected global shape before submission. If your answer says "global max at x = 2, value 100" for x² − 4x + 3, the shape contradicts it immediately.

Optimization Word Problems: Turning Lines of Text Into a Single Variable

Applied maximization problems first require you to express the quantity to be optimized as a function of one variable — this is where most word-problem failures live. A fence problem with 100 meters of fencing enclosing a rectangular pen adjacent to a river needs no fence on one side, so 2y + x = 100 with area A = xy. Solving y = (100 − x)/2 gives A(x) = x(100 − x)/2 = 50x − x²/2 for x in [0, 100]. Then A′(x) = 50 − x = 0 gives x = 50, y = 25, area 1,250 m².

The setup step collapses multiple variables using the constraint equation, and every unknown besides the chosen variable must be eliminated this way. Choose the variable with the simplest expression from the constraint; here y came out as a clean fraction in x. If you picked y instead, the algebra stays correct but messier.

Then, and this is the boundary students skip, determine the domain from physical constraints. A pen's dimension can't be negative, and the total fencing bounds x ≤ 100. That's how the domain becomes a closed interval [0, 100], whereupon the endpoint check from Step 6 applies. The 1,250 m² answer is at x = 50, but a problem asking for the maximum area when dimensions must be at least 10 m would have you also compare A(10) and the interior max — the constrained interval matters.

Worked failure: a cylindrical can of fixed volume V = 500π cm³ with surface area A(r) = 2πr² + 2V/r minimized. A′(r) = 4πr − 2V/r² = 0 gives r³ = V/(2π) = 250, so r ≈ 6.3 cm. Note the cube root — V/(2π), not V/π. A common arithmetic error in this problem is forgetting the factor 2, which gives r ≈ 7.9 instead. The correct minimal surface area is about 380 cm² (using π = 3.14159; verify by direct substitution). Rounding π prematurely to 3 changes the answer by several percent.

Always end by checking the second derivative's sign at the critical point. For A(r) = 2πr² + 2V/r, A″(r) = 4π + 4V/r³ > 0 for r > 0, confirming a minimum. Without this check, a problem might ask for the "best" dimension and expect you to have proved which direction you're optimizing.

Common Mistakes, Edge Cases, and When the Method Fails

The method is reliable, but a handful of specific errors account for most wrong answers. Fixing those errors raises exam scores more than extra practice with the same method.

Mistake 1: Skipping endpoints. On any closed interval, endpoints are candidates regardless of the derivative. A problem like "find the maximum of x² − 2x on [0, 3]" has interior minimum 1 at x = 1, but the maximum is 3 at x = 3 — an endpoint, not a derivative solution. Students who never check endpoints return "no maximum exists," which is wrong.

Mistake 2: Forgetting discontinuous points. A function can be defined on a split domain and shoot to infinity near a hole. Check the denominator's zeros and any derivative-undefined domain points.

Mistake 3: Assuming the derivative equation has binary answers. Non-factoring polynomial derivatives might have irrational roots; solving 3x² − 6x − 4 = 0 gives x = 1 ± √21/3, both valid approximating 2.527 and −0.527. Miss them and the answer undercounts extrema.

Mistake 4: Confusing value and location. "The minimum is x = 2" is a category error; the minimum is f(2). Reader errors in exams suggest that location and value confusion costs points in free-response grading because the grader can't confirm which you meant.

Edge case: The function is not differentiable anywhere near the extremum. f(x) = |x| has a minimum at 0 with no derivative there, and any method based purely on f′ = 0 fails. Check the domain for such points.

Failure scenario: An unbounded function near a boundary. f(x) = tan x on (0, π) has no global maximum or minimum because the function slopes to ±∞ at each end. The method is correct; the conclusion is "no extrema." Report that.

When the method fails entirely: constraints that don't reduce. If a word problem has two unknowns and one equation, you must find another relation or state that the problem is underdetermined. Don't force the method — check that constraints reduce the system to one variable before starting.

The derivative-based method, in short, is a procedure for finding candidates. Whether a candidate is the global answer depends on domain, endpoints, and limits together, which is why the workflow insists on all four steps rather than stopping at the derivative roots.

FAQ

Does every critical point produce a maximum or minimum?

No. A critical point where the derivative doesn't change sign is neither — like x = 0 for f(x) = x⁴, where f′(x) = 4x³ changes sign, versus f(x) = x³ where f′(x) = 3x² is positive on both sides. The sign change is decisive, not the presence of a zero.

What's the difference between a local and a global maximum?

A local maximum beats neighboring points within a small interval; a global maximum beats every value on the domain. For f(x) = x³ − 3x² + 1 on [−1, 4], the local max at x = 0 has value 1, but the global max is 17 at x = 4 — an endpoint, showing that global answers can sit where the derivative is nonzero.

Can a function on a closed interval have no maximum?

No, provided it's continuous. The Extreme Value Theorem guarantees both a maximum and a minimum on a closed interval for any continuous function. The guarantee fails on open intervals and unbounded domains — f(x) = x on (0, 1) has neither. Continuous on a closed interval is the line that makes the guarantee unconditional.

Why do I get the wrong answer when I only check f′(x) = 0?

Because you're finding critical points, not answering the full question. Endpoints, asymptotic limits, and points of undefined derivative are legitimate candidates too. The x² − 2x example on [0, 3] shows the true maximum at an endpoint the derivative never flags — x = 3 gives 3 versus x = 1 giving only 1.

How do I handle a function with absolute values or other non-differentiable terms?

Split the domain at each non-differentiable point and run the method on each piece. For f(x) = |x² − 4| = |(x − 2)(x + 2)|, the pieces are x ≤ −2, −2 ≤ x ≤ 2, and x ≥ 2; each is a polynomial on its interval. Check the split points explicitly — they're the cusps where the derivative fails, but they're often minima.

What counts as the answer when two points tie for the global maximum?

Report both locations and the single value. For the [−1, 4] polynomial above, the global minimum value is −3 occurring at both x = −1 and x = 2. If asked "where," list both; if asked "what," give −3 once. Ties occur whenever the function returns to the same value at distinct points, common in polynomials with symmetric shapes.

Do calculators replace this method?

They verify it, not replace it. Desmos or a graphing calculator will show the shape, but exam answers typically require the derivative work. Use the calculator to sanity-check an answer — if your computed global max of 17 doesn't match the graph's peak, something in your table or endpoints is wrong. Calculators can mislead on open intervals where the graphic shows the approach but not the attained value.