Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
5.1 Important theorems
5.2 1st derivative test
5.2.1 Extrema
5.2.2 On critical points
5.3 2nd derivative test
5.4 Graphs & curve sketching
5.5 Optimization
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
5.2.1 Extrema
Achievable AP Calculus AB
5. Analytical uses
5.2. 1st derivative test
Our AP Calculus AB course is currently in development and is a work-in-progress.

Extrema

9 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • How to find critical points of various functions
  • How to use the 1st derivative test (and sign charts) to identify relative/local extrema

In the previous section, you learned how to find the highest and lowest values of a function on a closed interval using the extreme value theorem. The method was to compare the function values at:

  • the endpoints of the interval, and
  • any critical points inside the interval.

The 1st derivative test gives you a different tool: it helps you classify critical points (anywhere in the domain) as relative/local maxima, relative/local minima, or neither.

Absolute vs. relative extrema

A global (absolute) extremum is the highest or lowest value a function attains over its entire domain.

For example, consider f(x)=x2.

The vertex (0,0) is the global/absolute minimum because it’s the lowest point on the entire domain of all real numbers. It’s also a relative/local minimum because, compared to nearby points, it’s still lower.

On the other hand, x2 has no absolute maximum on its full domain, because as x→±∞, x2→∞.

First derivative test

Here’s how to find and classify extrema using the 1st derivative test:

1. Find critical points by setting f′(x)=0 or by finding where f′(x) is undefined.

  • Important: x=a is only a critical point if it’s in the domain of f(x) (so f(a) must be defined). The next page will discuss this in more detail, but it’s worth keeping in mind now.

2. Create a sign diagram or chart for f′(x) using intervals around each critical point. Determine the sign of f′(x) before and after each critical point by testing a point in each interval.

3. Interpret each critical point

  • If f′(x) changes from positive to negative at a critical point, then f(x) increases (↗) and then decreases (↘). The critical point is a local/relative maximum (a peak).
  • If f′(x) changes from negative to positive at a critical point, then f(x) decreases (↘) and then increases (↗). The critical point is a local/relative minimum (a valley).
  • If there is no sign change, the critical point is not an extremum. For example, y=x3 is flat at (0,0), but the function keeps increasing through that point.

Examples

We’ll start with a basic polynomial.

  1. Classify the extrema on

g(x)=(x−2)2(x+1)3

Solution

1. Find critical points

Using the product rule,

g′(x)=(x−2)2⋅3(x+1)2+(x+1)3⋅2(x−2)

=(x−2)(x+1)2[3(x−2)+2(x+1)]

=(x−2)(x+1)2(5x−4)

Since g′(x) is a polynomial, it’s defined for all real x. To find critical points, solve g′(x)=0:

(x−2)(x+1)2(5x−4)=0

x=2,−1,54​

2. Create a sign diagram or chart

Here it’ll be displayed as a sign chart, but a sign diagram with the intervals displayed left to right is usually easier to read (especially when you graph later).

Interval Test point x= Sign of g′(x) g(x) behavior
(∞,−1) −2 + ↗
(−1,54​) 0 + ↗
(54​,2) 1 − ↘
(2,∞) 3 + ↘

3. Interpret

From (∞,−1), g′(x) is positive, so g(x) is increasing.

From (−1,54​), g′(x) is still positive, so g(x) continues increasing. Since there’s no sign change at x=−1, there is no relative maximum or minimum at x=−1.

Around x=54​, g′(x) changes from positive to negative. So g(x) increases and then decreases, which means there is a relative maximum at x=54​.

Around x=2, g′(x) changes from negative to positive. So g(x) decreases and then increases, which means there is a relative minimum at x=2.

Because g(x) is a polynomial with an odd degree, it has no absolute extrema. As x→∞, g(x)→∞, and as x→−∞, g(x)→−∞.

AP tip:

In addition to a sign chart for f′(x), you must state what it implies about f(x) (increasing or decreasing) to justify a relative max, min, or neither at a critical point. A sign chart alone won’t be enough.

It suffices to make a statement such as “there is a relative maximum at x=1 because f(x) is increasing and then decreasing” or “because f′(x) changes from positive to negative.”

Next, let’s work with a rational function.

  1. Classify the extrema on

f(x)=x2+1x​

Solution

(spoiler)

1. Find critical points

f′(x)=(x2+1)2(x2+1)(1)−x(2x)​

=(x2+1)2−x2+1​

