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.3 2nd derivative test
5.4 Graphs & curve sketching
5.5 Optimization
6. Integration
7. Differential equations
8. Applications of integrals
Wrapping up
Achievable logoAchievable logo
5.4 Graphs & curve sketching
Achievable AP Calculus AB
5. Analytical uses
Our AP Calculus AB course is now in "early access" - get 50% off for a limited time.

Graphs & curve sketching

10 min read
Font
Discuss
Share
Feedback

What you’ll learn

  • How to interpret and connect the graphs of f,f′, and f′′ to analyze function behavior
  • How to sketch curves by combining domain, intercepts, asymptotes, extrema, and concavity

To analyze a function, you need to connect what you see on the graph of f to what its derivatives say about slope and concavity. On the AP exam, many multiple-choice questions on this topic focus more on reasoning from these connections than on computing exact values.

Connecting graphs of f,f′, and f′′

Recall from the previous sections:

The 1st derivative f′(x) tells you about the slope of the tangent line to f(x) at any x.

  1. If f′(x)>0, f(x) is increasing.

  2. If f′(x)<0, f(x) is decreasing.

  3. If f′(c)=0 or f′(c) is undefined, then x=c is a critical point.

    • f(c) is a relative extremum if f′(x) changes sign around the critical point x=c.

The 2nd derivative f′′(x) tells you about the shape of f(x).

  1. If f′′(x)>0, f(x) is concave up and f′(x) is increasing.

  2. If f′′(x)<0, f(x) is concave down and f′(x) is decreasing.

  3. x=c is a point of inflection if f′′(c)=0 or is undefined and changes sign.

Watch out for these two common mistakes:

  • A zero of f′′ is only an inflection point if f′′ actually changes sign there. If f′′(a)=0 but f′′ doesn’t change sign, there is no inflection point at x=a.
  • The second derivative test is inconclusive when f′′(c)=0. In that case, fall back to the first derivative test to classify the critical point.

Example 1: Identifying f from f′

Shown below is the graph of f′(x), the derivative of f.

Figure 5.4.1 Graph of f'
Figure 5.4.1 Graph of f'

Which one of the 4 graphs below could be the graph of f(x)?

Choices for f(x)
Choices for f(x)

Solution

Step 1: Locate the critical points of f(x).

(spoiler)

f′(x) is a polynomial and therefore defined for all values.

f′(x)=0 when the graph shown crosses the x-axis.

  • Occurs at x=−2,1, and 3, which are therefore critical points of f(x).

Step 2: Analyze sign changes of f′

(spoiler)
  • At x=−2: f′(x) changes from negative to positive → relative min at x=−2.

  • At x=1: f′(x) changes from positive to negative → relative max at x=1.

  • At x=3: f′(x) changes from negative to positive → relative min at x=3.

You may also justify using the 2nd derivative test by reading whether f′(x) is increasing or decreasing at each critical point:

  • At x=−2: f′(x) is increasing, so f′′(−2)>0→ relative min

  • At x=1: f′(x) is decreasing, so f′′(1)<0→ relative max

  • At x=3: f′(x) is increasing, so f′′(3)>0→ relative min

Only graphs B and C show extrema in this order, so A and D can be eliminated.

Step 3: Additional identifying information

(spoiler)

Notice that graph B consists of straight-line segments with sharp corners at x=−2,1,3. Since corners are not differentiable, the graph of f′ for choice B would be undefined. However, the given graph of f′(x) is a polynomial that shows each point to equal 0.

So graph B can be eliminated, and graph C is the only option.

Example 2: Comparing f,f′, and f′′

Shown below is the graph of a twice-differentiable function f(x). It has extrema at x=−3 and x=1 and its inflection points occur at x=−1.4 and x=2.75.

At which point is f′(x)<f(x)<f′′(x)?

(A) x=−3

(B) x=−1

(C) x=1

(D) x=3

Graph of f
Graph of f

Solution

(spoiler)

Answer: x=3 (choice D)

Let’s analyze each point:

At x=−3:

  • f(−3)<0 (graph is below the x-axis).
  • f′(−3)=0 (relative min at x=−3).
    • Since f(−3)<f′(−3), this answer choice can be eliminated.

At x=−1:

  • f(−1)=0 (graph crosses the x-axis)
  • f′(−1)>0 (f is increasing).
    • Since f(−1)<f′(−1), this answer choice can also be eliminated.

At x=1:

  • f(1)>0
  • f′(1)=0 (relative max at x=1).
  • f′′(1)<0 (concave down)
    • Since f′′(1)<f′(1)<f(1), this choice can be eliminated.

