Skip to main content
Mathematics LibreTexts

3.3: The First Derivative and the Shape of f

  • Page ID
    212024
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    This section examines some of the interplay between the shape of the graph of a function \(f\) and the behavior of its derivative, \(f'\). If we have a graph of \(f\), we will investigate what we can conclude about the values of \(f'\). And if we know values of \(f'\), we will investigate what we can conclude about the graph of \(f\).

    Definitions

    Given any interval \(I\), a function \(f\) is …

    • increasing on \(I\) if, for all \(x_1\) and \(x_2\) in \(I\), \(x_1 < x_2 \Rightarrow f(x_1) < f(x_2)\)
    • decreasing on \(I\) if, for all \(x_1\) and \(x_2\) in \(I\), \(x_1 < x_2 \Rightarrow f(x_1) > f(x_2)\)
    • monotonic on \(I\) if \(f\) is increasing or if \(f\) is or decreasing on \(I\)

    In this definition, \(I\) can be of the form \((a,b)\), \([a,b)\), \((a,b]\), \([a,b]\), \((-\infty,b)\), \((-\infty,b]\), \((a,\infty)\), \([a,\infty)\) or \((-\infty,\infty)\), where \(a < b\).

    Graphically, \(f\) is increasing (decreasing) if, as we move from left to right along the graph of \(f\), the height of the graph increases (decreases).

    These same ideas make sense if we consider \(h(t)\) to be the height (in feet) of a rocket at time \(t\) seconds. We naturally say that the rocket is rising or that its height is increasing if the height \(h(t)\) increases over a period of time, as \(t\) increases.

    Example \(\PageIndex{1}\)

    List the intervals on which the function graphed below is increasing or decreasing.

    A blue curve labeled 'y = f(x)' starts at x = 0 and rises to about x = 0.5, then descends to a low point at x = 2 before rising again to x = 3. It is constant between x = 3 and x = 4, then rises in a concave-down shape to a peak at x = 6 before falling to (8,0).

    Solution

    \(f\) is increasing on the intervals \([0,0.3]\) (approximately), \([2,3]\) and \([4,6]\). \(f\) is decreasing on (approximately) \([0.3,2]\) and \([6,8]\). On the interval \([3,4]\) the function is not increasing or decreasing — it is constant. It is also valid to say that \(f\) is increasing on the intervals \([0.5, 0.8]\) and \((0.5, 0.8)\) as well as many others, but we usually talk about the longest intervals on which \(f\) is monotonic.

    Practice \(\PageIndex{1}\)

    List the intervals on which the function graphed below is increasing or decreasing.

    A red curve starts at a positive output value when the input is 0, crosses the horizontal axis around 0.7, falls to a low point at 2, rises through (3,0) to a peark near 4, falls a bit until 5, where it is constant until 6, then rises again to 8.5.

    Answer

    \(g\) is increasing on \([2, 4]\) and \([6, 8]\); \(g\) is decreasing on \([0, 2]\) and \([4, 5]\); \(g\) is constant on \([5, 6]\).

    If we have an accurate graph of a function, then it is relatively easy to determine where \(f\) is monotonic, but if the function is defined by a formula, then a little more work is required. The next two theorems relate the values of the derivative of \(f\) to the monotonicity of \(f\). The first theorem says that if we know where \(f\) is monotonic, then we also know something about the values of \(f'\). The second theorem says that if we know about the values of \(f'\) then we can draw conclusions about where \(f\) is monotonic.

    First Shape Theorem

    For a function \(f\) that is differentiable on an interval \((a,b)\):

    • if \(f\) is increasing on \((a,b)\) then \(f'(x) \geq 0\) for all \(x\) in \((a,b)\)
    • if \(f\) is decreasing on \((a,b)\) then \(f'(x) \leq 0\) for all \(x\) in \((a,b)\)
    • if \(f\) is constant on \((a,b)\), then \(f'(x) = 0\) for all \(x\) in \((a,b)\)
    Proof

    Most people find a picture such as the one below:

    A concave-up red curve labeled 'y = f(x)' with a blue line segment tangent to the curve at a point labeled (x,f(x)).

    to be a convincing justification of this theorem: if the graph of \(f\) increases near a point \((x, f(x))\), then the tangent line is also increasing, and the slope of the tangent line is positive (or perhaps zero at a few places). A more precise proof, however, requires that we use the definitions of the derivative of \(f\) and of “increasing” (given above).

    Case I: Assume that \(f\) is increasing on \((a,b)\). We know that \(f\) is differentiable, so if \(x\) is any number in the interval \((a,b)\) then\[f'(x) = \lim_{h\to 0}\, \frac{f(x + h) - f(x)}{h}\]and this limit exists and is a finite value. If \(h\) is any small enough positive number so that \(x + h\) is also in the interval \((a,b)\), then \(x < x + h \Rightarrow f(x) < f(x + h)\) (by the definition of “increasing”). We know that the numerator, \(f(x + h) - f(x)\), and the denominator, \(h\), are both positive, so the limiting value, \(f'(x)\), must be positive or zero: \(f'(x) \geq 0\).

    Case II: (The proof of this part is very similar to the “increasing” proof.) Assume that \(f\) is decreasing on \((a,b)\). If \(x < x + h\), then \(f(x) > f(x + h)\) (by the definition of “decreasing”). So the numerator of the limit, \(f(x + h) - f(x)\), will be negative but the denominator, \(h\), will still be positive, so the limiting value, \(f'(x)\), must be negative or zero: \(f'(x) \leq 0\).

    Case III: The derivative of a constant is \(0\), so if \(f\) is constant on \((a,b)\) then \(f'(x) = 0\) for all \(x\) in \((a,b)\).

    The previous theorem is easy to understand, but you need to pay attention to exactly what it says and what it does not say. It is possible for a differentiable function that is increasing on an interval to have horizontal tangent lines at some places in the interval:

    A red curve labeled 'f increasing' that starts concave down, increases to a point where it flattens out (labeled f'=0) before increasing again in a concave-up shape, then transitions at a sharp corner to a line segment of positive slope.

    It is also possible for a continuous function that is increasing on an interval to have an undefined derivative at some places in the interval. Finally, it is possible for a function that is increasing on an interval to fail to be continuous at some places in the interval:

    A blue graph labeled 'f inceasing on [0,4]' starts with a blue dot at a negative value for x = 0, rises toward an open dot at a negative value at x = 1, then continue rising from a closed dot at a positive value to another closed dot at x = 2, and finally continues rising from a higher open dot at x = 2 to another closed dot at x = 4.

    The First Shape Theorem has a natural interpretation in terms of the height \(h(t)\) and upward velocity \(h'(t)\) of a helicopter at time \(t\). If the height of the helicopter is increasing (\(h(t)\) is an increasing function), then the helicopter has a positive or zero upward velocity: \(h'(t) \geq 0\). If the height of the helicopter is not changing, then its upward velocity is \(0\): \(h'(t) = 0\).

    Example \(\PageIndex{2}\)

    The figure below shows the height of a helicopter during a period of time:

    This graph depicts a red curve representing height in feet over time in minutes, plotted on a coordinate plane with markers from zero to seven on the horizontal axis and height increments up to fifty on the vertical axis. The curve begins at the origin and rises to a local maximum at two minutes, which is indicated by a vertical dashed line. Following this peak, the height decreases to a local minimum at three minutes, also marked with a vertical dashed line. From the three-minute mark, the curve climbs steeply to reach its absolute maximum height of fifty feet at exactly five minutes, identified by a third vertical dashed line. After this high point, the curve descends rapidly, returning to a height of zero at seven minutes.

    Sketch the graph of the upward velocity of the helicopter, \(\displaystyle \frac{dh}{dt}\).

    Solution

    The graph of \(\displaystyle v(t) = \frac{dh}{dt}\) appears below:

    This graph represents a velocity function plotted over time on a coordinate plane. The horizontal axis measures time in minutes, from zero to seven, while the vertical axis measures velocity in feet per minute, ranging from positive 25 to negative 25. The blue curve illustrates how the rate of change of an object fluctuates over this period. The curve starts at a positive velocity on the vertical axis and stays positive for the first two minutes, though it gradually decreases. At exactly two minutes, the curve crosses the horizontal axis, meaning the velocity is zero. It then dips into negative values, reaching a local minimum near two and a half minutes before climbing back to cross the horizontal axis again at three minutes. From three to five minutes, the velocity is positive again, forming a large rounded peak that reaches its highest point at four minutes. At five minutes, the velocity returns to zero as the curve crosses the horizontal axis a third time. For the remainder of the graph, from five to seven minutes, the velocity remains negative, dropping into a deep valley before starting to turn upward just before the seven-minute mark.

    Notice that \(h(t)\) has a local maximum when \(t = 2\) and \(t = 5\), and that \(v(2) = 0\) and \(v(5) = 0\). Similarly, \(h(t)\) has a local minimum when \(t = 3\), and \(v(3) = 0\). When \(h\) is increasing, \(v\) is positive. When \(h\) is decreasing, \(v\) is negative.

    Practice \(\PageIndex{2}\)

    The figure below shows the population of rabbits on an island during a 6-year period:

    This graph displays a population over time, with the vertical axis labeled rabbits in thousands and the horizontal axis labeled by year from ninety-seven to zero-three. The red curve shows that the population begins at a relatively high level in ninety-seven and decreases steadily to a local minimum around ninety-nine. After this point, the population begins to climb until it reaches a plateau, where the curve becomes a perfectly horizontal line for about one year between zero-zero and zero-one. Following this stable period, the population surges upward to reach its absolute maximum height in early zero-two before starting a new downward trend. The graph includes a small jump or break in the line at the start of the plateau.

    Sketch the graph of the rate of population change, \(\displaystyle \frac{dR}{dt}\), during those years.

    Answer

    The graph below shows the rate of population change, \(\displaystyle \frac{dR}{dt}\):

    A line graph titled rate of population change (1000s/year) versus year. The vertical axis is labeled from -1 to 2. The horizontal axis includes markers for '89, '91, and '93. A blue curve begins at -1 and stays flat until 1989. It then rises to a peak around 1.0, falls back to zero by 1990, remains at zero until 1991, rises to a much higher peak of nearly 2.0, and finally drops back down toward -1 by 1993.

    Example \(\PageIndex{3}\)

    A graph of \(f\) appears below:

    This image shows a red function labeled y equals f of x on a coordinate plane with horizontal markers from negative two to eight. The function exhibits a variety of behaviors across the interval. Starting from the left, it descends into a smooth, rounded local minimum near x equals negative one. It then rises steadily, crossing the vertical axis and continuing upward to form a broad, smooth local maximum around x equals two. After this peak, the curve slopes downward until it reaches x equals five, where there is a sharp jump or drop-off. From this new lower point at x equals five, the function continues as a straight diagonal line that slopes downward at a constant rate, eventually crossing the horizontal axis near x equals eight.

    Sketch a graph of \(f'\).

    Solution

    It is a good idea to look first for the points where \(f'(x) = 0\) or where f is not differentiable (the critical points of \(f\)). These locations are usually easy to spot, and they naturally break the problem into several smaller pieces. The only numbers at which \(f'(x) = 0\) are \(x = -1\) and \(x = 2\), so the only places the graph of \(f'(x)\) will cross the \(x\)-axis are at \(x = -1\) and \(x = 2\): we can therefore plot the points \((-1,0)\) and \((2,0)\) on the graph of \(f'\). The only place where \(f\) is not differentiable is at the “corner” above \(x = 5\), so the graph of \(f'\) will not be defined for \(x = 5\). The rest of the graph of \(f\) is relatively easy to sketch:

    • if \(x < -1\) then \(f(x)\) is decreasing so \(f'(x)\) is negative
    • if \(-1 < x < 2\) then \(f(x)\) is increasing so \(f '(x)\) is positive
    • if \(2 < x < 5\) then \(f(x)\) is decreasing so \(f'(x)\) is negative
    • if \(5 < x\) then \(f(x)\) is decreasing so \(f'(x)\) is negative

    A graph of \(f'\) appears below:

    This graph represents the derivative of the previous function, labeled y equals f prime of x. Because it is a derivative graph, its position relative to the horizontal axis tells us whether the original function is increasing or decreasing. The blue curve starts below the horizontal axis, indicating the original function was decreasing, and crosses upward at x equals negative one, which corresponds to the local minimum seen in the previous image. The derivative reaches a peak and then crosses back down through the horizontal axis at x equals two, corresponding to the previous local maximum. At x equals five, the derivative has a significant jump between two open circles. Beyond x equals five, the derivative becomes a horizontal line at a constant negative value.

    \(f(x)\) is continuous at \(x =5\), but not differentiable at \(x = 5\) (indicated by the “hole”).

    Practice \(\PageIndex{3}\)

    A graph of \(f\) appears below:

    Twenty-Eighth Image (fig303_11.png) This graph depicts a smooth red curve labeled y equals f of x on a coordinate plane with horizontal markers from zero to ten. The function begins at a point above the horizontal axis and initially slopes downward into a broad, shallow valley, reaching its lowest point near x equals two. From this local minimum, the curve rises steadily and passes through a point of inflection where its curvature shifts. It continues upward to form a rounded peak near x equals seven, which serves as a local maximum. After this peak, the function trends downward again toward the end of the visible interval.

    Sketch a graph of \(f'\). (The graph of \(f\) has a “corner” at \(x = 5\).)

    Answer

    A graph of \(f'\) appears below:

    Two graphs, one above the other. The upper graph depicts a smooth red curve labeled y equals f of x on a coordinate plane with horizontal markers from zero to ten. The function begins at a point above the horizontal axis and initially slopes downward into a broad, shallow valley, reaching its lowest point near x equals two. From this local minimum, the curve rises steadily and passes through a point of inflection where its curvature shifts. It continues upward to form a rounded peak near x equals seven, which serves as a local maximum. After this peak, the function trends downward again toward the end of the visible interval. Two vertical dashed-black lines connect the top and bottom graphs at x = 1, x = 3  and x = 5. The bottom graph includes a blue curve that begins constant from x = -2 to x = 0.75, then smoothly transitions to a concave-up curve that passes through (1,0) before reaching a low point near (2,-1), transitions to concave down near x = 2.5, passes through (3,0) and stops near (5,0.8), then continues from (5,-0.9) as a horizontal line segment.

    Notice how the graph of \(f'\) is \(0\) where \(f\) has a maximum or minimum.

    The next theorem is almost the converse of the First Shape Theorem and explains the relationship between the values of the derivative and the graph of a function from a different perspective. It says that if we know something about the values of \(f'\), then we can draw some conclusions about the shape of the graph of \(f\).

    Second Shape Theorem

    For a function \(f\) that is differentiable on an interval \(I\):

    • if \(f'(x) > 0\) for all \(x\) in the interval \(I\), then \(f\) is increasing on \(I\)
    • if \(f'(x) < 0\) for all \(x\) in the interval \(I\), then \(f\) is decreasing on \(I\)
    • if \(f'(x) = 0\) for all \(x\) in the interval \(I\), then \(f\) is constant on \(I\)
    Proof

    This theorem follows directly from the Mean Value Theorem, and the last part is just a restatement of the First Corollary of the Mean Value Theorem.

    Case I: Assume that \(f'(x) > 0\) for all \(x\) in \(I\) and pick any points \(a\) and \(b\) in \(I\) with \(a < b\). Then, by the Mean Value Theorem, there is a point \(c\) between \(a\) and \(b\) so that \(\displaystyle \frac{f(b) - f(a)}{b - a} = f'(c) > 0\) and we can conclude that \(f(b) - f(a) > 0\), which means that \(f(b) > f(a)\). Because \(a < b \Rightarrow f(a) < f(b)\), we know that \(f\) is increasing on \(I\).

    Case II: Assume that \(f'(x) < 0\) for all \(x\) in \(I\) and pick any points \(a\) and \(b\) in \(I\) with \(a < b\). Then there is a point \(c\) between \(a\) and \(b\) so that \(\displaystyle \frac{f(b) - f(a)}{b - a} = f'(c) < 0\), and we can conclude that \(f(b) - f(a) = (b-a)f'(c) < 0\) so \(f(b) < f(a)\). Because \(a < b \Rightarrow f(a) > f(b)\), we know \(f\) is decreasing on \(I\).

    Practice \(\PageIndex{4}\)

    Rewrite the Second Shape Theorem as a statement about the height \(h(t)\) and upward velocity \(h'(t)\) of a helicopter at time \(t\) seconds.

    Answer

    The Second Shape Theorem for helicopters:

    • If the upward velocity \(h'\) is positive during time interval \(I\) then the height \(h\) is increasing during time interval \(I\).
    • If the upward velocity \(h'\) is negative during time interval \(I\) then the height \(h\) is decreasing during time interval \(I\).
    • If the upward velocity \(h'\) is zero during time interval \(I\) then the height \(h\) is constant during time interval \(I\).

    The value of a function \(f\) at a number \(x\) tells us the height of the graph of \(f\) above or below the point \((x,0)\) on the \(x\)-axis. The value of \(f'\) at a number \(x\) tells us whether the graph of \(f\) is increasing or decreasing (or neither) as the graph passes through the point \((x, f(x))\) on the graph of \(f\). If \(f(x)\) is positive, it is possible for \(f'(x)\) to be positive, negative, zero or undefined: the value of \(f(x)\) has absolutely nothing to do with the value of \(f'\). The figure below illustrates some of the possible combinations of values for \(f\) and \(f'\):

    This image shows the derivative of the previous function, labeled y equals f prime of x. The blue curve illustrates the rate of change of the original function f. It starts at a negative value on the vertical axis, corresponding to the initial downward slope of the red graph. The curve crosses the horizontal axis at x equals two, exactly where the original function had its local minimum. Between x equals two and x equals seven, the derivative is positive, reaching its own peak around x equals four, which corresponds to the steepest upward part of the original function. The derivative crosses the horizontal axis again at x equals seven, matching the location of the original function's local maximum. For x values greater than seven, the blue curve remains below the horizontal axis, indicating the original function is decreasing.

    Practice \(\PageIndex{5}\)

    Graph a continuous function that satisfies the conditions on \(f\) and \(f'\) given below:

    \(x\) \(-2\) \(-1\) \(0\) \(1\) \(2\) \(3\)
    \(f(x)\) \(1\) \(-1\) \(-2\) \(-1\) \(0\) \(2\)
    \(f'(x)\) \(-1\) \(0\) \(1\) \(2\) \(-1\) \(1\)
    Answer

    A graph satisfying the conditions in the table appears below:

    A graph of a red curve on a [-2.5,3.5]X[-2.5,2.5] grid that starts in a concave-down shape near (-2.5,15), passes through (-1.3,0), becomes condave up before flattening near (-1,-1), then becoming conave down and decreasing, turning to concave up near (-0.5,-1.5), reaching a low point near (-0.2,-2.2), transitioning to concave down and increasing near (0.2,-1.8), then to concave up and increasing (0.7,-1.4), then to concave down and increasing near (1.2,-0.6) before passing through (1.4,0) and peaking near (1.7,0.2), transition to concave up at (2,0), reaching a low point near (2.3,-0.2) before finally transitioning to concave down near (2.7,1.5).

    The Second Shape Theorem can be particularly useful if we need to graph a function \(f\) defined by a formula. Between any two consecutive critical numbers of \(f\), the graph of \(f\) is monotonic (why?). If we can find all of the critical numbers of \(f\), then the domain of \(f\) will be broken naturally into a number of pieces on which \(f\) will be monotonic.

    Example \(\PageIndex{4}\)

    Use information about the values of \(f'\) to help graph \(f(x) = x^3- 6x^2 + 9x + 1\).

    Solution

    \(f'(x) = 3x^2- 12x + 9 = 3(x - 1)(x - 3)\) so \(f'(x) = 0\) only when \(x = 1\) or \(x = 3\); \(f'\) is a polynomial, so it is always defined. The only critical numbers, \(x = 1\) and \(x = 3\), break the real number line into three pieces on which \(f\) is monotonic: \((-\infty , 1)\), \((1,3)\) and \((3, \infty)\).

    • \(x < 1 \Rightarrow f'(x) = 3(\mbox{negative})(\mbox{negative}) > 0 \Rightarrow f\) increasing
    • \(1 < x < 3 \Rightarrow f'(x) = 3(\mbox{positive})(\mbox{negative}) < 0 \Rightarrow f\) is decreasing
    • \(3 < x\ \Rightarrow f'(x) = 3(\mbox{positive})(\mbox{positive}) > 0 \Rightarrow f\) is increasing

    Although we don’t yet know the value of \(f\) anywhere, we do know a lot about the shape of the graph of \(f\): as we move from left to right along the \(x\)-axis, the graph of \(f\) increases until \(x = 1\), then decreases until \(x = 3\), after which the graph increases again:

    This graph represents the second derivative, labeled y equals f double prime of x, plotted as a green curve. This graph provides information about the concavity of the original function f. The curve begins at a positive value and remains above the horizontal axis until approximately x equals four. This positive region indicates that the original function is concave up (shaped like a cup) during that interval. At x equals four, the green curve crosses the horizontal axis, identifying an inflection point where the original function's curvature changes. For the remainder of the graph, from x equals four to ten, the second derivative is negative, staying below the horizontal axis.

    The graph of \(f\) “turns” when \(x = 1\) and \(x = 3\). To plot the graph of \(f\), we still need to evaluate \(f\) at a few values of \(x\), but only at a very few values: \(f(1) = 5\), and \((1,5)\) is a local maximum of \(f\); \(f(3) = 1\), and \((3,1)\) is a local minimum of \(f\). A graph of \(f\) appears below:

    A red graph of f(x) = x^3- 6x^2 + 9x + 1 between x = -1 and x = 4.

    Practice \(\PageIndex{6}\)

    Use information about the values of \(f'\) to help graph the function \(f(x) = x^3- 3x^2- 24x + 5\).

    Answer

    \(f'(x) = 3x^2- 6x - 24 = 3(x - 4)(x + 2)\) so \(f'(x) = 0\) if \(x = -2\) or \(x = 4\).

    • \(x < -2 \Rightarrow f'(x) = 3(\mbox{negative})(\mbox{negative}) > 0 \Rightarrow f\) increasing
    • \mbox{\(-2 < x < 4 \Rightarrow f'(x) = 3(\mbox{negative})(\mbox{positive}) < 0 \Rightarrow f\) decreasing}
    • \(x > 4 \Rightarrow f'(x) = 3(\mbox{positive})(\mbox{positive}) > 0 \Rightarrow f\) increasing

    Thus \(f\) has a relative maximum at \(x = -2\) and a relative minimum at \(x = 4\). A graph of \(f\) below:

    A graph of f(x) = x^3- 3x^2- 24x + 5 on a [-5.5,7.5]X[-120,100] grid.

    Example \(\PageIndex{5}\)

    Use the graph of \(f'\) below:

    A blue parabolic curve that starts near (0,9), descends through (0,1) to a vertex at (2,-3), and then ascends through (3,0).

    to sketch the shape of the graph of \(f\). Why isn't the graph of \(f'\) enough to completely determine the graph of \(f\)?

    Solution

    Several functions that have the derivative we want appear below:

    The top graph shows a blue parabolic curve that starts near (0,9), descends through (0,1) to a vertex at (2,-3), and then ascends through (3,0). Dashed-black vertical lines at x = 1 and x = 3 p[ass through this graph and continue to a second graph below. The second graph has a red cubic curve that ascends through (0,0), peaks at (1,4) and descends to a low point at (3,0) before ascending again. Above the red curve is an identical yellow curve three vertical units higher, and below the red curve is an identical green curve two vertical units lower.

    and each provides a correct answer. By the Second Corollary to the Mean Value Theorem, we know there is a whole family of “parallel” functions that share the derivative we want, and each of these functions provides a correct answer. If we had additional information about the function — such as a point it passes through — then only one member of the family would satisfy the extra condition and there would be only one correct answer.

    Practice \(\PageIndex{7}\)

    Use the graph of \(g'\) provided below to sketch the shape of a graph of \(g\):

    A red curve labeled y=g'(x) on a [0,5.5]X[-1.2,1.2] grid increases in a concave-up shape through (0,-1) and (1,0), becoming concave down near(1.5,.5) and reaching a rounded peak near (2,1) before descending in roughly linear fashion through (3,0) to an open dot at (4,-1). The curve continues as a horizontal line segment beginning at (4,1).

    Answer

    The figure below left shows several possible graphs for \(g\):

    Two graphs, one above the other, connected by dashed-black vertical lines at x = 1, 3 and 4. In the upper graphs, a red curve labeled y=g'(x) on a [0,5.5]X[-1.2,1.2] grid increases in a concave-up shape through (0,-1) and (1,0), becoming concave down near(1.5,.5) and reaching a rounded peak near (2,1) before descending in roughly linear fashion through (3,0) to an open dot at (4,-1). The curve continues as a horizontal line segment beginning at (4,1). The lower graph shows three blue curves. The uppermost of the three blue curves starts concave up and decreasing, passing through (0,1) before reaching a low point near (1,0.2), transitioning to concave down near (2,0.7), reaching a peak near (3,1.2)  and heading down to (4,0.2), where it has a sharp corner and becomes a line segment with slope 1. The middle curve is the top curve shifted down by 1 and the bottom curve is the top curve shifted down by 1.5.

    Each has the correct shape to give the graph of \(g'\). Notice that the graphs of \(g\) are “parallel” (differ by a constant).

    Practice \(\PageIndex{8}\)

    A weather balloon is released from the ground and sends back its upward velocity measurements:

    A red curve on a [[0,7]X[-1.5,3.5] grid with horizontal axis labeled 'time of day (PM)' and vertical axis labeled 'velocity (km/hr)/' The curve beigns as a horizontal line segment between (0,2) and (1,2), then increases in a concave-down shape to a peak near (2,) before descending through (4,0), where it becomes concave up, reaching a low point near (5,-1)and then ascending in roughly linear fashion through (6,0) toward (7,1).

    Sketch a graph of the height of the balloon. When was the balloon highest?

    Answer

    The figure below shows the height graph for the balloon:

    Two graphs, one above the other, connected by dashed-black vertical line segments at x = 4 and 6. The upper graph has a red curve on a [[0,7]X[-1.5,3.5] grid with horizontal axis labeled 'time of day (PM)' and vertical axis labeled 'velocity (km/hr)/' The curve beigns as a horizontal line segment between (0,2) and (1,2), then increases in a concave-down shape to a peak near (2,) before descending through (4,0), where it becomes concave up, reaching a low point near (5,-1)and then ascending in roughly linear fashion through (6,0) toward (7,1). The lower graph has a blue crive on a [0,7.5]X[0,8.5] grid with the horizontal axis labeled 'times of day (PM)' and the vertical axis labeled 'height (km).' The curve starts linearly from (0,0) to (1,2), then bends concave up and increasing, transitioning to concave down and increasing near (2,4.5), reached a peak near (4,7.5), transitions to concave up as it decreases through (5,7), reaches a low point near (6,6) and then increases slightly.

    The balloon was highest at 4 p.m. and had a local minimum at 6 p.m.

    Using the Derivative to Test for Extremes

    The first derivative of a function tells about the general shape of the function, and we can use that shape information to determine whether an extreme point is a (local) maximum or minimum or neither.

    First Derivative Test for Local Extremes

    Let \(f\) be a continuous function with \(f'(c) = 0\) or \(f'(c)\) undefined.

    • If \(f'(\mbox{left of }c) > 0\) and \(f'(\mbox{right of }c) < 0\) then \((c,f(c))\) is a local maximum.
    • If \(f'(\mbox{left of }c) < 0\) and \(f'(\mbox{right of }c) > 0\) then \((c,f(c))\) is a local minimum.
    • If \(f'(\mbox{left of }c) > 0\) and \(f'(\mbox{right of }c) > 0\) then \((c,f(c))\) is not a local extreme.
    • If \(f'(\mbox{left of }c) < 0\) and \(f'(\mbox{right of }c) < 0\) then \((c,f(c))\) is not a local extreme.

    Four graphs: a red inverted-U shape with a black dot at top labeled 'max,' f'(x) 0 to the left and f'(x) < 0 to the right; a red U-shaped graph with black dot at bottom labeled 'min,' f'(x) < 0 to the left and f'(x) > 0 to the right; an increasing blue graph with a black dot at a central point where the graph flattens labeled 'not max, not min,' f'(x) > 0 to the right and left; a decreasing blue graph with a black dot at a central point where the graph flattens labeled 'not max, not min,' f'(x) < 0 to the right and left." class="internal default" style="width: 1021px; height: 200px;" width="1021px" height="200px" src="/@api/deki/files/140441/fig303_19a.png">

    Practice \(\PageIndex{9}\)

    Find all extremes of \(f(x) = 3x^2- 12x + 7\) and use the First Derivative Test to classify them as maximums, minimums or neither.

    Answer

    \(f'(x) = 6x - 12\) so \(f'(x) = 0\) only if \(x = 2\).

    • \(x < 2 \Rightarrow f'(x) < 0 \Rightarrow f\) decreasing
    • \(x > 2 \Rightarrow f'(x) > 0 \Rightarrow f\) increasing

    From this we can conclude that \(f\) has a minimum when \(x = 2\) and has a shape similar to graph below:

    A blue graph of a f(x) = 3x^2- 12x + 7 ona [-1.5]X[-5,25] grid with a dashed-black vertical line at x = 2 denoting the vertex of the parabola. A label to the left of the dashed line reads f'(x)<0 and a label to the right reads f'(x)0." class="internal default" style="width: 424px; height: 445px;" width="424px" height="445px" src="/@api/deki/files/140438/fig303_39.png">

    We could also have noticed that the graph of the quadratic function \(f(x) = 3x^2 - 12x + 7\) must be an upward-opening parabola.

    Problems

    In Problems 1–3, sketch the graph of the derivative of each function.

    1. A line graph of the function y=f(x) on a coordinate plane with tick marks. A red line begins in the upper-left quadrant, crosses the y-axis at a positive value, and slopes downward into the lower-right quadrant. Near the bottom of the visible area, the line curves gently upward, forming the base of a parabola-like shape.
    2. A line graph of the function y=g(x) on a coordinate plane with tick marks. A blue curve forms a smooth, symmetrical "bell shape" or hill. It starts near the x-axis, rises to a single peak centered over the second tick mark of the horizontal axis, and then tapers back down toward the x-axis on the right.
    3. A line graph of the function y=h(x) on a coordinate plane with tick marks but no numerical labels. The graph consists of three connected linear segments: the first starts below the x-axis and rises to a peak in the first quadrant; the second segment slopes downward to a local minimum; and the third segment slopes upward again. The shape resembles a jagged letter 'N'.

    Problems 4–6 show the graph of the height of a helicopter; sketch a graph of its upward velocity.

    1. A line graph titled "height (feet)" versus "time (minutes)". The vertical axis is labeled from 0 to 300 with increments of 100. The horizontal axis is labeled from 0 to 10 with markers every 1 unit. A red curve begins at (0, 100), rises to a peak of 300 feet at approximately 4 minutes, and then curves downward, leveling off near 50 feet by the 10-minute mark.
    2. A line graph titled "height (feet)" versus "time (minutes)". The vertical axis shows labels for 100, 200, and 300. The horizontal axis shows labels for 5 and 10. A red curve starts at (0, 100), dips down to a minimum height of approximately 40 feet at the 4-minute mark, and then rises sharply, ending at approximately 275 feet at 10 minutes.
    3. A line graph titled "height (feet)" versus "time (minutes)". The vertical axis is marked 0 to 300. The horizontal axis is marked 0 to 10. A red curve starts at (0, 0), rises steeply to a plateau of 250 feet at 3 minutes, stays flat until about 8 minutes, and then drops steeply back to 0 feet at the 10-minute mark.
    4. In the figure below, match the graphs of the functions with those of their derivatives.
      A comparison chart labeled "Functions f" (red curves A, B, C) and "Derivatives f'" (blue curves P, Q, R): A is a wave-like curve with a peak and a valley; B is a parabola opening upward, crossing the x-axis twice; C is A curve starting below the x-axis and rising steadily with increasing steepness; P is A straight line with a positive slope crossing the x-axis; Q is a curve that stays positive, dips into a deep valley (partially negative), and rises again; R is a curve that stays entirely positive and increases in steepness.
    5. Match the graphs showing the heights of rockets with those showing their velocities.
      A comparison chart labeled "Height" (red curves A, B, C) and "Velocity" (blue curves P, Q, R) is a is a steep rise to a peak, followed by a sharp change to a shallower downward slope; B is a curve that remains low for a while before rising steeply to a peak and then dropping; C is a curve starting near the origin that rises quickly and then levels off into a horizontal plateau; P is a curve starting positive, crossing the x-axis, and ending with a flat, disjointed horizontal segment; Q is a curve starting high and decreasing towards a positive horizontal asymptote (staying above the axis); R is a curve starting at zero, rising to a high peak, and then dropping sharply across the x-axis.
    6. Use the Second Shape Theorem to show that \(f(x) = \ln(x)\) is monotonic increasing on the interval \((0, \infty)\).
    7. Use the Second Shape Theorem to show that \(g(x) = e^x\) is monotonic increasing on the entire real number line.
    8. A student is working with a complicated function \(f\) and has shown that the derivative of \(f\) is always positive. A minute later the student also claims that \(f(x) = 2\) when \(x = 1\) and when \(x = \pi\). Without checking the student’s work, how can you be certain that it contains an error?
    9. The figure below shows the graph of the derivative of a continuous function \(f\).
      A line graph of the derivative function y = f'(x) on a coordinate plane. The horizontal axis has tick marks for 5 and 10. A red curve begins below the x-axis, crosses it at x≈2, rises to a maximum positive value near x = 5, and then curves downward, staying above the x-axis as it tapers off toward the right.
      1. List the critical numbers of \(f\).
      2. What values of \(x\) result in a local maximum?
      3. What values of \(x\) result in a local minimum?
    10. The figure below shows the graph of the derivative of a continuous function \(g\).
      A line graph of the derivative function y = g'(x). The horizontal axis has tick marks for 5 and 10. A blue curve starts at a high positive value on the y-axis, descends to touch but not cross the x-axis at x≈3 (a local minimum), rises to a local maximum at x≈6, and then crosses the x-axis into negative values at x≈8.
      1. List the critical numbers of \(g\).
      2. What values of \(x\) result in a local maximum?
      3. What values of \(x\) result in a local minimum?

    Problems 14–16 show the graphs of the upward velocities of three helicopters. Use the graphs to determine when each helicopter was at a (relative) maximum or minimum height.

    1. A line graph showing velocity versus time. The vertical axis is labeled 'velocity' and the horizontal axis is labeled 'time' with a tick mark for 5. A blue curve starts at a high positive velocity, crosses the x-axis to become negative, returns to positive velocity at x≈4, reaches a local peak at x≈6, and then crosses back into negative territory.
    2. A velocity versus time graph with a horizontal axis marked with 5. A blue curve starts at a positive velocity, dips slightly, rises to a tall peak just before x=5, drops to a smaller shoulder-like peak, and then crosses the time axis at the eighth tick mark into negative velocity.
    3. A velocity versus time graph with a horizontal axis marked with 5. A blue curve starts at zero, stays very low for the first few tick marks, then rises steadily to a peak around x=6, and finally curves slightly downward, staying at a high positive velocity through the end of the graph.

    In 17–22, use information from the derivative of each function to help you graph the function. Find all local maximums and minimums of each function.

    1. \(f(x) = x^3- 3x^2- 9x - 5\)
    2. \(g(x) = 2x^3- 15x^2 + 6\)
    3. \(h(x) = x^4- 8x^2 + 3\)
    4. \(s(t) = t + \sin(t)\)
    5. \(\displaystyle r(t) = \frac{2}{t^2 + 1}\)
    6. \(\displaystyle f(x) = \frac{x^2 + 3}{x}\)
    7. \(f(x) = 2x + \cos(x)\) so \(f(0) = 1\). Without graphing the function, you can be certain that \(f\) has how many positive roots?
    8. \(g(x) = 2x - \cos(x)\) so \(g(0) = -1\). Without graphing the function, you can be certain that \(g\) has how many positive roots?
    9. \(h(x) = x^3 + 9x - 10\) has a root at \(x = 1\). Without graphing \(h\), show that \(h\) has no other roots.
    10. Sketch the graphs of monotonic decreasing functions that have exactly
      1. no roots
      2. one root and
      3. two roots.
    11. Each of the following statements is false. Give (or sketch) a counterexample for each statement.
      1. If \(f\) is increasing on an interval \(I\), then \(f'(x) > 0\) for all \(x\) in \(I\).
      2. If \(f\) is increasing and differentiable on \(I\), then \(f'(x) > 0\) for all \(x\) in \(I\).
      3. If cars A and B always have the same speed, then they will always be the same distance apart.
      1. Find several different functions \(f\) that all have the same derivative \(f'(x) = 2\).
      2. Determine a function \(f\) with derivative \(f'(x) = 2\) that also satisfies \(f(1) = 5\).
      3. Determine a function \(g\) with \(g'(x) = 2\) for which the graph of \(g\) goes through \(( 2, 1)\).
      1. Find several different functions \(h\) that all have the same derivative \(h'(x) = 2x\).
      2. Determine a function \(f\) with derivative \(f'(x) = 2x\) that also satisfies \(f(3) = 20\).
      3. Determine a function \(g\) with \(g'(x) = 2x\) for which the graph of \(g\) goes through \((2, 7)\).
    12. Sketch functions with the given properties to help determine whether each statement is true or false.
      1. If \(f'(7) > 0\) and \(f'(x) > 0\) for all \(x\) near \(7\), then \(f(7)\) is a local maximum of \(f\) on \([1,7]\).
      2. If \(g'(7) < 0\) and \(g'(x) < 0\) for all \(x\) near \(7\), then \(g(7)\) is a local minimum of \(g\) on \([1,7]\).
      3. If \(h'(1) > 0\) and \(h'(x) > 0\) for all \(x\) near \(1\), then \(h(1)\) is a local minimum of \(h\) on \([1,7]\).
      4. If \(r'(1) < 0\) and \(r'(x) < 0\) for all \(x\) near \(1\), then \(r(1)\) is a local maximum of \(r\) on \([1,7]\).
      5. If \(s'(7) = 0\), then \(s(7)\) is a local maximum of \(s\) on \([1,7]\).

    This page titled 3.3: The First Derivative and the Shape of f was last modified on Wed, 28 Jan 2026 21:01:15 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Dale Hoffman, edited and updated by Jeff Eldridge.

    • Was this article helpful?