Maxima and minima

See a function, its slope f′ and its bending f″ stacked one above the other, with every turning point found and tested by the first and second derivative tests, the absolute maximum and minimum on an interval, and three optimisation stories (open box, fence by a river, closed can) with the working.

Keep it one tap away for everyday use.

Bookmark Maxima and minima?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Pick f(x)
  2. f, f′, f″
  3. Turns
  4. Tests
Nothing is uploadedWorks offline once open

Pick a function

f, f′ and f″ stacked

Critical points (where f′(x) = 0)

xf(x)f′ just left → rightf″(x)First testSecond test

Try this

  • Slide x across x³ − 3x: where f′ (middle) is above the axis, f climbs; where it is below, f falls. The turning points sit where f′ crosses zero.
  • Pick x³: f′ touches zero at 0 but does not change sign, so 0 is neither a maximum nor a minimum.
  • Pick x⁴: f″(0) = 0, so the second derivative test says nothing, but the first test still finds the minimum.
  • Pick x + 1/x: the local maximum (−2) is lower than the local minimum (2). "Local" means only near that point.
  • In the open box story, try different cuts: the box is biggest when the cut is one sixth of the sheet side.

Check yourself

Fresh numbers every time. Type a number or a fraction such as 3/4; nothing is saved or sent.

    What it shows

    A smooth curve turns round at the top of a hill (a local maximum) or the bottom of a valley (a local minimum). At those points the tangent is flat, so the derivative f′(x) is 0. This page draws f, f′ and f″ one above the other on the same x scale, so you can see the connection: where f climbs, f′ is above the axis; where f falls, f′ is below; where f turns, f′ crosses zero. And f″ tells you which way the curve bends, which is the second derivative test.

    The second view, Optimisation stories, uses the same idea on real problems: the biggest open box from a square sheet, the biggest field from a fixed length of fence, and the can that uses the least metal.

    It follows the application of derivatives in Class 12 maths (increasing and decreasing functions, maxima and minima). Start with derivative slope if f′ is new; afterwards riemann sums covers integration, and the graphing calculator finds turning points on any curve you draw.

    How to use it

    1. Turning points. Pick a function, or choose My own… and type one such as x^3 - 6x^2 + 9x + 1. Set the interval from a to b.
    2. Slide Look at x to move a cursor through all three graphs; the sentence under the picture says whether f is rising or falling and which way it bends there.
    3. Read the table: each critical point with f(x), the sign of f′ just left and right, f″(x), and what the two tests say.
    4. Read the absolute maximum and minimum on [a, b]: the page compares the values at both ends with the values at the critical points.
    5. Optimisation stories. Pick a story, type the size (sheet side, fence length or can volume) and slide the choice you can make (the cut, the width, the radius). The graph shows the quantity you want to make biggest or smallest, with the best point in green, and the working lists each step.

    The two tests

    • First derivative test: if f′ goes from + to − as x passes c, f has a local maximum at c; from − to + is a local minimum; no change of sign means neither (like x³ at 0).
    • Second derivative test: at a point where f′(c) = 0, f″(c) < 0 means a maximum (the curve bends down) and f″(c) > 0 a minimum. If f″(c) = 0 the test fails and you go back to the first test (like x⁴ at 0).

    Worked example

    For f(x) = x³ − 3x, f′(x) = 3x² − 3 = 0 at x = −1 and x = 1. f″(x) = 6x is −6 at x = −1 (a local maximum, f = 2) and 6 at x = 1 (a local minimum, f = −2). On the interval [−2.5, 2.5] the ends give f(−2.5) = −8.125 and f(2.5) = 8.125, so the absolute maximum is 8.125 at the right end, bigger than the local maximum.

    Open box: from a 30 cm sheet, cutting squares of side x gives V = x(30 − 2x)². V′ = (30 − 2x)(30 − 6x) = 0 at x = 5, where V = 5 × 20 × 20 = 2000 cm³. Can: for 500 cm³ the least metal is about 348.73 cm², with r ≈ 4.30 cm and the height equal to the diameter.

    Check yourself

    Five questions with fresh numbers: a critical point of a quadratic, a local maximum of a cubic, a second derivative test, the best cut for a box and the biggest fenced area. Nothing is saved.

    FAQ

    Why can a local maximum be lower than a local minimum? “Local” only compares nearby points. For x + 1/x the hill at x = −1 has height −2 and the valley at x = 1 has height 2.

    Why check the ends of the interval? On a closed interval the biggest or smallest value can sit at an end, where f′ need not be zero.

    Is this from my textbook? It covers the standard school topics with its own examples and numbers. It is an independent study aid.

    Where the numbers come from

    • Standard calculus: critical points, the first and second derivative tests, absolute extremes on a closed interval, and classic optimisation problems (open box, three-sided fence, closed cylinder). Written for fibub; no textbook text, figures or exercises are used, and the sizes are made-up examples.
    • Checked against sympy 1.14: critical points, function values and second derivatives of every ready-made function (solveset, diff) and the optimum of each story (solve).

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Maxima and minima

    1. Add #1184 Maxima and minima finder Details on GitHub

    Every change to fibub

    Related tools

    Graphing calculator #T369 Plot y = f(x), any equation in x and y, polar r(θ) and parametric (x(t), y(t)) curves together, with sliders, zoom, tap-to-trace, roots, turning points and crossings, plus 3D surfaces z = f(x, y). Download PNG, SVG or CSV. Runs in your browser. Symbolic algebra #T370 Type an expression and simplify, expand or factor it, differentiate it, integrate it (with definite integrals), or substitute values. Exact fractions, answers you can copy as SymPy or LaTeX, and an honest 'could not integrate' when it is out of reach. Checked against sympy. Derivative slope #L84 Drag two points on a curve and shrink the gap h: the secant line turns into the tangent and its slope settles on f′(x). See the slope graph f′(x) drawn under f(x), a table of slopes from both sides, first-principles working for xⁿ and sin x, corners where there is no derivative, and fresh practice questions. Riemann sums #L85 See the area under a curve filled with strips. Pick left, right, midpoint or trapezium sums, slide the number of strips n and watch the sum close in on the exact integral, with the error. Then see why ∫ f dx has a + C, and shade the area between two curves with the crossing points found for you. Chain rule gears #L303 Build a function out of two or three links, such as sin(3x) or (sin 2x)², and turn the x gear. Each gear turns by its own rate, and dy/dx is the product of the rates, with the formula, live numbers, a small-nudge check, the graph with its tangent and fresh practice questions. Derivative steps #L304 Type a function such as x² sin x, (x + 1)/(x − 1), sin(x²) or xˣ and see its derivative with every step: which rule is used at each part (power, product, quotient, chain, eˣ, ln, trig, inverse trig, logarithmic differentiation), worked from the inside out, then f and f′ drawn together with the tangent at any point. Related rates #L306 Play three classic related-rates stories (a ladder sliding down a wall, a balloon being blown up, a cone-shaped tank filling with water), change the sizes and speeds, and see the link equation differentiated with respect to time with your numbers filled in, plus a graph of the unknown rate as time goes on.