Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 39 · Applications of Derivatives

Concavity and Curve Sketching

Use the second derivative to find concavity and inflection points, apply the second derivative test, and sketch a curve from its derivatives.

The first derivative tells you whether a graph is rising or falling. The second derivative tells you how the graph bends. Together they let you sketch the shape of a function without plotting dozens of points.

Concavity

A graph is concave up on an interval if it bends like a cup that holds water: the slope keeps increasing, and the curve lies above its tangent lines. It is concave down if it bends like an upside-down cup: the slope keeps decreasing.

Because the second derivative f'' is the rate of change of the slope f':

  • f''(x) > 0 means the slope is increasing, so f is concave up.
  • f''(x) < 0 means the slope is decreasing, so f is concave down.

An inflection point is a point on the graph where the concavity changes (from up to down or down to up). At such a point f'' is zero or undefined, but, as with critical points, a zero of f'' is only a candidate: you must check that the sign really changes. For f(x) = x⁴, f''(0) = 0, yet f'' is positive on both sides, so there is no inflection point.

Example: finding concavity

Take f(x) = x³ - 6x² + 9x + 2 again.

Text
f'(x)  = 3x² - 12x + 9
f''(x) = 6x - 12 = 6(x - 2)

f''(x) = 0 at x = 2. For x < 2, f'' < 0 (concave down). For x > 2, f'' > 0 (concave up). So the graph has an inflection point at x = 2, where f(2) = 8 - 24 + 18 + 2 = 4.

This agrees with what you found earlier: the local maximum at x = 1 is in the concave-down region and the local minimum at x = 3 is in the concave-up region.

The second derivative test

If f'(c) = 0, the second derivative can decide the type of critical point faster than checking signs on both sides:

Value of f''(c) Conclusion
f''(c) > 0 local minimum (concave up)
f''(c) < 0 local maximum (concave down)
f''(c) = 0 test fails; use the first derivative test

Check: f''(1) = 6(1 - 2) = -6 < 0, a maximum. f''(3) = 6(3 - 2) = 6 > 0, a minimum. Both match.

Python Second derivative test calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice what the second case shows. For x⁴ the critical point x = 0 makes the test fail, and f'' = 0 there without any sign change, so there is no inflection.

A checklist for sketching a curve

To sketch y = f(x), work through these steps:

  1. Domain. Where is f defined? Note any gaps.
  2. Intercepts. Solve f(x) = 0 for x-intercepts and evaluate f(0) for the y-intercept.
  3. Symmetry. Even functions satisfy f(-x) = f(x) (mirror in the y-axis). Odd functions satisfy f(-x) = -f(x).
  4. First derivative. Find critical points and intervals of increase and decrease.
  5. Second derivative. Find concavity and inflection points.
  6. Behavior at the edges. What happens as x becomes very large in either direction?
  7. Draw the key points first, then connect them following the shape the derivatives describe.
flowchart TD
    A["f(x)"] --> B["f'(x): rising or falling?"]
    A --> C["f''(x): bending up or down?"]
    B --> D["Local max and min"]
    C --> E["Inflection points"]
    D --> F["Sketch the curve"]
    E --> F

The first derivative locates turning points; the second shows the bend.

Sketch example

Sketch f(x) = x³ - 6x² + 9x + 2 using the checklist. It is a polynomial, so the domain is all real numbers. The y-intercept is f(0) = 2. The function rises to 6 at x = 1, falls to 2 at x = 3, and the bend changes at (2, 4). For large positive x the x³ term dominates, so f → +∞; for large negative x, f → -∞. The code below draws this and shades the concave-down and concave-up regions.

Python Curve with concavity regions

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Concavity describes the bend, not the direction. A decreasing function can still be concave up, like the left half of a valley.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. If f''(x) > 0 on an interval, the graph of f on that interval is

    A positive second derivative means the slope is increasing, so the curve bends upward like a cup.
  2. 2. f'(c) = 0 and f''(c) = -4. What is happening at x = c?

    A negative second derivative at a critical point means concave down, so the point is a local maximum.
  3. 3. For f(x) = x⁴, f''(0) = 0. Is x = 0 an inflection point?

    f''(x) = 12x² is positive on both sides of 0, so the concavity never changes.
  4. 4. Where does f(x) = x³ have its inflection point?

    f''(x) = 6x changes from negative to positive at x = 0.

Summary

  • f'' > 0 means concave up; f'' < 0 means concave down.
  • An inflection point is where the concavity changes; f'' = 0 alone is not enough.
  • Second derivative test: at a critical point, f'' > 0 is a minimum and f'' < 0 is a maximum; f'' = 0 is inconclusive.
  • A systematic checklist (domain, intercepts, symmetry, f', f'', end behavior) makes sketching reliable.

Next: Optimization Problems