AP® CALCULUS AB & BC · UNIT 5

Sketching Graphs with Derivatives

Use slopes, curvature, and the domain to sketch a function and its derivatives. Follow worked examples that connect formulas, tables, and graphs.

Topic 5.8 study notes3 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. Connect a function and its derivatives

Read the height of f, the slope of f from f′, and the change in that slope from f″. Track the same input across the three graphs.

Read direction from the first derivative

Where f′>0 on an interval, the original curve rises. Where f′<0, it falls. A zero of f′ gives a horizontal tangent. Check the signs on both sides to see whether the curve turns.

Read the bend from the second derivative

Where f″>0 on an interval, the slopes increase and f is concave up. Where f″<0, the slopes decrease and f is concave down. Check for a change in concavity at a continuous point.

Combine direction and concavity
Sign of f′Sign of f″What to sketch
++Rises and gets steeper
+−Rises and flattens
−+Falls and flattens
−−Falls and gets steeper

2. Build a curve sketch step by step

  1. Start with the domain and anchor points

    Mark included endpoints, holes, and gaps. Find the intercepts that exist and check the end behavior.

  2. Find where the direction can change

    Find interior zeros of the first derivative and points in the domain where that derivative is undefined. Test the signs on each side.

  3. Find where the bend can change

    Mark zeros or undefined values of the second derivative. Check the concavity on both sides and continuity at an inflection point.

  4. Connect the features

    Plot exact or labeled approximate coordinates. Connect the pieces in order using the direction and bend from the sign analysis.

Use one-sided limits to confirm a vertical asymptote. A denominator zero can also be a hole. Horizontal and slant asymptotes describe end behavior. A graph can cross either while still approaching it far away.

3. Compare three graphs on the same scale

These plots use the same horizontal scale for the cubic in Example 1. The dashed guides line up the two turns of f and its point of inflection with the derivative graphs.

Function f

0 1 2 3 4 Input x −8 −4 0 4 8 Function value Max Inflection Min
Local maximum at (1,5), inflection at (2,3), and local minimum at (3,1).

First derivative f′

0 1 2 3 4 Input x −3 0 6 12 18 First derivative value Min
The curve crosses zero at 1 and 3. It decreases to its minimum at 2, then increases.

Second derivative f″

0 1 2 3 4 Input x −12 −6 0 6 12 Second derivative value Zero
The value changes from negative to positive at 2, where the original curve changes its bend.

Read the same inputs three ways

1 · Compare sampled values

Values and slopes at selected inputs
Input xValue f(x)Slope f′(x)
019
150
23−3
310
459

2 · Use the graph and formula to justify intervals

The table gives exact slopes at those inputs. The whole derivative graph and the factored formula in Example 1 justify the sign between them. At x=2, f is falling while its concavity changes.

4. Sketch the function from its derivative

Given f′, read its height relative to zero for the direction of f. Read whether the derivative graph rises or falls for the bend of f.

  • A positive-to-negative crossing of f′ gives a local maximum of f, provided f is continuous there. A negative-to-positive crossing gives a local minimum.
  • If f′ decreases then increases through a local minimum, f changes from concave down to concave up. If f′ increases then decreases through a local maximum, the change goes from up to down.
  • A value such as f(0)=3 fixes the vertical position of the curve on a connected interval. Without an anchor, curves with the same derivative differ by a vertical shift on that interval.

5. Sketch the derivative from the function

Given f, estimate tangent slopes as you move from left to right. Put f′ above zero where the slopes are positive, below zero where they are negative, and at zero at horizontal tangents. Steeper slopes give a larger |f′|.

Use the concavity of f to shape f′. The derivative rises where f bends upward and falls where f bends downward. Check the sign of the slope on each side of a horizontal tangent before deciding whether the derivative graph touches or crosses zero. At a corner, cusp, or vertical tangent, check where the derivative exists.

6. Three worked examples

Worked example 1

Build a full sketch from a cubic formula

Sketch f(x)=x3−6x2+9x+1 and its derivatives. Use the three plots above to check your features.

1 · Find the domain and intercepts

The polynomial is defined for every real input and has no asymptotes. Its vertical intercept is (0,1). It has one real zero, x≈−0.104. Both turning points lie above the horizontal axis, and the left tail decreases without bound as x→−∞.

2 · Find where the direction and bend change

f′(x)=3(x−1)(x−3)
f″(x)=6(x−2)

Mark the stationary inputs 1 and 3, and the change in concavity at 2.

