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)=x3−3xf(x) = x^{3} - 3x

local maximum (−1,2), local minimum (1,−2)\displaystyle \text{local maximum } \left(-1, 2\right),\ \text{local minimum } \left(1, -2\right)
Show the work
  1. First derivative

    Differentiate x3−3xx^{3} - 3x with the usual rules (the derivative calculator shows each one).

    f′(x)=3x2−3f'(x) = 3x^{2} - 3
  2. Critical points: f'(x) = 0

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

    f′(x)=3x2−3=0  ⇒  3(x−1)(x+1)=0  ⇒  x=−1, x=1f'(x) = 3x^{2} - 3 = 0 \;\Rightarrow\; 3\left(x - 1\right)\left(x + 1\right) = 0 \;\Rightarrow\; x = -1,\ x = 1
  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(−∞,−1)−29+ (increasing)(−1,1)0−3− (decreasing)(1,∞)29+ (increasing)\begin{array}{c|c|c|l} \text{Interval} & \text{Test point} & f'(\text{test}) & \text{Sign} \\ \hline \left(-\infty, -1\right) & -2 & 9 & +\ (\text{increasing}) \\ \left(-1, 1\right) & 0 & -3 & -\ (\text{decreasing}) \\ \left(1, \infty\right) & 2 & 9 & +\ (\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 max at (−1,2), local min at (1,−2)\text{local max at } \left(-1, 2\right),\ \text{local min at } \left(1, -2\right)
  5. Second derivative test

    As a check, the second derivative f′′(x)=6xf''(x) = 6x 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′′(−1)=−6<0, f′′(1)=6>0f''(-1) = -6 < 0,\ f''(1) = 6 > 0
  6. Result

    The extreme values of x3−3xx^{3} - 3x are listed below.

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

Points on the graph

  • y = x^3 - 3x: zero (-1.732051, 0)
  • y = x^3 - 3x: zero (0, 0)
  • y = x^3 - 3x: zero (1.732051, 0)
  • y = x^3 - 3x: maximum (-1, 2)
  • y = x^3 - 3x: minimum (1, -2)

Worked examples