=(x2+1)2−(x2−1)​

=−(x2+1)2(x+1)(x−1)​

A rational function is undefined where its denominator is zero. Here, the denominator of f′(x) is (x2+1)2, and since (x2+1)2>0 for all real x, f′(x) is defined everywhere.

So the critical points come only from f′(x)=0, which happens when the numerator is zero. The critical points are x=1,−1.

2. Sign chart

Interval Test point x= Sign of f′(x) f(x) behavior
(∞,−1) −2 − ↘
(−1,1) 0 + ↗
(1,∞) 3 − ↘

3. Interpret

Around x=−1, f′(x) changes from negative to positive. So f(x) decreases and then increases, and there is a relative minimum at x=−1.

Around x=1, f′(x) changes from positive to negative. So f(x) increases and then decreases, and there is a relative maximum at x=1.

Next, we’ll look at a function where f′(a) is undefined.

  1. Classify the extrema on

f(x)=∣x2−1∣

Solution

(spoiler)

Rewriting f(x) as a piecewise function,

f(x)=⎩⎨⎧​x2−1−(x2−1)x2−1​ if x<−1 if −1<x<1 if x>1​

This means the derivative is

f′(x)=⎩⎨⎧​2x−2x2x​ if x<−1 if −1<x<1 if x>1​

f′(x)=0 when x=0.

To find where f′(x) is undefined (where f is not differentiable), focus on the breakpoints of the piecewise definition: x=−1 and x=1. At a breakpoint, the derivative exists only if the left-hand derivative and right-hand derivative match.

For x=−1:

Left:

x→−1−lim​f(x)=2(−1)=−2

Right:

x→−1+lim​f(x)=−2(−1)=2

The two one-sided values don’t agree, so the derivative doesn’t exist at x=−1 (so f′(x) is undefined there). But f(−1) exists (it equals 0), so x=−1 is a critical point.

Similarly, for x=1,

Left:x→1−lim​f(x)=−2(1)=−2

Right:x→1+lim​f(x)=2(1)=2

Since the two sides don’t agree, f′(1) is undefined and x=1 is also a critical point.

We have three critical points: x=−1,0,1, so there are 4 intervals where we can test the sign of f′(x).

2. Sign chart

Interval Test point x= Sign of f′(x) f(x) behavior
(∞,−1) −2 − ↘
(−1,0) −0.5 + ↗
(0,1) 0.5 − ↘
(1,∞) 2 + ↗

3. Interpret

Around x=−1, f′(x) changes from negative to positive → relative minimum.

Around x=0, f′(x) changes from positive to negative → relative maximum.

Around x=1, f′(x) changes from negative to positive → relative minimum.

Lastly, we’ll discuss critical points that occur periodically. Trig functions often behave this way.

  1. Classify all extrema on

f(x)=esin(x)

Solution

(spoiler)

1. Find critical points

f′(x)=esin(x)⋅cos(x)

To solve f′(x)=0, we need

  • esin(x)=0 or
  • cos(x)=0.

Since eanything>0 for all real inputs, esin(x) is never 0. So the only way for f′(x)=0 is cos(x)=0.

cos(x)=0 when x=2π​,23π​,25π​, etc. These critical points repeat every π.

2. Sign chart

Although f(x) repeats forever, we’ll limit the sign chart to these intervals: (−2π​,2π​),(2π​,23π​),(23π​,25π​).

Instead of testing points, we can determine the sign of f′(x) by reasoning:

f′(x)=esin(x)⋅cos(x)

  • esin(x) is always positive.
  • So the sign of f′(x) is the same as the sign of cos(x).

On (−2π​,2π​), cos(x)>0 (quadrants I and IV), so f′(x)>0.

On (2π​,23π​), cos(x)<0 (quadrants II and III), so f′(x)<0.

On (23π​,25π​), cos(x)>0 again, so f′(x)>0.

Here is the organized sign chart:

Interval Sign of f′(x) f(x) behavior
(−2π​,2π​) + ↗
(2π​,23π​) − ↘
(23π​,25π​) + ↗

3. Interpret

Around x=2π​, f(x) increases and then decreases → relative max.

Around x=23π​, f(x) decreases and then increases → relative min.

Around x=25π​, f(x) increases and then decreases → relative max.

The critical points will continue to alternate between relative maxima and minima.

  • Find critical points by setting f′(x)=0 or finding where f′(x) is undefined.

  • Use a sign diagram or chart to display the sign of f′(x) in each interval around the critical points.

  • Interpret the behavior of f(x) (increasing or decreasing) based on the sign of f′(x) to justify if a critical point is a relative max or min.

