Maxima and Minima Calculator

Type a function, and optionally an interval, to find its extreme values.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Left endaa

Leave both ends empty for local extrema only; or type an interval to find the absolute extrema on it.

Right endbb

A number larger than the left end, or empty.

Try

Result

You enteredf(x)=x2f(x) = x^{2}

local minimum (0,0)\displaystyle \text{local minimum } \left(0, 0\right)
Show the work
  1. First derivative

    Differentiate x2x^{2} with the usual rules (the derivative calculator shows each one).

    f′(x)=2xf'(x) = 2x
  2. Critical points: f'(x) = 0

    Set f′(x)f'(x) equal to 0 and solve.

    f′(x)=2x=0  ⇒  x=0\begin{aligned} f'(x) &= 2x \\ &= 0 \;\Rightarrow\; x \\ &= 0 \end{aligned}
  3. Sign chart of the first derivative

    The critical points cut the line into intervals; f′f' keeps one sign on each, so test one point in each interval.

    IntervalTest pointf′(test)Sign(−∞,0)−1−2− (decreasing)(0,∞)12+ (increasing)\begin{array}{c|c|c|l} \text{Interval} & \text{Test point} & f'(\text{test}) & \text{Sign} \\ \hline \left(-\infty, 0\right) & -1 & -2 & -\ (\text{decreasing}) \\ \left(0, \infty\right) & 1 & 2 & +\ (\text{increasing}) \end{array}
  4. First derivative test

    Where f′f' changes from positive to negative the graph turns from rising to falling (a local maximum); from negative to positive, a local minimum.

    Using f′ changes from + to −⇒local max;− to +⇒local minf' \text{ changes from } + \text{ to } - \Rightarrow \text{local max};\quad - \text{ to } + \Rightarrow \text{local min}

    local min at (0,0)\text{local min at } \left(0, 0\right)
  5. Second derivative test

    As a check, the second derivative f′′(x)=2f''(x) = 2 at each critical point gives the same verdict: positive means the graph curves upward (a minimum), negative downward (a maximum).

    Using f′(c)=0 and f′′(c)>0⇒local min;f′′(c)<0⇒local maxf'(c) = 0 \text{ and } f''(c) > 0 \Rightarrow \text{local min};\quad f''(c) < 0 \Rightarrow \text{local max}

    f′′(0)=2>0f''(0) = 2 > 0
  6. Result

    The extreme values of x2x^{2} are listed below.

    local minimum (0,0)\text{local minimum } \left(0, 0\right)
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
(0, 0)
  • y = x^2
  • (0, 0)

Points on the graph

  • y = x^2: zero (0, 0)
  • y = x^2: minimum (0, 0)

Worked examples