At x=3:

  • f(3)=0
  • f′(3)<0 (f is decreasing).
  • f′(3)>0 (f changes concavity at x=2.75).
    • Since f′(3)<f(3)<f′′(3), this is the correct point.

Curve sketching

You may have sketched general shapes of polynomial, rational, exponential, and other functions in Precalculus by finding intercepts and end behavior. Calculus allows you to sketch more accurate graphs by analyzing a function’s behavior.

To sketch the shape of a function:

  1. Find its domain, intercepts, and asymptotes (if any)
  2. Find critical points (1st derivative f′)
  3. Test intervals for increasing/decreasing behavior of f and/or classify extrema
  4. Find inflection points (2nd derivative f′′)
  5. Test intervals for concavity of f
  6. Piece it all together

Sketch the graph of

f(x)=x2−1x​

Solution

Step 1: Identify asymptotes, intercepts, and domain

(spoiler)
  • Vertical asymptotes: x=1 and x=−1
  • Horizontal asymptote: y=0
  • x-intercepts (when y=0): (0,0)
  • y-intercept (when x=0): (0,0)
  • Domain: x=−1 and x=1

Step 2: Critical points (f′)

(spoiler)

With the quotient rule,

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

Now identify where f′(x)=0 or is undefined.

f′(x) is undefined when x=−1 and x=1. These are vertical asymptotes where f(x) is undefined, so they are not critical points of f.

f′(x)=0 when −x2−1=0, which has no real solutions. So f has no relative extrema.

Step 3: Increasing and decreasing intervals

(spoiler)

Choose a test point in each interval of the domain (split by the vertical asymptotes at x=−1 and x=1) and determine the sign of f′(x). Instead of a chart, the signs are depicted as a diagram:

Sign diagram for f'(x)
Sign diagram for f'(x)

f(x) is decreasing on all three intervals of its domain because f′(x)<0. When sketching, it often helps to mark where f is undefined (open circles at the asymptotes) and to draw arrows showing the direction of decrease.

Step 4: Inflection points (f′′)

(spoiler)

Differentiate f′(x) to find f′′(x):

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

Simplify by factoring −2x(x2−1) in the numerator:

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

Potential inflection points occur where f′′(x)=0 (and f is defined). Here, f′′(x)=0 when x=0 only.

Step 5: Concavity

(spoiler)

Test the sign of f′′(x) on each interval. Even though x=−1 and x=1 cannot be inflection points, they still split the domain and should appear on the sign diagram.

Sign diagram for f''(x)
Sign diagram for f''(x)

As shown, it can be helpful to sketch a small “concave up” or “concave down” curve on each interval to keep the shape straight as you draw the final graph.

Step 6: Putting it all together

(spoiler)

Combine what you know about intercepts, asymptotes, increasing/decreasing behavior, and concavity. For example, on (1,∞), f(x) is decreasing and concave up, and a small curve has been drawn to depict this.

f, f', and f''
f, f', and f''

Plot the asymptotes and intercepts, then sketch each branch to match the sign diagrams:

Final graph of f(x)
Final graph of f(x)

Connecting graphs of f, f′, and f′′

  • f′(x): slope of f(x); sign indicates increasing/decreasing; zeros/undefined = critical points
  • f′′(x): concavity of f(x); sign indicates concave up/down; sign changes = inflection points
  • Extrema at critical points where f′(x) changes sign; inflection points where f′′(x) changes sign

Analyzing f′(x) to determine f(x)

  • Critical points where f′(x)=0 or undefined
  • 1st derivative test: sign change in f′(x) classifies extrema (min/max)
  • 2nd derivative test: f′′(x)>0 at critical point = min, f′′(x)<0 = max

Comparing f(x), f′(x), and f′′(x) at points

  • Use graph features to estimate values and order of f(x), f′(x), f′′(x)
  • At extrema: f′(x)=0; at inflection: f′′(x)=0
  • Concavity and slope inform relative sizes

Curve sketching process

  • Step 1: Find domain, intercepts, asymptotes
  • Step 2: Find critical points using f′(x)
  • Step 3: Test intervals for increasing/decreasing (f′(x) sign)
  • Step 4: Find inflection points using f′′(x)
  • Step 5: Test intervals for concavity (f′′(x) sign)
  • Step 6: Combine all info to sketch graph

