AP® CALCULUS AB & BC · UNIT 5

Connecting a Function and Its Derivatives

Match a function to its first and second derivatives. Read the same input across three graphs to explain where the function rises, turns, or changes concavity.

Topic 5.9 study notes4 worked examples · 8 practice questionsUpdated 10 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. Read the three levels of a function

Topic 5.9 connects the visible features of a function and its derivatives at the same input. Read the height on one derivative graph as the tangent slope on the graph before it.

From the function to its slope

f(x) is the function’s height. The height f′(x)=dfdx on the first derivative graph gives the tangent slope of f at that input.

From the slope to the bend

The height f″(x)=df′dx gives the tangent slope of f′. Its sign on an interval describes how the slopes of f change.

Read derivative evidence on intervals and at points
EvidenceWhat it establishes
f′>0 on an intervalf is increasing there.
f′<0 on an intervalf is decreasing there.
f′(c)=0f has a horizontal tangent at c. Check nearby signs to classify the point.
f′(c) is undefinedIf c is in the interior of the domain, it is a critical input. Look for features such as a corner or a vertical tangent.
f″>0 on an intervalf′ increases and f is concave up there.
f″<0 on an intervalf′ decreases and f is concave down there.
f″ changes sign across cIf f is continuous at c, its graph has an inflection at (c,f(c)).

Apply the sign rules on open intervals where the relevant derivative exists. For a derivative test at a candidate input, check the function’s domain and the behavior immediately on each side.

2. Combine direction and concavity

Four combinations when the signs hold on an interval
Signs of f′ and f″What f does
f′>0, f″>0Increases and is concave up. It rises with steeper slopes.
f′>0, f″<0Increases and is concave down. It rises with flatter slopes.
f′<0, f″>0Decreases and is concave up. It falls with flatter slopes.
f′<0, f″<0Decreases and is concave down. It falls with steeper slopes.
Think of position, velocity, and acceleration.

If f(t) gives position, positive velocity and negative acceleration describe forward motion with decreasing speed. The position graph increases while it bends down.

3. Match graphs using zeros, signs, and slopes

  1. Line up the inputs. Use the same horizontal coordinate in all three graphs. Each graph has its own vertical values and scale.
  2. Match horizontal tangents to derivative zeros. At a differentiable interior extremum of f, the first derivative is zero. At a differentiable interior extremum of f′, the second derivative is zero.
  3. Check signs on both sides. If f is continuous at the input and f′ switches from positive to negative there, f has a local maximum. A negative-to-positive switch gives a local minimum. A zero that keeps the same sign on both sides can mark a horizontal tangent with no local extremum.
  4. Check where the slopes turn. Where f′ decreases and then increases, f changes from concave down to concave up. If f′ is continuous there, the turn is a local minimum of f′. An increasing-then-decreasing first derivative gives the reverse concavity change and a local maximum of f′.

Check one point where the tangent is steep as well as the zeros. A steep downward tangent on f corresponds to a negative value with large magnitude on f′. Repeat the same check from f′ to f″.

4. Compare three graphs at the same inputs

Follow the dashed guides at x=−1, 1, 3 through three graphs of the cubic in Worked Example 1. The horizontal scales match. Vertical scales vary to show the features of each curve, and the curves continue beyond the portions drawn.

Function f

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 3 4 Input x −20 −10 0 10 Function value Max Inflection Min
Local maximum at (−1,10), inflection at (1,−6), and local minimum at (3,−22).

First derivative f′

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 3 4 Input x −12 0 10 20 30 First derivative value Min
Crosses zero at −1 and 3. The vertex at (1,−12) is a minimum.

Second derivative f″

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 3 4 Input x −24 −12 0 12 24 Second derivative value Zero
Changes from negative to positive at 1, where f′ turns upward.
Read the three graphs at the same inputs
Input xf(x)f′(x)f″(x)
−1100−12
1−6−120
3−22012

At x=1, the original curve is falling with slope −12. The zero belongs to f″, so the horizontal tangent at that input belongs to f′.

5. Four worked examples

Worked example 1

Follow one cubic through all three graphs

For f(x)=x3−3x2−9x+5, explain the connections among the three graphs above. Find the intervals of increase, decrease, and concavity, and locate the extrema and inflection.

1 · Find the tangent slopes

f′(x)=3x2−6x−9
f′(x)=3(x+1)(x−3)

The first derivative crosses from positive to negative at −1 and from negative to positive at 3. The original graph has its local maximum at (−1,10) and local minimum at (3,−22).

2 · Track the change in the slopes

f″(x)=6x−6=6(x−1)

The second derivative is negative before 1 and positive after 1. The first derivative decreases and then increases, so it has a minimum at (1,−12).

The cubic changes from concave down to concave up at (1,−6). Its tangent there still has slope −12.

