Access this content offline
Omniguides
Skip to the reading

Maximinima

This original textbook reading covers part of the AP topic. Follow the AP course outline for complete topic instruction and practice.

This reading includes verified answer corrections and explicitly stated clarifications.

When derivatives equal zero

When a derivative equals zero, the tangent line is horizontal. This gives us a candidate for a local maximum or minimum, but it does not guarantee one: y = x³ has a horizontal tangent at 0 and keeps increasing.

A ball at maximum height has zero vertical velocity in a differentiable motion model. More generally, a local extremum at an interior point of a differentiable function has derivative 0. Extrema can also occur where the derivative does not exist, as with |x| at 0.

Absolute maxima and minima

On a closed interval, absolute extrema may occur at interior critical points or at endpoints. Interior critical points are points in the domain where f′ = 0 or f′ does not exist. The endpoints are separate candidates for the absolute-extrema test; compare the function values at all of these candidates.

Example Problem 6.1.1

Find the absolute maximinima values and where they occur of the function f(x)=x3-6x2+9x-2 on the closed interval [0,4].

Our first step is to find the points where the derivative equals zero.​
​
f′(x)=3x2-12x+9gggg=3(x2-4x+3)gggg=3(x-3)(x-1)x=3,gx=1​

 

Our two interior critical points, x = 1 and x = 3, lie in the interval. We also test the endpoints x = 0 and x = 4. These four candidates—not four interior critical points—are the values to compare for absolute extrema.

f(0)=0-0-0-2=-2

f(1)=1-6+9-2=2

f(3)=27-54+27-2=-2

f(4)=64-96+36-2=2

We can see from our calculations that f(0) and f(3) are both absolute minimums since they share the same value. Similarly, f(1) and f(4) are both absolute maximums. This is why it is important to take boundary conditions into account!

Interactive 6.1.1 Maximinima of sin(πx)/πx

Interactive 6.1.1 Maximinima of sin(πx)/πx
Read all original figure notes

Points where derivative = 0

For f(x) = sin(πx)/(πx) on [0.5,3], setting f′(x) = 0 gives πx cos(πx) − sin(πx) = 0. The two solutions are x ≈ 1.43029665 and x ≈ 2.45902403, not 1.5 and 2.5. They are an interior local minimum and local maximum. Where cosine is nonzero, solve tan(πx) = πx with a graph or numerical solver.

Endpoint candidate

To find absolute extrema on [0.5,3], compare the values at the two interior critical numbers and at both endpoints 0.5 and 3. The absolute maximum here occurs at x = 0.5. An endpoint is a candidate for an absolute extremum; it is not an interior critical number merely because it is an endpoint.

Refer to interactive 6.1.1 to visualize the process we just went through in Example 6.1.1. Notice the difference between absolute maximum and relative or local maximum.

What if we were asked to find just the critical points and label them “local maximum” or “local minimum”? Would it be feasible to take the derivative, find all the zeroes, and then plug ALL the zeroes back into the original function and calculate the values? Sure, it’s possible, but it would be time consuming. You might ask, oh how can I find out really easily if a point is a local maximum or local minimum? For this, we will need the help of the second derivative. Do you remember what the second derivative tells us about the original function? That’s right! Concavity. You are smart!

At a stationary point c where f′(c) = 0, a positive second derivative gives a strict local minimum and a negative second derivative gives a strict local maximum. If f′′(c) = 0 or does not exist, this test is inconclusive; check the first derivative or concavity on nearby intervals.

Example Problem 6.1.2

Find and label all the critical x-values with either “local maxima” or “local minima” of the function f(x)=sin(x2) on the closed interval [0,π] .

As always, we find the derivative first

f′(x)=2x⋅cos(x2)​
​
The derivative equals zero when 2x=0 or cos(x2)=0. We know from our unit circle that cos(x)=0 when x=(2n+1)⋅π/2 , with n being whole numbers≥0 . Therefore, cos(x2)=0 on the square root of these intervals, but how many n’s do we count?