Example: f(x)=x2−1x​

  • Vertical asymptotes: x=1, x=−1; horizontal asymptote: y=0
  • Intercepts: (0,0); domain excludes x=±1
  • f′(x)=(x2−1)2−x2−1​: always negative, so f(x) always decreasing
  • No real critical points (no relative extrema)
  • f′′(x)=(x2−1)4−2x(x2−1)(−2x2−1)​; inflection point at x=0
  • Concavity changes at x=0; use sign diagrams for f′(x) and f′′(x) to guide sketch

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

All rights reserved ©2016 - 2026 Achievable, Inc.

Graphs & curve sketching

What you’ll learn

  • How to interpret and connect the graphs of f,f′, and f′′ to analyze function behavior
  • How to sketch curves by combining domain, intercepts, asymptotes, extrema, and concavity

To analyze a function, you need to connect what you see on the graph of f to what its derivatives say about slope and concavity. On the AP exam, many multiple-choice questions on this topic focus more on reasoning from these connections than on computing exact values.

Connecting graphs of f,f′, and f′′

Recall from the previous sections:

The 1st derivative f′(x) tells you about the slope of the tangent line to f(x) at any x.

  1. If f′(x)>0, f(x) is increasing.

  2. If f′(x)<0, f(x) is decreasing.

  3. If f′(c)=0 or f′(c) is undefined, then x=c is a critical point.

    • f(c) is a relative extremum if f′(x) changes sign around the critical point x=c.

The 2nd derivative f′′(x) tells you about the shape of f(x).

  1. If f′′(x)>0, f(x) is concave up and f′(x) is increasing.

  2. If f′′(x)<0, f(x) is concave down and f′(x) is decreasing.

  3. x=c is a point of inflection if f′′(c)=0 or is undefined and changes sign.

Watch out for these two common mistakes:

  • A zero of f′′ is only an inflection point if f′′ actually changes sign there. If f′′(a)=0 but f′′ doesn’t change sign, there is no inflection point at x=a.
  • The second derivative test is inconclusive when f′′(c)=0. In that case, fall back to the first derivative test to classify the critical point.

Example 1: Identifying f from f′

Shown below is the graph of f′(x), the derivative of f.

Which one of the 4 graphs below could be the graph of f(x)?

Solution

Step 1: Locate the critical points of f(x).

(spoiler)

f′(x) is a polynomial and therefore defined for all values.

f′(x)=0 when the graph shown crosses the x-axis.

  • Occurs at x=−2,1, and 3, which are therefore critical points of f(x).

Step 2: Analyze sign changes of f′

(spoiler)
  • At x=−2: f′(x) changes from negative to positive → relative min at x=−2.

  • At x=1: f′(x) changes from positive to negative → relative max at x=1.

  • At x=3: f′(x) changes from negative to positive → relative min at x=3.

You may also justify using the 2nd derivative test by reading whether f′(x) is increasing or decreasing at each critical point:

  • At x=−2: f′(x) is increasing, so f′′(−2)>0→ relative min

  • At x=1: f′(x) is decreasing, so f′′(1)<0→ relative max

  • At x=3: f′(x) is increasing, so f′′(3)>0→ relative min

Only graphs B and C show extrema in this order, so A and D can be eliminated.

Step 3: Additional identifying information

(spoiler)

Notice that graph B consists of straight-line segments with sharp corners at x=−2,1,3. Since corners are not differentiable, the graph of f′ for choice B would be undefined. However, the given graph of f′(x) is a polynomial that shows each point to equal 0.

So graph B can be eliminated, and graph C is the only option.

Example 2: Comparing f,f′, and f′′

Shown below is the graph of a twice-differentiable function f(x). It has extrema at x=−3 and x=1 and its inflection points occur at x=−1.4 and x=2.75.

At which point is f′(x)<f(x)<f′′(x)?

(A) x=−3

(B) x=−1

(C) x=1

(D) x=3

Solution

(spoiler)

Answer: x=3 (choice D)

Let’s analyze each point:

At x=−3:

  • f(−3)<0 (graph is below the x-axis).
  • f′(−3)=0 (relative min at x=−3).
    • Since f(−3)<f′(−3), this answer choice can be eliminated.

At x=−1:

  • f(−1)=0 (graph crosses the x-axis)
  • f′(−1)>0 (f is increasing).
    • Since f(−1)<f′(−1), this answer choice can also be eliminated.

At x=1:

  • f(1)>0
  • f′(1)=0 (relative max at x=1).
  • f′′(1)<0 (concave down)
    • Since f′′(1)<f′(1)<f(1), this choice can be eliminated.

At x=3:

  • f(3)=0
  • f′(3)<0 (f is decreasing).
  • f′(3)>0 (f changes concavity at x=2.75).
    • Since f′(3)<f(3)<f′′(3), this is the correct point.