Direction and concavity for the example cubic
IntervalSigns and shape
(−∞,−1)f′>0, f″<0
Increasing, concave down
(−1,1)f′<0, f″<0
Decreasing, concave down
(1,3)f′<0, f″>0
Decreasing, concave up
(3,∞)f′>0, f″>0
Increasing, concave up

3 · Connect each landmark across the graphs

The two turns of f share their inputs with the two zeros of f′. The inflection of f shares its input with the minimum of f′ and the zero of f″.

Worked example 2

Match three unlabeled graphs

A cubic f has a local maximum at x=−2, a local minimum at x=2, and an inflection at x=0. Match A, B, and C to f, f′, and f″. The plots use one example cubic with these features.

Graph A

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −3 −2 −1 0 1 2 3 Input x −18 −12 −6 0 6 12 18 Graph value
Passes through the origin and rises from left to right.

Graph B

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −3 −2 −1 0 1 2 3 Input x −16 −8 0 8 16 Graph value
Has a peak at −2 and a valley at 2.

Graph C

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −3 −2 −1 0 1 2 3 Input x −12 0 12 Graph value
Crosses the axis at −2 and 2, with a minimum at 0.
Show graph match

1 · Find the curve with the given turns

Graph B is f. It rises to the peak at −2, falls between the two turning points, and rises after the valley at 2.

2 · Find the curve with the matching slope signs

Graph C is f′. Its zeros line up with B’s horizontal tangents at −2 and 2. It is negative between the zeros and positive outside them. Its minimum at 0 matches B’s change from concave down to concave up.

3 · Match the parabola’s slopes to the line

Graph A is f″. It is negative where C falls and positive where C rises. The plotted cubic x3−12x gives an exact check.

f′(x)=3(x+2)(x−2)
ddx(3x2−12)=6x

The exact heights shown depend on the choice of cubic. The zeros, the sign pattern, and the positions of the turns follow from the given features.

Worked example 3

Classify a flat critical point

Suppose f′(5)=0 and f″(5)=0. Near 5, f′ is positive immediately to the left and negative immediately to the right. What can you conclude?

1 · Use the first derivative signs

The function increases up to 5 and decreases after it. By the First Derivative Test, f has a local maximum at x=5.

2 · Separate the extremum and inflection questions

The Second Derivative Test is inconclusive because f″(5)=0. To classify concavity, look for the behavior of f′ or the sign of f″ on the surrounding intervals.

3 · Check an illustrative function

f(x)=−(x−5)4
f′(x)=−4(x−5)3
f″(x)=−12(x−5)2

This example has a local maximum at 5. Its second derivative touches zero while the function stays concave down on both sides.

One possible function

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 3 4 5 6 7 Input x −12 −8 −4 0 Function value Flat peak
The curve is smooth through (5,0) and bends down on either side.
Worked example 4

Intersect two derivative sign conditions

Let f′(x)=x2(x−3). Find any open intervals where f is increasing and concave down.

1 · Locate where the first derivative is positive

The squared factor gives a zero at 0 with negative signs on both sides. The factor x−3 gives a switch to positive at 3. The increasing interval is (3,∞).

2 · Find where the slopes decrease

f″(x)=2x(x−3)+x2
f″(x)=3x(x−2)

This product is negative on (0,2) and positive on the intervals to its left and right. Thus f is concave down on (0,2).

3 · Take the overlap

(3,∞)∩(0,2)=∅

There is no open interval on which both conditions hold. On its increasing interval, f is concave up.

6. Recognize common patterns and special cases

Polynomial shapes and limits on features

For a polynomial of degree n≥2, its first derivative has degree n−1 and its second derivative has degree n−2. A cubic therefore gives a quadratic first derivative and a linear second derivative. A quartic gives a cubic first derivative and a quadratic second derivative.

The first derivative has at most n−1 real zeros, which bounds the number of local extrema of the polynomial. The second derivative has at most n−2 real zeros, which bounds the number of inflection points. The sign changes determine which zeros give those features.

A special case

An inflection with an undefined second derivative

Check the bend on each side

For g(x)=x|x|, the left branch is −x2 with g″(x)=−2. The right branch is x2 with g″(x)=2. The graph is continuous at zero and changes from concave down to concave up.

Read the first derivative at the join

The first derivative g′(x)=2|x| has a corner at zero. So g″(0) is undefined, and the concavity change establishes the inflection at (0,0).

Derivative graphs give slopes, with height set separately

Adding a constant C to f shifts the function graph vertically and preserves both derivative graphs. To determine a numerical extremum value or an inflection’s height, use a given function value or enough information to recover the function.

7. Eight practice questions

1. A first derivative with a repeated factor

For f′(x)=(x−1)2(x+2), find the increasing interval and classify the critical inputs.

Show solution 1

1 · Read the signs