Combined direction and bend for the cubic
IntervalSigns and behavior
(−∞,1)f′>0, f″<0
Rising, concave down
(1,2)f′<0, f″<0
Falling, concave down
(2,3)f′<0, f″>0
Falling, concave up
(3,∞)f′>0, f″>0
Rising, concave up

3 · Place the points and connect the curve

The first derivative changes from positive to negative at 1, giving the peak (1,5). It changes from negative to positive at 3, giving the valley (3,1). The concavity changes at (2,3). The right tail rises without bound.

Worked example 2

Sketch the function from a given derivative

The graph of f′ is an upward parabola with vertex (2,−4) and zeros at 0 and 4. Sketch f if f(0)=3.

1 · Read the signs of the parabola

The derivative is positive before 0 and after 4, and negative between them. The original curve has a local maximum at 0 and a local minimum at 4.

2 · Read its direction for the concavity

The derivative graph decreases before 2 and increases after 2. The original curve changes from concave down to concave up there.

3 · Anchor and verify the sketch

The parabola has formula f′(x)=x(x−4). The function below has that derivative and satisfies f(0)=3.

f(x)=x33−2x2+3

The inflection has height f(2)=−73, and the local minimum has height f(4)=−233.

Given first derivative

−1 0 1 2 3 4 5 Input x −4 −2 0 2 4 First derivative value Vertex
The zeros are 0 and 4. The vertex is (2,−4).

Sketch anchored at f(0)=3

−1 0 1 2 3 4 5 Input x −8 −4 0 4 Function value Max Inflection Min
The curve turns at 0 and 4. Its inflection is at x=2, where it is still falling.

Worked example 3

Sketch the derivative of a quartic

Sketch f′ for f(x)=x4−4x3. Check the sketch against the slope and bend of f.

1 · Locate the zeros and decide whether the signs switch

f′(x)=4x2(x−3)

For x<3 and x≠0, the derivative is negative. After 3 it is positive. At 0, it touches the axis and stays negative on each side. At 3, it crosses the axis.

2 · Use the second derivative to shape the derivative graph

f″(x)=12x(x−2)

The signs are positive, negative, then positive across 0 and 2. So f′ rises, falls, and then rises. Its local maximum is (0,0), and its local minimum is (2,−16).

3 · Check against the original quartic

The original curve changes concavity at 0 and 2, but keeps falling through both inputs. At 3, the sign of f′ changes and the original curve has a local minimum of −27.

Original quartic

−1 0 1 2 3 Input x −30 −20 −10 0 10 Function value Stationary Min
The curve passes through a horizontal tangent at 0. It turns upward at x=3.

Derivative sketch

−1 0 1 2 3 Input x −20 0 20 40 First derivative value Touches Min Crosses
The derivative touches zero at 0, has a minimum at (2,−16), and crosses zero at 3.

7. Recognize common graph shapes

Shape checks for familiar functions
FunctionDerivative clues
LineThe slope is constant and the second derivative is zero.
QuadraticThe derivative is a line. The sign of the constant second derivative determines the bend.
Cubic or quarticThe derivative is a quadratic or cubic, respectively. Use its signs and turning points to check the sketch.
exBoth derivatives are positive, so the curve rises and bends up.
lnxOn x>0, the curve rises and bends down. Its slope is 1x.
Sine or cosineThe derivative is another periodic wave with a phase shift. Match the zeros to horizontal tangents.

8. Eight practice questions

Try each question before opening its notebook solution.

Practice 1. Sketch a cubic with three real intercepts

Sketch f(x)=x3−3x+1 and label its main features.

Show solution 1

Notebook solution

1 · Read the two derivatives

f′(x)=3(x−1)(x+1)
f″(x)=6x

The curve rises before −1 and after 1, and falls between them. It is concave down before 0 and up after 0.

2 · Place the intercepts and the turning points

Mark the peak (−1,3), the valley (1,−1), and the vertical intercept and inflection point (0,1). The horizontal intercepts are at x≈−1.879, x≈0.347, and x≈1.532. The left tail goes down and the right tail goes up.

Practice 2. Sketch the two branches of a rational function

Sketch f(x)=x2x−1, including its asymptotes.

Show solution 2

Notebook solution

1 · Check the domain and limits

f(x)=x+1+1x−1

The excluded input 1 is a vertical asymptote. The left-hand limit is −∞ and the right-hand limit is +∞. At either end of the domain, the reciprocal term tends to zero, so the slant asymptote is y=x+1.