Curve sketching

You may have sketched general shapes of polynomial, rational, exponential, and other functions in Precalculus by finding intercepts and end behavior. Calculus allows you to sketch more accurate graphs by analyzing a function’s behavior.

To sketch the shape of a function:

  1. Find its domain, intercepts, and asymptotes (if any)
  2. Find critical points (1st derivative f′)
  3. Test intervals for increasing/decreasing behavior of f and/or classify extrema
  4. Find inflection points (2nd derivative f′′)
  5. Test intervals for concavity of f
  6. Piece it all together

Sketch the graph of

f(x)=x2−1x​

Solution

Step 1: Identify asymptotes, intercepts, and domain

(spoiler)
  • Vertical asymptotes: x=1 and x=−1
  • Horizontal asymptote: y=0
  • x-intercepts (when y=0): (0,0)
  • y-intercept (when x=0): (0,0)
  • Domain: x=−1 and x=1

Step 2: Critical points (f′)

(spoiler)

With the quotient rule,

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

Now identify where f′(x)=0 or is undefined.

f′(x) is undefined when x=−1 and x=1. These are vertical asymptotes where f(x) is undefined, so they are not critical points of f.

f′(x)=0 when −x2−1=0, which has no real solutions. So f has no relative extrema.

Step 3: Increasing and decreasing intervals

(spoiler)

Choose a test point in each interval of the domain (split by the vertical asymptotes at x=−1 and x=1) and determine the sign of f′(x). Instead of a chart, the signs are depicted as a diagram:

f(x) is decreasing on all three intervals of its domain because f′(x)<0. When sketching, it often helps to mark where f is undefined (open circles at the asymptotes) and to draw arrows showing the direction of decrease.

Step 4: Inflection points (f′′)

(spoiler)

Differentiate f′(x) to find f′′(x):

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

Simplify by factoring −2x(x2−1) in the numerator:

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

Potential inflection points occur where f′′(x)=0 (and f is defined). Here, f′′(x)=0 when x=0 only.

Step 5: Concavity

(spoiler)

Test the sign of f′′(x) on each interval. Even though x=−1 and x=1 cannot be inflection points, they still split the domain and should appear on the sign diagram.

As shown, it can be helpful to sketch a small “concave up” or “concave down” curve on each interval to keep the shape straight as you draw the final graph.

Step 6: Putting it all together

(spoiler)

Combine what you know about intercepts, asymptotes, increasing/decreasing behavior, and concavity. For example, on (1,∞), f(x) is decreasing and concave up, and a small curve has been drawn to depict this.

Plot the asymptotes and intercepts, then sketch each branch to match the sign diagrams:

Key points

Connecting graphs of f, f′, and f′′

  • f′(x): slope of f(x); sign indicates increasing/decreasing; zeros/undefined = critical points
  • f′′(x): concavity of f(x); sign indicates concave up/down; sign changes = inflection points
  • Extrema at critical points where f′(x) changes sign; inflection points where f′′(x) changes sign

Analyzing f′(x) to determine f(x)

  • Critical points where f′(x)=0 or undefined
  • 1st derivative test: sign change in f′(x) classifies extrema (min/max)
  • 2nd derivative test: f′′(x)>0 at critical point = min, f′′(x)<0 = max

Comparing f(x), f′(x), and f′′(x) at points

  • Use graph features to estimate values and order of f(x), f′(x), f′′(x)
  • At extrema: f′(x)=0; at inflection: f′′(x)=0
  • Concavity and slope inform relative sizes

Curve sketching process

  • Step 1: Find domain, intercepts, asymptotes
  • Step 2: Find critical points using f′(x)
  • Step 3: Test intervals for increasing/decreasing (f′(x) sign)
  • Step 4: Find inflection points using f′′(x)
  • Step 5: Test intervals for concavity (f′′(x) sign)
  • Step 6: Combine all info to sketch graph

Example: f(x)=x2−1x​

  • Vertical asymptotes: x=1, x=−1; horizontal asymptote: y=0
  • Intercepts: (0,0); domain excludes x=±1
  • f′(x)=(x2−1)2−x2−1​: always negative, so f(x) always decreasing
  • No real critical points (no relative extrema)
  • f′′(x)=(x2−1)4−2x(x2−1)(−2x2−1)​; inflection point at x=0
  • Concavity changes at x=0; use sign diagrams for f′(x) and f′′(x) to guide sketch

More from Analytical uses

  • Important theorems
  • Optimization