Well, we know that the upper limit of our interval [0,π] is x=π, so we stop before we hit cos(π2) . Let’s do some quick mental math to see how many critical points we are working with. Notice that after x = 0, the 2x term in the derivative has no effect on the critical points.

​
0≤π2≤π20≤3π2≤π20≤5π2≤π20≤7π2d≤dπ2

So we have about 3 critical points, plus 0, which makes 4. π does not count because cos(π2)≠0.

So which ones are local maximum and which ones are local minimum? Let’s take the second derivative and find out.

f′′(x)=2cos(x2)-4x2sin(x2)

This may look daunting, and you might be thinking, “let’s just plug the critical points into the original function” but remember, we only need to know whether the second derivative is positive or negative. We do not need to solve for its value, so we can estimate. Let’s start with x = 0, the easiest.

f′′(0)=2⋅1-0=Positive (Concave up. We are at a minimum)

f′′(π2)=0-Big Number

(We get a large negative number. Concave down. We are at a maximum)

Notice that cos(x2) will always be 0 at the critical points because that is the derivative, so for the second derivative we only need to worry about the sine term, whether it is positive or negative.

f′′(3π2)=0-Big Negative Number

(3π2 is between quadrants III and IV, where the sine function is negative. Two negatives make a positive! This means concave up. We are at a minimum).

f′′(5π2)=0-Big Positive Number

(Subtracting a big positive number from 0 gives a big negative number. Concave down. We are at a maximum).

So in summary:

​
df(0)=local min

f(π2)=local max

f(3π2)=local min

f(5π2)=local max

Points of Inflection

An inflection point is a point on a continuous graph where the concavity changes. A zero or undefined second derivative can give us a candidate, but we must check the concavity on each side. For x⁴, f′′(0) = 0 and no concavity change occurs.

  • The derivative changes. If it was increasing before, it will now start to decrease and likewise, if it was decreasing before, it will start to increase.
  • The concavity changes. If the function was concave up before the point of inflection, it will now be concave down, and vice-versa.

Caution: if the derivative equals zero at a point of inflection, then there is no local maximum or minimum at that point! This is another advantage to taking the second derivative of a function to make sure you are at a local maximum or minimum. It helps us see through a function’s tricks.

Pop Quiz 6.1.1 Maximinima

Question 1 of 5 · 0 correct

How many critical points are there of the function 2sin(2x) from the interval [-π,π] ?

Select one answer.
Glossary and deeper reading · 5 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Velocity in calculus

    In one-dimensional motion, velocity is the derivative of position with respect to time. Its sign records direction relative to the chosen positive axis. For example, s(t)=t²−4t meters gives velocity 2t−4 meters per second. Speed is the magnitude of velocity and therefore cannot be negative.

    Read more: 4.2 · Velocity in calculus →

  • Differentiability

    Differentiability means that a function has a finite derivative at the point under discussion. Differentiability at a point implies continuity there, but continuity alone does not imply differentiability. For example, |x| is continuous at 0 but its left and right tangent slopes differ, so it is not differentiable there. Corners, cusps, vertical tangents, and discontinuities can prevent a finite derivative.

    Read more: 2.4 · Differentiability →

  • Absolute extremum

    An absolute extremum is the greatest or least function value on the domain or interval under discussion. The comparison includes every allowed input, including included endpoints. For example, x² on [−1,2] has absolute maximum 4 at x=2 and absolute minimum 0 at x=0. An absolute extremum must be attained rather than merely approached.

    Read more: 5.5 · Absolute extremum →

  • Interval

    An interval is a set of real numbers containing every number between any two of its members. Parentheses exclude an endpoint, while square brackets include it. For example, (1,4] includes 4 and every number between 1 and 4, but excludes 1. An infinite endpoint always uses a parenthesis because infinity is not a real endpoint.

  • Critical point

    A critical number is an input in the function’s domain where its derivative is zero or does not exist. The corresponding point on the graph is called a critical point. For example, x³ has a critical number at 0, but it has no local maximum or minimum there. Critical numbers are candidates for extrema and need further analysis; inputs outside the domain are excluded.

    Read more: 5.2 · Critical point →

Search lessons, terms and problems