2 · Classify the two stationary points

f′(x)=x(x−2)(x−1)2
f″(x)=2(x−1)3

The left branch bends down and has a local maximum at (0,0). The right branch bends up and has a local minimum at (2,4).

Sketch with a vertical and a slant asymptote

−2 0 1 2 4 Input x −6 −3 0 4 8 Function value Local max Local min
The dashed vertical line is x=1. The dotted slant line is y=x+1. The branches stay separate, with a left peak at (0,0) and a right valley at (2,4).

Practice 3. Sketch a symmetric quartic

Sketch f(x)=x4−4x2+3.

Show solution 3

Notebook solution

1 · Find the zeros and stationary points

The factorization (x2−1)(x2−3) gives horizontal intercepts at x=±1 and x=±3. The derivative 4x(x2−2) gives a local peak at (0,3) and two valleys with height −1 at x=±2.

2 · Add the changes in concavity

The second derivative 12x2−8 is negative between x=−63 and x=63, and positive outside them. Both inflection points have height 79. The curve is symmetric about the vertical axis, and both tails rise.

Practice 4. Find a possible sketch from a factored derivative

Given f′(x)=(x+1)(x−2), sketch a possible f.

Show solution 4

Notebook solution

1 · Read the sign changes

The derivative is positive before −1 and after 2, and negative between them. So f has a local maximum at −1 and a local minimum at 2.

2 · Choose a vertical position

f(x)=x33−x22−2x

Differentiating confirms the given slope. The bend changes at x=12 because f″(x)=2x−1. Adding any constant shifts the same sketch vertically.

Practice 5. Recover a curve from a sine derivative

What can you say about f if f′(x)=sinx for all real inputs?

Show solution 5

Notebook solution

1 · Check the derivative of a candidate

f(x)=−cosx+C

Differentiating gives sinx for every constant C. One function value would fix the shift.

Practice 6. Sketch the derivative of sine over one period

Given f(x)=sinx, sketch f′ over [0,2π].

Show solution 6

Notebook solution

1 · Place the slope values

f′(x)=cosx

The derivative starts at 1, crosses zero at π2, reaches −1 at π, crosses zero at 3π2, and ends at 1. These values follow the slopes on the original sine graph.

Practice 7. Find an increasing curve with decreasing slopes

Can f be increasing while f′ is decreasing? Give an example.

Show solution 7

Notebook solution

1 · Choose positive slopes that get smaller

Yes. For f(x)=lnx on (0,∞), the derivative 1x is positive and decreasing. The curve rises while flattening.

Practice 8. Count possible extrema from zeros of the derivative

If f′ has three zeros, what can you conclude about the number of interior local extrema of f?

Show solution 8

Notebook solution

1 · Check where the derivative exists

If f is differentiable throughout the interior, every interior local extremum must occur at one of the three zeros. Some zeros give horizontal tangents without a turn. If f′ is undefined at some interior inputs, check those points for additional extrema.

9. Write an AP-style justification

Label which graph is given. Use the same input when comparing two graphs. Justify a turn by stating the signs of f′ on the two sides, and justify the bend by giving the sign of f″ or the direction of f′.

AP response model

1 · Read the derivative graph on one interval

In Example 2, f′ is below zero and rising on (2,4).

2 · Turn those facts into a sketch description

The negative derivative makes f decrease. The increasing derivative makes f concave up. So the original curve falls and flattens as it approaches the minimum at 4.

When a prompt gives only sampled values, use them as evidence for the stated inputs. To justify a whole interval, use the information supplied about what happens between samples.

10. Frequently asked questions

Can the derivative touch zero without crossing?

Yes. In the quartic example, f′ is zero at 0 and negative on each side. The original curve keeps falling through a horizontal tangent.

How do I read the bend from a first derivative graph?

Where f′ rises, f is concave up. Where f′ falls, f is concave down.

What fixes the height of a sketch made from its derivative?

On a connected interval, one function value fixes the vertical shift. The derivative gives the slopes.

What should I mark before connecting the curve?

Mark the domain, intercepts, extrema, inflection points, and any asymptotes that apply.

Do zeros of the second derivative always give inflection points?

They are possible changes. Check that the original function is continuous there and that the concavity differs on the two sides.

11. Continue studying calculus

Curve sketching combines critical numbers, first derivative signs, and concavity. Topic 5.9 continues comparing the three graphs. Unit 6 develops the antiderivative connection used when sketching from a given slope.