Tutorials › Calculus I › Matching Graphs of f, f’, and f”

Concavity and Inflection · Tutorial 803 of 1495

Matching Graphs of f, f', and f''

Use slope and concavity information to decide which graphs of a function, its first derivative, and its second derivative belong together.

Intermediate 11 min read

What You'll Learn

  • Read the sign of a first-derivative graph as information about the function’s slopes.
  • Use interval signs, rather than a derivative value at one point, to determine where a function increases or decreases.
  • Connect the sign of the second derivative with the way the first derivative changes.
  • Match zeros and turning points across all three graphs with the right conditions.
  • Check a proposed graph triple using exact derivatives and interval sign information.

How Three Graphs Are Connected

A graph of \(f\) shows the function’s values. A graph of \(f'\) shows its tangent slopes, and a graph of \(f''\) shows how those slopes change. Matching the three graphs is therefore a consistency problem: each graph must agree with the derivative relationships encoded by the other two.

The vertical position of \(f\) alone does not determine either derivative. Adding a constant to \(f\) shifts its graph vertically but leaves \(f'\) and \(f''\) unchanged. By contrast, the sign and value of \(f'\) describe the slopes of \(f\), while the sign of \(f''\) describes the concavity of \(f\) and the direction in which \(f'\) changes.

Key relationships: Where the derivatives exist, \(f'(x)\) is the slope of the tangent to \(f\) at \(x\), and \(f''(x)\) is the slope of the tangent to \(f'\) at \(x\). On an interval, the signs of these derivatives give stronger conclusions: \(f'>0\) throughout the interval means \(f\) is increasing there, and \(f''>0\) throughout the interval means \(f'\) is increasing there.

Read the Graphs Interval by Interval

For a candidate graph of \(f\), inspect where its tangent slopes are positive, negative, or zero. A positive value \(f'(a)>0\) says that the tangent at \(x=a\) has positive slope. It does not, by itself, say that \(f\) is increasing throughout a neighborhood of \(a\). For that interval conclusion, establish that \(f'(x)>0\) throughout the interval in question. The corresponding statement holds for negative derivatives.

For a candidate graph of \(f'\), inspect its height and its own increasing or decreasing behavior. Where \(f'(x)>0\), the tangent slopes of \(f\) are positive; where \(f'(x)<0\), they are negative. Where \(f'\) is increasing, \(f''\geq 0\) wherever \(f''\) exists; where \(f'\) is decreasing, \(f''\leq 0\). Strictly positive (or negative) \(f''\) throughout an interval is sufficient for \(f'\) to be strictly increasing (or decreasing) there.

A candidate graph of \(f''\) gives a direct interval test for how \(f'\) changes. Positive \(f''\) on an interval means \(f'\) increases there, and negative \(f''\) means \(f'\) decreases there. These conclusions depend on the sign holding throughout the interval, not just at one point.

Information on an interval Required behavior
\(f'(x)>0\) \(f\) is increasing on that interval
\(f'(x)<0\) \(f\) is decreasing on that interval
\(f''(x)>0\) \(f'\) is increasing; \(f\) is concave up
\(f''(x)<0\) \(f'\) is decreasing; \(f\) is concave down

A zero also carries useful information, but it must be interpreted carefully. If \(f'(a)=0\), the graph of \(f\) has a horizontal tangent at \(a\), assuming \(f'(a)\) exists. A local maximum or minimum requires further information, such as a change in the sign of \(f'\). If \(f''(a)=0\), that point is a candidate for a change in concavity, not a guarantee of one. Concavity changes only if the concavity on the two sides differs.

Why Interval Signs Give These Conclusions

The connection between derivative signs and graph behavior follows from the Mean Value Theorem. In the following argument, assume the relevant functions are continuous on each closed subinterval and differentiable on its interior, as required by that theorem.

1
Apply the Mean Value Theorem to \(f\).
For any \(a<b\) in an interval where the hypotheses hold, there is a \(c\in(a,b)\) such that \(f(b)-f(a)=f'(c)(b-a)\).
2
Use the sign throughout the interval.
If \(f'(x)>0\) throughout the interval, then \(f'(c)>0\), and \(b-a>0\). Thus \(f(b)-f(a)>0\), so \(f(b)>f(a)\). This holds for every \(a<b\), proving that \(f\) is increasing.
3
Apply the same reasoning to \(f'\).
If \(f''(x)>0\) throughout the interval, apply the Mean Value Theorem to \(f'\). For \(a<b\), \(f'(b)-f'(a)=f''(c)(b-a)>0\) for some \(c\in(a,b)\). Hence \(f'\) is increasing.

This argument explains why a sign on an interval is decisive: it controls every secant comparison within that interval. A derivative value at just one point supplies only the tangent slope at that point and does not provide the interval-wide condition used in the proof.

Worked Example: Match a Cubic with Its Two Derivatives

Worked Example: Match a Cubic with Its Two Derivatives

Suppose the candidate function is \(f(x)=x^3-3x\). Find the corresponding derivative graphs and describe the interval behavior that a matching set of sketches must show.

Differentiate once:

$$ f'(x)=3x^2-3=3(x-1)(x+1). $$

The zeros are \(x=-1\) and \(x=1\). The factors show that \(f'(x)>0\) when \(x<-1\), \(f'(x)<0\) when \(-1<x<1\), and \(f'(x)>0\) when \(x>1\). Therefore \(f\) increases on \((-\infty,-1)\), decreases on \((-1,1)\), and increases on \((1,\infty)\). Its graph has a local maximum at \(x=-1\) and a local minimum at \(x=1\), since the sign of \(f'\) changes from positive to negative and then from negative to positive.

The corresponding function values are

$$ f(-1)=(-1)^3-3(-1)=-1+3=2, \qquad f(1)=1^3-3(1)=1-3=-2. $$

Differentiate again:

$$ f''(x)=6x. $$

Thus \(f''(x)<0\) for \(x<0\), and \(f''(x)>0\) for \(x>0\). The graph of \(f\) is concave down to the left of zero and concave up to the right. The graph of \(f'\) decreases for \(x<0\) and increases for \(x>0\), so it has a minimum at \(x=0\). Also \(f(0)=0\), and the concavity changes there, giving an inflection point at \((0,0)\).

Check the proposed derivatives by differentiating the original function:

$$ \frac{d}{dx}(x^3-3x)=3x^2-3, \qquad \frac{d}{dx}(3x^2-3)=6x. $$

These calculations reproduce both candidate derivative formulas. A matching triple must therefore have a first-derivative graph crossing the horizontal axis at \(-1\) and \(1\), and a second-derivative graph crossing it at \(0\). Their signs must agree with the intervals just established.

Worked Example: Reconstruct a Function from Its Derivative

Worked Example: Reconstruct a Function from Its Derivative

Suppose a candidate graph for \(f'\) is described by \(f'(x)=x^2+x-2\), and the matching function is known to satisfy \(f(0)=3\). Determine \(f\), find \(f''\), and describe the graph behavior.

First factor the derivative:

$$ f'(x)=x^2+x-2=(x+2)(x-1). $$

Its zeros are \(-2\) and \(1\). The product is positive for \(x<-2\), negative for \(-2<x<1\), and positive for \(x>1\). So \(f\) increases, then decreases, then increases. The graph of \(f\) has a local maximum at \(-2\) and a local minimum at \(1\), because \(f'\) changes sign at each point.

To find the function, integrate the polynomial and include a constant:

$$ f(x)=\frac{x^3}{3}+\frac{x^2}{2}-2x+C. $$

Use the given value \(f(0)=3\):

$$ 3=f(0)=0+0-0+C, \qquad C=3. $$

Therefore,

$$ f(x)=\frac{x^3}{3}+\frac{x^2}{2}-2x+3. $$

Differentiate the candidate \(f'\) to obtain the second derivative:

$$ f''(x)=2x+1. $$

This is negative for \(x<-\frac12\) and positive for \(x>-\frac12\). Thus \(f'\) decreases up to \(-\frac12\) and increases after \(-\frac12\), and \(f\) changes from concave down to concave up there. The value at that point is

$$ f\left(-\frac12\right) =-\frac{1}{24}+\frac18+1+3 =\frac{2}{24}+4 =\frac{49}{12}. $$

For an additional graph check, the critical-point heights are

$$ f(-2)=-\frac83+2+4+3=\frac{19}{3}, \qquad f(1)=\frac13+\frac12-2+3=\frac{11}{6}. $$

Finally, differentiate the reconstructed function:

$$ f'(x)=x^2+x-2, \qquad f''(x)=2x+1. $$

Both derivatives agree with the proposed graphs. The additive constant was determined by the anchor \(f(0)=3\); without an anchor, the derivative graphs would not specify the vertical position of \(f\).

Worked Example: Use a Constant Second Derivative

Worked Example: Use a Constant Second Derivative

Suppose a candidate graph of \(f''\) is the horizontal line \(f''(x)=2\), and the other information is \(f'(0)=-2\) and \(f(0)=1\). Find all three formulas and check their graph behavior.

Since the derivative of \(2x\) is \(2\), integrating \(f''\) gives

$$ f'(x)=2x+C_1. $$

Use \(f'(0)=-2\):

$$ -2=2(0)+C_1, \qquad C_1=-2. $$

Thus \(f'(x)=2x-2\). Integrating again gives

$$ f(x)=x^2-2x+C_2. $$

The condition \(f(0)=1\) gives \(C_2=1\), so

$$ f(x)=x^2-2x+1=(x-1)^2. $$

The derivative \(f'(x)=2x-2\) is negative for \(x<1\), zero at \(1\), and positive for \(x>1\). Therefore \(f\) decreases up to \(x=1\), then increases, with a minimum value \(f(1)=0\). Since \(f''(x)=2>0\) everywhere, \(f'\) increases everywhere and \(f\) is concave up everywhere.

Check each formula by differentiation:

$$ \frac{d}{dx}(x^2-2x+1)=2x-2, \qquad \frac{d}{dx}(2x-2)=2. $$

Also, \(f'(0)=-2\) and \(f(0)=1\), as required. The corresponding sketches must show a concave-up parabola, a rising straight-line graph for \(f'\), and a positive horizontal line for \(f''\).

A Common Matching Error

A tempting but incorrect shortcut is to treat a positive derivative at one point as proof of increase on an entire nearby interval. The statement \(f'(a)>0\) establishes the tangent slope at \(a\), not the signs of \(f'\) at other points.

Common mistake: “Since \(f'(0)=1>0\), \(f\) must be increasing on some interval around \(0\).” This conclusion does not follow from the value at \(0\) alone.

For a concrete counterexample, define \(f(0)=0\) and, for \(t\ne0\), let

$$ f(t)=t+t^2\sin\left(\frac{1}{t^2}\right). $$

At zero, the difference quotient is

$$ \frac{f(t)-f(0)}{t} =1+t\sin\left(\frac{1}{t^2}\right), $$

which tends to \(1\) as \(t\) tends to zero. Hence \(f'(0)=1>0\). But for \(t\ne0\),

$$ f'(t)=1+2t\sin\left(\frac{1}{t^2}\right)-\frac{2}{t}\cos\left(\frac{1}{t^2}\right). $$

Take \(t_n=1/\sqrt{2\pi n}\) for positive integers \(n\). Then \(\sin(1/t_n^2)=0\), \(\cos(1/t_n^2)=1\), and

$$ f'(t_n)=1-\frac{2}{t_n}<0 $$

for all sufficiently large \(n\). These points approach zero, so \(f'\) is not positive throughout any interval around zero. The correction is to use \(f'(a)>0\) only for the positive tangent slope at \(a\); to conclude that \(f\) increases on an interval, verify \(f'(x)>0\) throughout that interval.

A Practical Matching Procedure

When comparing several candidate sketches, use all three graphs together rather than relying on visual resemblance alone. Mark the important \(x\)-values—zeros, turning points, and points where a derivative is undefined—and compare the behavior on the intervals between them.

  1. Read the sign of \(f'\). Where it is positive or negative throughout an interval, check that \(f\) rises or falls there.
  2. Read the sign of \(f''\). Where it is positive or negative throughout an interval, check that \(f'\) rises or falls there, and that \(f\) is concave up or down.
  3. Check zeros with care. A zero of \(f'\) gives a horizontal tangent if the derivative exists; a local extremum requires a suitable sign change. A zero of \(f''\) does not by itself establish an inflection point.
  4. Check the derivative relationships. The slope of the \(f\)-graph at a point must agree with the value of the \(f'\)-graph there. The slope of the \(f'\)-graph must agree with the value of the \(f''\)-graph where that derivative exists.
  5. Allow for vertical shifts. If no function value is specified, different vertical placements of \(f\) can have the same derivative graphs.

A good match must satisfy every available check, not just one. For example, a proposed \(f\)-graph might have the right local maximum but the wrong concavity; a proposed \(f'\)-graph might have the right zeros but decrease where \(f''\) is positive. Any such contradiction rules out the triple.

Check Your Understanding

Use interval signs and derivative relationships to answer the following questions.

  1. If \(f'(x)<0\) throughout an interval, what must the graph of \(f\) do on that interval?
  2. If \(f''(x)>0\) throughout an interval, how does \(f'\) behave there, and what is the concavity of \(f\)?
  3. What does \(f'(a)>0\) tell you at the single point \(a\), and what additional information is needed to conclude that \(f\) increases on an interval?
  4. If \(f'(a)=0\), what can you conclude about the tangent at \(a\), and what further evidence is needed to classify a local extremum?
  5. Why does \(f''(a)=0\) alone fail to guarantee an inflection point?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon