Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Critical Points Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x3−3xx^3 - 3x. Learn more about finding critical points
  2. Type the interval to search in From a and To b. It is shaded on the graph.
  3. Read the critical points, then which of them are local maxima and local minima, each with its value. Learn more about reading the answer
  4. Read the highest and lowest value of ff on the closed interval [a,b][a, b], and where they occur. An end of the interval can win.
  5. How it was found names the test that classified each point.

Critical points
Critical points
x=−1,x=1\displaystyle x = -1,\quad x = 1
Local maxima
f(−1)=2\displaystyle f(-1) = 2
Local minima
f(1)=−2\displaystyle f(1) = -2
Highest value on [-3, 3]
18at x=3\displaystyle 18 \quad \text{at } x = 3
Lowest value on [-3, 3]
−18at x=−3\displaystyle -18 \quad \text{at } x = -3
How it was found

A critical point of f(x)=x3−3xf(x) = {x}^{3}-3 x is a point of its domain where f′(x)=0f'(x) = 0 or f′f' does not exist. Here f′(x)=3x2−3f'(x) = 3 {x}^{2}-3.

At x=−1x = -1, f′=0f' = 0 and f′′(−1)=−6f''(-1) = -6 is negative: the graph bends downward, a local maximum, f(−1)=2f(-1) = 2.

At x=1x = 1, f′=0f' = 0 and f′′(1)=6f''(1) = 6 is positive: the graph bends upward, a local minimum, f(1)=−2f(1) = -2.

ff is continuous on the closed interval [−3, 3][-3,\ 3], so it reaches a highest and a lowest value there. Compare ff at the two ends, f(−3)=−18f(-3) = -18 and f(3)=18f(3) = 18, with ff at the critical points; the largest and the smallest of these are the answers.

f(x)=x3−3xf\left(x\right)={x}^{3}-3 x


Finding critical points

DemoFind and classify critical points
Step 0 of 4
Type the function in the f(x)f(x) box and the interval to search in From a and To b. The calculator finds every critical point strictly between aa and bb, classifies each one, and marks them on the graph.

To see all the critical points of a function, choose a wide interval, such as −10-10 to 1010. To solve a problem that asks for the maximum and minimum on a given interval, type that interval.

A wave such as sin⁡(x)\sin(x) can have many critical points in a wide interval; the eight nearest to the middle are listed.

Reading the answer

  • Critical points lists the xx values where f′(x)=0f'(x) = 0 or f′f' does not exist.
  • Local maxima and Local minima give the ones that are peaks and valleys, written as f(x)=valuef(x) = \text{value}. A critical point that appears in neither list is neither.
  • Highest value and Lowest value are the absolute maximum and minimum of ff on the closed interval [a, b][a,\ b], with every xx where they are reached. They appear when ff is continuous on the whole interval.

  • On the graph a local maximum is an amber dot, a local minimum a navy dot, and a critical point that is neither is hollow. The small blue circles are the ends of the interval.

What a critical point is

    A critical point of ff is a point cc of its domain where either

  • f′(c)=0f'(c) = 0: the tangent is level, or
  • f′(c)f'(c) does not exist: a corner, a cusp or an upright tangent.

  • They matter because of Fermat's theorem: if ff has a local maximum or minimum at cc, then cc is a critical point. A peak or a valley cannot sit anywhere else.

    So the critical points are the complete list of candidates. For f(x)=x3−3xf(x) = x^3 - 3x, f′(x)=3x2−3=0f'(x) = 3x^2 - 3 = 0 gives x=−1x = -1 and x=1x = 1, and the peak and the valley are exactly there.
x3−3xx^3 - 3x: level tangents at the peak (−1,2)(-1, 2) and the valley (1,−2)(1, -2).

The first derivative test

    A candidate still has to be classified. The first derivative test looks at the sign of f′f' on each side of the critical point cc:

  • f′f' changes from positive to negative: ff rises, then falls. Local maximum.
  • f′f' changes from negative to positive: ff falls, then rises. Local minimum.
  • f′f' keeps its sign: ff carries on in the same direction. Neither.

  • The third case is real. For f(x)=x3f(x) = x^3, f′(0)=0f'(0) = 0, but f′(x)=3x2f'(x) = 3x^2 is positive on both sides: the graph levels off for an instant and keeps rising.

    This test works at corners too. ∣x∣|x| has no derivative at 00, but f′f' is −1-1 on the left and 11 on the right, so 00 is a local minimum.