Sign up for free to take 5 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Extrema

What you’ll learn:

  • How to find critical points of various functions
  • How to use the 1st derivative test (and sign charts) to identify relative/local extrema

In the previous section, you learned how to find the highest and lowest values of a function on a closed interval using the extreme value theorem. The method was to compare the function values at:

  • the endpoints of the interval, and
  • any critical points inside the interval.

The 1st derivative test gives you a different tool: it helps you classify critical points (anywhere in the domain) as relative/local maxima, relative/local minima, or neither.

Absolute vs. relative extrema

A global (absolute) extremum is the highest or lowest value a function attains over its entire domain.

For example, consider f(x)=x2.

The vertex (0,0) is the global/absolute minimum because it’s the lowest point on the entire domain of all real numbers. It’s also a relative/local minimum because, compared to nearby points, it’s still lower.

On the other hand, x2 has no absolute maximum on its full domain, because as x→±∞, x2→∞.

First derivative test

Here’s how to find and classify extrema using the 1st derivative test:

1. Find critical points by setting f′(x)=0 or by finding where f′(x) is undefined.

  • Important: x=a is only a critical point if it’s in the domain of f(x) (so f(a) must be defined). The next page will discuss this in more detail, but it’s worth keeping in mind now.

2. Create a sign diagram or chart for f′(x) using intervals around each critical point. Determine the sign of f′(x) before and after each critical point by testing a point in each interval.

3. Interpret each critical point

  • If f′(x) changes from positive to negative at a critical point, then f(x) increases (↗) and then decreases (↘). The critical point is a local/relative maximum (a peak).
  • If f′(x) changes from negative to positive at a critical point, then f(x) decreases (↘) and then increases (↗). The critical point is a local/relative minimum (a valley).
  • If there is no sign change, the critical point is not an extremum. For example, y=x3 is flat at (0,0), but the function keeps increasing through that point.

Examples

We’ll start with a basic polynomial.

  1. Classify the extrema on

g(x)=(x−2)2(x+1)3

Solution

1. Find critical points

Using the product rule,

g′(x)=(x−2)2⋅3(x+1)2+(x+1)3⋅2(x−2)

=(x−2)(x+1)2[3(x−2)+2(x+1)]

=(x−2)(x+1)2(5x−4)

Since g′(x) is a polynomial, it’s defined for all real x. To find critical points, solve g′(x)=0:

(x−2)(x+1)2(5x−4)=0

x=2,−1,54​

2. Create a sign diagram or chart

Here it’ll be displayed as a sign chart, but a sign diagram with the intervals displayed left to right is usually easier to read (especially when you graph later).

Interval Test point x= Sign of g′(x) g(x) behavior
(∞,−1) −2 + ↗
(−1,54​) 0 + ↗
(54​,2) 1 − ↘
(2,∞) 3 + ↘

3. Interpret

From (∞,−1), g′(x) is positive, so g(x) is increasing.

From (−1,54​), g′(x) is still positive, so g(x) continues increasing. Since there’s no sign change at x=−1, there is no relative maximum or minimum at x=−1.

Around x=54​, g′(x) changes from positive to negative. So g(x) increases and then decreases, which means there is a relative maximum at x=54​.

Around x=2, g′(x) changes from negative to positive. So g(x) decreases and then increases, which means there is a relative minimum at x=2.

Because g(x) is a polynomial with an odd degree, it has no absolute extrema. As x→∞, g(x)→∞, and as x→−∞, g(x)→−∞.

AP tip:

In addition to a sign chart for f′(x), you must state what it implies about f(x) (increasing or decreasing) to justify a relative max, min, or neither at a critical point. A sign chart alone won’t be enough.

It suffices to make a statement such as “there is a relative maximum at x=1 because f(x) is increasing and then decreasing” or “because f′(x) changes from positive to negative.”

Next, let’s work with a rational function.

  1. Classify the extrema on

f(x)=x2+1x​

Solution

(spoiler)

1. Find critical points

f′(x)=(x2+1)2(x2+1)(1)−x(2x)​

=(x2+1)2−x2+1​

=(x2+1)2−(x2−1)​

=−(x2+1)2(x+1)(x−1)​

A rational function is undefined where its denominator is zero. Here, the denominator of f′(x) is (x2+1)2, and since (x2+1)2>0 for all real x, f′(x) is defined everywhere.