The first derivative is negative for x<−2 and positive for x>−2 except for its zero at 1. It has opposite signs across −2 and the same sign across 1.

2 · State the features

f is strictly increasing on (−2,∞), with a horizontal tangent at 1. It has a local minimum at −2. The first derivative keeps the positive sign on either side of 1, so 1 gives no local extremum.

2. Concavity from the second derivative

For f″(x)=x(x−3), find the intervals of concavity and the inputs of the inflection points.

Show solution 2

1 · Read the product on each interval

The product is positive on (−∞,0) and (3,∞), so f is concave up there. It is negative on (0,3), so f is concave down there.

2 · Use the sign changes

Both zeros have a sign change. The inflections occur at x=0 and x=3. Their heights require information about f.

3. A stationary point with negative second derivative

Given f′(2)=0 and f″(2)<0, classify the stationary point at x=2.

Show solution 3

1 · Apply the Second Derivative Test

The first derivative is zero at 2 and the second derivative is strictly negative there. Under the test’s differentiability conditions, f has a local maximum at x=2.

4. Connect the graphs for a quartic

If f(x)=x4, describe the first and second derivative graphs.

Show solution 4

1 · Describe the first derivative

f′(x)=4x3 is a cubic through the origin. It switches from negative to positive at 0, giving f a local minimum there.

2 · Describe the second derivative

f″(x)=12x2 is an upward parabola touching zero at its vertex. Its sign stays positive on either side, so the concavity stays up through the origin.

5. Read a downward-opening derivative parabola

The graph of f′ is a downward-opening parabola with zeros at −1 and 3. Describe the extrema, monotonicity, and concavity of f.

Show solution 5

1 · Classify the zero crossings

The parabola is negative on (−∞,−1) and (3,∞) and positive on (−1,3). The function decreases outside the zeros and increases between them. It has a local minimum at −1 and a local maximum at 3.

2 · Locate the change of concavity

The vertex lies halfway between the zeros.

−1+32=1

f′ increases before 1 and decreases after 1. So f changes from concave up to concave down at 1.

One possible graph of f′

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 3 4 Input x −6 −3 0 3 First derivative value Vertex
The vertex height depends on the parabola’s scale. The zeros and the vertex input stay fixed.

6. Increasing with decreasing slopes

Can f′>0 and f″<0 hold on the same interval? What does the graph of f do there?

Show solution 6

1 · Combine the two signs

Yes. The first sign says f is increasing, and the second says f′ decreases. The function rises and is concave down. For instance, on x>0, the graph of lnx has derivative 1x>0 and second derivative −1x2<0.

7. Find the minimum polynomial degree

What is the smallest possible degree of a polynomial with exactly two inflection points?

Show solution 7

1 · Count necessary zeros

A polynomial with two inflections has a nonzero second derivative. This derivative is continuous and must have two distinct zeros, so its degree is at least 2 and the original degree is at least 4.

2 · Show that the bound is attainable

Take f(x)=x4−6x2. The second derivative is 12(x2−1), which changes sign at both −1 and 1. Degree 4 is possible.

8. Check a proposed inflection

True or false? If f″(c)=0, then f has an inflection point at x=c. Explain.

Show solution 8

1 · Use a counterexample

False. For f(x)=x4, f″(0)=0, but f″(x)=12x2>0 on both sides of 0. The curve remains concave up.

8. Write an AP-style justification

On a graph-matching question, compare derivative zeros with horizontal tangents first, then check a sign on each side. For an interval question that asks for both direction and concavity, make separate sign charts and take the overlap.

AP-style justification

State the feature and the evidence

Local extremum

The graph of f′ crosses from negative to positive at x=3. By the First Derivative Test, f has a local minimum at x=3.

Inflection point

Because f is continuous at x=1 and f″ changes from negative to positive there, f changes from concave down to concave up and has an inflection point at x=1.

State the interval or input requested. When the question gives a table with only a few sampled values, use any stated conditions about behavior between them. A pair of sampled values alone cannot fix every sign or turn in the gap.

9. Frequently asked questions

Can a function rise while its derivative falls?

Yes. If f′>0 and f″<0 on the interval, the positive slopes become smaller. The function increases and is concave down.

When does an inflection give a turning point on the first derivative?

When the first derivative exists and is continuous there, a switch from decreasing to increasing gives it a local minimum. A switch from increasing to decreasing gives it a local maximum.

What if both derivatives are zero at a critical input?

The Second Derivative Test is inconclusive. Use the sign change of the first derivative to check for a local extremum. Check concavity separately.

What does a positive second derivative tell you at a stationary point?

With f′(2)=0 and f″(2)>0 and the Second Derivative Test’s differentiability conditions, f has a local minimum at x=2.

10. Continue studying calculus

Review how derivative signs support a sketch, then apply the same extremum tests to an objective function in optimization.