x3x^3 at 00: a level tangent, and the graph keeps rising.
∣x−1∣+1|x - 1| + 1: a minimum at a corner, where no derivative exists.

The second derivative test

    When f′(c)=0f'(c) = 0 and the second derivative exists, there is a shortcut:

  • f′′(c)>0f''(c) > 0: the graph is cupped upward at cc. Local minimum.
  • f′′(c)<0f''(c) < 0: the graph is capped downward at cc. Local maximum.
  • f′′(c)=0f''(c) = 0: the test says nothing. Go back to the first derivative test.

  • For f(x)=x3−3xf(x) = x^3 - 3x, f′′(x)=6xf''(x) = 6x: f′′(−1)=−6f''(-1) = -6, a maximum; f′′(1)=6f''(1) = 6, a minimum.

    The inconclusive case can be anything: x4x^4 has a minimum at 00, −x4-x^4 a maximum, x3x^3 neither, and all three have f′′(0)=0f''(0) = 0. The calculator uses the second derivative test where it decides and the first derivative test otherwise, and says which.

Highest and lowest value on a closed interval

DemoHighest and lowest value on an interval
Step 0 of 4
A continuous function on a closed interval [a, b][a,\ b] always reaches a highest and a lowest value (the Extreme Value Theorem). They are found with the closed interval method:

1. Find the critical points inside (a, b)(a,\ b).
2. Work out ff at each of them, and at the two ends aa and bb.
3. The largest of these numbers is the absolute maximum, the smallest the absolute minimum.

Example: f(x)=x3−3xf(x) = x^3 - 3x on [−2, 2.5][-2,\ 2.5]. The candidates are f(−2)=−2f(-2) = -2, f(−1)=2f(-1) = 2, f(1)=−2f(1) = -2 and f(2.5)=8.125f(2.5) = 8.125. The highest value is 8.1258.125, at the right end; the lowest is −2-2, reached twice.

The ends must be checked. An absolute extreme at an end is usually not a critical point.
x3−3xx^3 - 3x on [−2,2.5][-2, 2.5]: the highest value is at the right end, the lowest at x=−2x = -2 and x=1x = 1.

When no highest or lowest value is given

The Extreme Value Theorem needs both of its conditions. If ff has a break inside the interval, or an end lies outside the domain, the calculator lists the critical points and local extremes but gives no highest or lowest value, and says why.

f(x)=1xf(x) = \dfrac{1}{x} on [−1, 1][-1,\ 1] is the standard example: near 00 the values run off to +∞+\infty and to −∞-\infty, so there is neither a highest nor a lowest.

The same care is needed on open or unbounded intervals. f(x)=x2f(x) = x^2 on all real numbers has a lowest value, 00, but no highest.

Using it for optimization problems

Optimization problems ask for the best value of some quantity: the largest area, the least cost, the shortest time. The method is always the same:

1. Write the quantity as a function of one variable.
2. Find the interval the variable is allowed to move in.
3. Find the critical points in that interval and compare the values there and at the ends.

Example: a rectangle with perimeter 2020 has sides xx and 10−x10 - x, so its area is A(x)=x(10−x)A(x) = x(10 - x) for xx between 00 and 1010. Type x(10 - x) with the interval 00 to 1010: the only critical point is x=5x = 5, a maximum, with area 2525. The best rectangle is a square.

Common mistakes

  • Assuming every critical point is a maximum or minimum. x3x^3 at 00 is neither.
  • Forgetting the points where f′f' does not exist. Corners and cusps are critical points.
  • Forgetting the ends of the interval. The absolute extreme is often there.
  • Reading f′′(c)=0f''(c) = 0 as "neither". It means the second derivative test is silent.
  • Giving xx when the value is asked, or the value when xx is asked. "Where" is x=cx = c; "what" is f(c)f(c).
  • Counting points outside the domain. 1x\dfrac{1}{x} has no critical point at 00, because 00 is not in its domain.