So the critical points come only from f′(x)=0, which happens when the numerator is zero. The critical points are x=1,−1.

2. Sign chart

Interval Test point x= Sign of f′(x) f(x) behavior
(∞,−1) −2 − ↘
(−1,1) 0 + ↗
(1,∞) 3 − ↘

3. Interpret

Around x=−1, f′(x) changes from negative to positive. So f(x) decreases and then increases, and there is a relative minimum at x=−1.

Around x=1, f′(x) changes from positive to negative. So f(x) increases and then decreases, and there is a relative maximum at x=1.

Next, we’ll look at a function where f′(a) is undefined.

  1. Classify the extrema on

f(x)=∣x2−1∣

Solution

(spoiler)

Rewriting f(x) as a piecewise function,

f(x)=⎩⎨⎧​x2−1−(x2−1)x2−1​ if x<−1 if −1<x<1 if x>1​

This means the derivative is

f′(x)=⎩⎨⎧​2x−2x2x​ if x<−1 if −1<x<1 if x>1​

f′(x)=0 when x=0.

To find where f′(x) is undefined (where f is not differentiable), focus on the breakpoints of the piecewise definition: x=−1 and x=1. At a breakpoint, the derivative exists only if the left-hand derivative and right-hand derivative match.

For x=−1:

Left:

x→−1−lim​f(x)=2(−1)=−2

Right:

x→−1+lim​f(x)=−2(−1)=2

The two one-sided values don’t agree, so the derivative doesn’t exist at x=−1 (so f′(x) is undefined there). But f(−1) exists (it equals 0), so x=−1 is a critical point.

Similarly, for x=1,

Left:x→1−lim​f(x)=−2(1)=−2

Right:x→1+lim​f(x)=2(1)=2

Since the two sides don’t agree, f′(1) is undefined and x=1 is also a critical point.

We have three critical points: x=−1,0,1, so there are 4 intervals where we can test the sign of f′(x).

2. Sign chart

Interval Test point x= Sign of f′(x) f(x) behavior
(∞,−1) −2 − ↘
(−1,0) −0.5 + ↗
(0,1) 0.5 − ↘
(1,∞) 2 + ↗

3. Interpret

Around x=−1, f′(x) changes from negative to positive → relative minimum.

Around x=0, f′(x) changes from positive to negative → relative maximum.

Around x=1, f′(x) changes from negative to positive → relative minimum.

Lastly, we’ll discuss critical points that occur periodically. Trig functions often behave this way.

  1. Classify all extrema on

f(x)=esin(x)

Solution

(spoiler)

1. Find critical points

f′(x)=esin(x)⋅cos(x)

To solve f′(x)=0, we need

  • esin(x)=0 or
  • cos(x)=0.

Since eanything>0 for all real inputs, esin(x) is never 0. So the only way for f′(x)=0 is cos(x)=0.

cos(x)=0 when x=2π​,23π​,25π​, etc. These critical points repeat every π.

2. Sign chart

Although f(x) repeats forever, we’ll limit the sign chart to these intervals: (−2π​,2π​),(2π​,23π​),(23π​,25π​).

Instead of testing points, we can determine the sign of f′(x) by reasoning:

f′(x)=esin(x)⋅cos(x)

  • esin(x) is always positive.
  • So the sign of f′(x) is the same as the sign of cos(x).

On (−2π​,2π​), cos(x)>0 (quadrants I and IV), so f′(x)>0.

On (2π​,23π​), cos(x)<0 (quadrants II and III), so f′(x)<0.

On (23π​,25π​), cos(x)>0 again, so f′(x)>0.

Here is the organized sign chart:

Interval Sign of f′(x) f(x) behavior
(−2π​,2π​) + ↗
(2π​,23π​) − ↘
(23π​,25π​) + ↗

3. Interpret

Around x=2π​, f(x) increases and then decreases → relative max.

Around x=23π​, f(x) decreases and then increases → relative min.

Around x=25π​, f(x) increases and then decreases → relative max.

The critical points will continue to alternate between relative maxima and minima.

Key points
  • Find critical points by setting f′(x)=0 or finding where f′(x) is undefined.

  • Use a sign diagram or chart to display the sign of f′(x) in each interval around the critical points.

  • Interpret the behavior of f(x) (increasing or decreasing) based on the sign of f′(x) to justify if a critical point is a relative max or min.