Curve Sketching, including Rolle’s Theorem and Mean Value Theorem

Curve sketching isn’t my favorite subject in Calculus, since it’s so abstract, but it’s useful to be able to look at functions and their characteristics by simply taking derivatives and thinking about the functions. Before we get into curve sketching, let’s talk about two theorems that seems sort of obvious, but we need to go over them nonetheless.

Extreme Value Theorem, Rolle’s Theorem, and Mean Value Theorem

To sketch curves in Calculus, we’ll be looking at minimums and maximums of functions in certain intervals, so we have to talk about a few theorems first. We’ll need these theorems to know that if a function is differentiable and the derivative at a certain point is 0, then that point is either a minimum or maximum. Thus, before you to get to actual curve sketching, you’ll probably see some problems as in this section.

Extreme Value Theorem

The Extreme Value Theorem states that a function on a closed interval must have both a minimum and maximum in that interval. (A closed interval is an interval that includes its endpoints, which are the points at the very beginning and end of the interval). If we didn’t include the endpoints, we’d have an open interval, and we may never have a minimum or maximum, since the function could get closer and closer to a point but never touch it (like we saw with Limits). When we do include these endpoints, there will definitely be a minimum or maximum; for example, if the function is increasing for the whole interval, the minimum and maximum would be at these endpoints.

Rolle’s Theorem

Rolle’s Theorem states that if the function in an interval comes up and back down (or down and back up) and ends up exactly where it started, you’ll have at least one maximum or minimum (where the derivative is 0). Here is the formal form of Rolle’s Theorem:

Rolle’s Theorem:

 

If a function is continuous on a closed interval $ [a,b]$ and differentiable on the open interval $ (a,b)$, and $ f\left( a \right)=f\left( b \right)$ (the $ y$’s on the endpoints are the same), then there is at least one number $ c$ in $ (a,b)$, where $ {f}’\left( c \right)=0$.

Note that if this function was not differentiable, you would still have either a maximum or minimum, but you may not be able to take the derivative at that point; for example, you may have a sharp turn instead of a nice curve at that point.

Here are pictures of a differentiable and non-differentiable functions. For the differentiable graph, do you see how if the graph goes up and comes back down, we have to have at least one point where the derivative is 0 (at the maximum)?

Mean Value Theorem

Note that the Mean Value Theorem for Integrals can be found here in the Definite Integration section.

The Mean Value Theorem for Derivatives is a little bit more important and is proven using the Rolle’s theorem. It says that somewhere inside a closed interval $ [a,b]$ there exists a point $ c$ where the derivative at this point is the same as the slope between points $ a$ and $ b$. Think of the Mean Value Theorem as Rolle’s Theorem, but possibly “tilted”.

Here’s the formal form of the Mean Value Theorem and a picture; in this example, the slope of the secant line is 1, and also the derivative at the point $ \boldsymbol {(2,3)}$ (tangent line) is also 1. We’ll see more examples below.

Mean Value Theorem

 

If a function is continuous on a closed interval $ \left[ {a,b} \right]$ and differentiable on the open interval $ \left( {a,b} \right)$, then there is at least one number $ c$ in $ \left( {a,b} \right)$, where $ \displaystyle {f}’\left( c \right)=\frac{{f\left( a \right)-f\left( b \right)}}{{b-a}}$.

Here are some problems that you might see with these theorems:

Rolle’s Theorem Problem Solution          

For which of the following graphs does Rolle’s Theorem apply for the indicated interval?

a)      b)  

c)          d)

e) $ \displaystyle f\left( x \right)=\sin \left( {\frac{x}{2}} \right),\,\,\left[ {0,4\pi } \right]\,\,$    f) $ \displaystyle f\left( x \right)=\tan \left( {\frac{x}{2}} \right),\,\,\left[ {0,4\pi } \right]\,\,$   

g) $ f\left( x \right)=\sqrt{{1-{{x}^{{\frac{2}{3}}}}}},\,\,\left[ {-1,1} \right]\,\,$

a) Does not apply, since the function is not differentiable everywhere on $ (a,b)$.

b) Does apply, since the function is continuous and differentiable on $ [a,b]$.

c) Does not apply since the function is not continuous on $ [a,b]$.

d) Does not apply since $ f\left( a \right)\ne f\left( b \right)$.

e) Does apply, since the function is continuous and differentiable on $ [a,b]$ and $ \displaystyle f\left( a \right)=f\left( b \right):\,\,\sin \left( {\frac{0}{2}} \right)=\sin \left( {\frac{{4\pi }}{2}} \right)=0$. To find a $ c$-value where $ {f}’\left( c \right)=0$:

$ \displaystyle \begin{align}{f}’\left( c \right)&=\cos \left( {\frac{c}{2}} \right)\cdot \frac{1}{2}=0;\,\,\,\,\cos \left( {\frac{c}{2}} \right)=0\\\,\frac{c}{2}&={{\cos }^{{-1}}}\left( 0 \right);\,\,\,c=\frac{\pi }{2}\cdot 2=\pi \end{align}$

and this lies in the interval $ \left[ {0,4\pi } \right]$.

f) Even though $ f\left( a \right)=f\left( b \right)$, does not apply since the function has asymptotes and thus is not continuous on $ [a,b]$.

g) Even though $ f\left( a \right)=f\left( b \right)$, does not apply since the function is not differentiable at $ x=0$ (which is inside the interval).

For which of the following functions does the Mean Value Theorem apply for $ [-1,1]$?

 

a) $ y=\sqrt[3]{x}$                 b) $ y=\left| {x+2} \right|$             c)  $ \displaystyle y=\frac{1}{x}$

a) Does not apply, since the function is not differentiable (has a vertical tangent) at $ x=0$.

b) Does apply, since the function is continuous and differentiable on the interval. Note that the function is not differentiable at $ x=-2$, but this is not in the interval $ [-1,1]$.

c) Does not apply since the function is not continuous on $ [-1,1]$ (vertical asymptote at $ x=0$).

Here are a few more typical Mean Value Theorem (MVT) problems. Note that when we get our value of $ \boldsymbol {c}$, we have to make sure it lies in the interval we’re given. Note also that these problems may be worded something like this: For what value of $ c$ on a certain open interval would the tangent to the graph of a certain function be parallel to the secant line in that closed interval?

Mean Value Theorem Problem Solution          
Assume that the function $ f\left( x \right)=4x-\sqrt{x}$ satisfies the Mean Value Theorem on the interval $ [0,4]$.

Find the value of “$ c$” that is guaranteed by the theorem.

First make sure the MVT applies. The function is continuous on closed interval $ [0,4]$ and differentiable on the open interval $ (0,4)$; therefore, the MVT applies.

Find the slope:

$ \displaystyle \frac{{f\left( a \right)-f\left( b \right)}}{{b-a}}=\frac{{f\left( 4 \right)-f\left( 0 \right)}}{{4-0}}=\frac{{\left[ {4\left( 4 \right)-\sqrt{4}} \right]-\left[ {4\left( 0 \right)-\sqrt{0}} \right]}}{{4-0}}=\frac{{14}}{4}=\frac{7}{2}$

Find the derivative: since $ f\left( x \right)=4x-{{x}^{{\frac{1}{2}}}}$, $ \displaystyle {f}’\left( x \right)=4-\frac{1}{2}{{x}^{{-\frac{1}{2}}}}$.

By the MVT, $ \displaystyle {f}’\left( x \right)=4-\frac{1}{2}{{x}^{{-\frac{1}{2}}}}$, so we need to find $ c$ where $ \displaystyle 4-\frac{1}{2}{{c}^{{-\frac{1}{2}}}}=\frac{7}{2}$:

$ \displaystyle 4-\frac{1}{2}{{c}^{{-\frac{1}{2}}}}=\frac{7}{2};\,\,\,\,\frac{1}{2}{{c}^{{-\frac{1}{2}}}}=4-\frac{7}{2};\,\,\,\,\,{{\left( {{{c}^{{-\frac{1}{2}}}}} \right)}^{{-2}}}={{\left( {\frac{1}{2}\cdot 2} \right)}^{{-2}}};\,\,\,c={{1}^{{-2}}}=1$.

This value lies in the interval $ [0,4]$, so the value of $ c$ that is guaranteed by the MVT is $ c=1$.

Does the function $ f\left( x \right)={{x}^{3}}-4{{x}^{2}}+2x$ satisfy the Mean Value Theorem on the interval $ [0,2]$?

Justify answer and then find the value of “$ c$” guaranteed by the theorem.

First make sure the MVT applies. The function is continuous on closed interval $ [0,2]$ and differentiable on the open interval $ (0,2)$; therefore, the MVT applies.

Find the slope:

$ \displaystyle \begin{align}\frac{{f\left( a \right)-f\left( b \right)}}{{b-a}}&=\frac{{f\left( 2 \right)-f\left( 0 \right)}}{{2-\left( 0 \right)}}=\frac{{\left[ {{{{\left( 2 \right)}}^{3}}-4{{{\left( 2 \right)}}^{2}}+2\left( 2 \right)} \right]-\left[ {{{{\left( 0 \right)}}^{3}}-4{{{\left( 0 \right)}}^{2}}+2\left( 0 \right)} \right]}}{2}\\&=\frac{{-4-\left( 0 \right)}}{2}=-2\end{align}$

Find the derivative: since $ f\left( x \right)={{x}^{3}}-4{{x}^{2}}+2x$, $ {f}’\left( x \right)=3{{x}^{2}}-8x+2$.

By the MVT, $ {f}’\left( c \right)=-2$, so we need to find $ c$ where $ 3{{c}^{2}}-8c+2=-2$.

$ \displaystyle 3{{c}^{2}}-8c+2=-2;\,\,\,\,3{{c}^{2}}-8c+4=0;\,\,\,\,\,\left( {3c-2} \right)\left( {c-2} \right)=0;\,\,\,c=\frac{2}{3},\,\,2$

Check to make sure the value(s) we got lie in the interval $ [0,2]$. Since only $ \displaystyle c=\frac{2}{3}$ lies in the interval, the only value of $ c$ that is guaranteed by the MVT is $ \displaystyle c=\frac{2}{3}$.

Does the function $ \displaystyle f\left( x \right)=\frac{1}{{x-2}}$ satisfy the Mean Value Theorem on the interval $ [1,4]$?

Justify answer and then find the value of “$ c$” guaranteed by the theorem.

Since the function is not continuous (nor totally differentiable) in the interval $ [1,4]$, the MVT does not apply.

Here’s one more where we need to understand visually the Mean Value Theorem:

Mean Value Theorem Problem Solution          
A differentiable function $ f$ is graphed below on the closed interval $ \left[ {-8,4.5} \right]$.

How many values of $ x$ in the open interval $ \left( {-8,4.5} \right)$ satisfy the Mean Value Theorem for $ f$ on $ \left[ {-8,4.5} \right]$?

First draw the secant line from $ x=a=-8$ and $ x=b=4.5$; this is the bottom line.

 

Notice that there are three places in the open interval $ \left( {-8,4.5} \right)$ where the function touches either this secant line or a line parallel to the secant line (top line). At these three places, the slope of the tangent line through the points (“$ c$”) is equal to the slope of the secant line.

 

Thus, there are three values of $ x$ where $ \displaystyle {f}’\left( c \right)=\frac{{f\left( a \right)-f\left( b \right)}}{{b-a}}$.

Introduction to Curve Sketching

Again, Curve Sketching in Calculus makes us “appreciate the math” and helps visualize what is going on with function and their derivatives. It’s not my favorite part of calculus, but it’s a necessary evil :).

Before we get started, here’s an interesting note to observe: the graph below shows an example of an original function, its first derivative, and second derivative. Notice how when we take the derivative in this example, we go from a cubic (original function) to a quadratic (first derivative) to a linear (second derivative). This makes sense, since the we are always going down a degree when we take a derivative:

Relative Extrema and the First Derivative Test

Extrema and Critical Numbers

We first talked about Extrema of Functions in the Advanced Functions section hereExtrema is just a fancy word for finding the lowest (minimum) or highest (maximum) $ \boldsymbol {y}$-value in a function or interval of a function; we will use Extrema to find Critical Numbers.

We can talk about absolute extrema, or relative (local) extrema. Think of the absolute extrema as the absolute lowest or highest point in the whole domain of the function, and the relative (local) extrema as the lowest or highest for a part of the graph. Technically, relative extrema must be the minimum or maximum of a point from both sides of $ \boldsymbol {x}$, so they can’t be endpoints; they are just “valleys” or “hills”. Note that not every function has a lowest (minimum) or highest (maximum) point in an interval or even the whole domain (like the function $ y=x$), so there may not be any extrema. The endpoints of a function may be the lowest or highest points (thus the absolute, not relative extrema); these are called the endpoint extrema.

When we find the minimum and maximum values in an interval, we can use this information to find where a function is decreasing and increasing, since at a minimum or maximum value, the function takes a turn from “down to up” or “up to down”.

Here is a graph that shows some examples of absolute/relative extrema; note also the endpoint extrema points:

Critical numbers or critical points exist where a function has a minimum or maximum, whether or not the function is differentiable at that point. And it turns out that if a function is differentiable at a certain point, and that point is a minimum or maximum, the derivative at that point is 0. Here is the formal definition of a critical number:

Let $ f$ be defined at point $ c$. If $ {f}’\left( c \right)=0$, or if $ f$ is not differentiable at point $ c$, then $ c$ is a critical number of $ f$.

Increasing and Decreasing Functions, and the First Derivative Test

We talked about critical points (critical numbers) of a function (minimums or maximums), where the first derivative is 0 (or not defined). Now let’s talk about the derivative when the function is increasing (going upward from left to right), or decreasing (going downward from left to right).

When a function is increasing, the derivative (slope) is positive. When a function is decreasing, the derivative (slope) is negative. When a function is constant, or staying the same, the derivative (slope) is 0.

Here are the guidelines for finding intervals for which a function is increasing or decreasing: For a function $ f$ that is continuous on interval $ [a,b]$ and differentiable on interval $ (a,b)$, to find the intervals for which $ f$ is increasing or decreasing:

  1. Find the critical points (minimums or maximums) in $ (a,b)$, and use these numbers to find test intervals.
  2. For each of these test intervals, find the sign of the derivative at one test value.
  3. If $ {f}’\left( x \right)>0$, then $ f$ is increasing on $ [a,b]$, if $ {f}’\left( x \right)<0$, then $ f$ is decreasing on $ [a,b]$, and if $ {f}’\left( x \right)=0$, then $ f$ is constant on $ [a,b]$.

Based on these guidelines, here is the First Derivative Test, which allows us to find relative minimums and maximums (also known as local minimums and local maximums).

First Derivative Test

Assume that $ c$ is a critical number of a function that is continuous on an open interval, and $ f$ is differentiable on the interval, except possibly at $ c$.

  1. If  $ {f}’\left( x \right)$  changes from negative to positive at critical point $ x=c$, then $ f$ has a relative minimum at $ x=c$.
  2. If  $ {f}’\left( x \right)$  changes from positive to negative at critical point $ x=c$, then $ f$ has a relative maximum at $ x=c$.
  3. If  $ {f}’\left( x \right)$  is positive on both sides of $ x=c$, or negative on both sides of $ x=c$, then that point is neither a relative minimum or relative maximum.

Let’s think about why this makes sense. If we have a point where a function goes from falling to rising (negative to positive slope), that point would be a minimum. Similarly, if we have a point where a function goes from rising to falling (positive to negative slope), that point would be a maximum:

Here are some problems; notice that we are using sign charts to determine the intervals that the function is decreasing or increasing. Sometimes we need to use values that aren’t even in the domain of the function (like in vertical asymptotes) in the sign charts; theoretically, these aren’t critical numbers, since they don’t exist in the original function.

First Derivative Test Problem and Graph Solution          
Find the critical numbers, if any, and find the open interval(s) where the function is decreasing or increasing. Use the First Derivative Test to identify all relative extrema.

$ f\left( x \right)={{x}^{2}}-8x$

First take the derivative of the function to find possible critical values: $ f\left( x \right)={{x}^{2}}-8x;\,\,{f}’\left( x \right)=2x-8$. $ 2x-8=0;\,\,x=4$; thus, 4 is a critical value.

Create sign chart by testing random points in intervals, using the derivative. For example, test the value “0” to see that $ 2\left( 0 \right)-8$ is negative, and test the value “5” to see that $ 2\left( 5 \right)-8$ is positive:                                      

The function is decreasing in the interval $ \left( {-\infty ,4} \right)$ and increasing in the interval $ \left( {4,\infty } \right)$. From the First Derivative Test, since we are going from a negative slope to a positive slope, $ \left( {4,{{4}^{2}}-8\cdot 4} \right)=\left( {4,-16} \right)$ is a relative extremum and is a minimum.

Find the critical numbers, if any, and find the open interval(s) where the function is decreasing or increasing. Use the First Derivative Test to identify all relative extrema.

$ \displaystyle f\left( x \right)=\frac{{{{x}^{2}}}}{{{{x}^{2}}-4}}$

Take the derivative: $ \displaystyle f\left( x \right)=\frac{{{{x}^{2}}}}{{{{x}^{2}}-4}};\,\,{f}’\left( x \right)=\frac{{\left( {{{x}^{2}}-4} \right)\cdot 2x-{{x}^{2}}\cdot 2x}}{{{{{\left( {{{x}^{2}}-4} \right)}}^{2}}}}=-\frac{{8x}}{{{{{\left( {{{x}^{2}}-4} \right)}}^{2}}}}$. Find critical numbers: $ \displaystyle -\frac{{8x}}{{{{{\left( {{{x}^{2}}-4} \right)}}^{2}}}}=0;\,\,\,-8x=0;\,\,x=0$ (Notice that at $ x=\pm \,2$, the derivative is undefined, and the original function is discontinuous, since these are asymptotes, but we’ll still use these in the sign chart. These are not critical numbers.)

Create sign chart with both critical value and discontinuity values and check intervals, using derivative:

Thus, the function is increasing in the intervals $ \left( {-\infty ,-2} \right)$ and $ \left( {-2,0} \right)$, and decreasing in the intervals $ \left( {0,2} \right)$ and $ \left( {2,\infty } \right)$. From the First Derivative Test, since we are going from a positive slope to a negative slope, $ \left( {0,0} \right)$ is a relative extremum and is a maximum.

Find the critical numbers, if any, and find the open interval(s) where the function is decreasing or increasing. Use the First Derivative Test to identify all relative extrema.

$ f\left( x \right)={{x}^{{\frac{1}{3}}}}+3$

Take the derivative: $ \displaystyle f\left( x \right)={{x}^{{\frac{1}{3}}}}+3;\,\,\,\,{f}’\left( x \right)=\frac{1}{3}{{x}^{{-\frac{2}{3}}}}$. Find critical numbers: $ \displaystyle \frac{1}{3}{{x}^{{-\frac{2}{3}}}}=0;\,\,\,{{x}^{{-\frac{2}{3}}}}=0;\,\,\,\frac{1}{{\sqrt[3]{{{{x}^{2}}}}}}=0;\,\,x\text{ is undefined}$. The derivative is undefined at $ x=0$, so this is a critical number.

Create sign chart with critical value and check intervals, using derivative:

Thus, the function is increasing in the interval $ \left( {-\infty ,\infty } \right)$, since the original function is defined at $ x=0$. From the First Derivative Test, since both intervals have a positive slope, there are no relative extrema.

Here’s a First Derivative Problem with a trigonometric function:

First Derivative Trig Problem and Graph Solution          
Find the critical numbers, if any, and find the open interval(s) where the function is decreasing or increasing in the interval $ \left( {0,2\pi } \right)$.

 

Use the First Derivative Test to identify all relative extrema.

$ \displaystyle f\left( x \right)=\frac{x}{2}+\sin x$

First take the derivative of the function to find possible critical values: $ \displaystyle f\left( x \right)=\frac{x}{2}+\sin x;\,\,\,{f}’\left( x \right)=\frac{1}{2}+\cos x$.  $ \displaystyle \cos x=-\frac{1}{2};\,\,\,x=\frac{{2\pi }}{3},\,\,\frac{{4\pi }}{3}$, so these are critical values.

Create sign chart by testing intervals, in interval $ \left( {0,2\pi } \right)$, using the derivative:                              

The function is increasing in the intervals $ \displaystyle \left( {0,\frac{{2\pi }}{3}} \right)$ and $ \displaystyle \left( {\frac{{4\pi }}{3},2\pi } \right)$, and decreasing in the interval $ \displaystyle \left( {\frac{{2\pi }}{3},\frac{{4\pi }}{3}} \right)$. From the First Derivative Test, since we are going from a positive slope to negative slope at $\displaystyle x = {{2\pi } \over 3},\,\,\left[ {{{2\pi } \over 3},{{{{2\pi } \over 3}} \over 2} + \sin \left( {{{2\pi } \over 3}} \right)} \right]\, = \left( {{{2\pi } \over 3},{\pi \over 3} + {{\sqrt 3 } \over 2}} \right)$ is a relative maximum. Since we are going from a negative slope to a positive slope at $\displaystyle x = {{4\pi } \over 3},\,\,\left[ {{{4\pi } \over 3},{{{{4\pi } \over 3}} \over 2} + \sin \left( {{{4\pi } \over 3}} \right)} \right] = \left( {{{4\pi } \over 3},{{2\pi } \over 3} – {{\sqrt 3 } \over 2}} \right)$ is a relative minimum.

Concavity and the Second Derivative

I like to think of concavity as “cup up” or “cup down”. Think of concave upwards of a cup that can hold water at all points, and concave downward is a cup that empties water out at all point. It turns out that when a graph is concave upward (cup up), its slope (first derivative) is increasing, so its second derivative is positive. When a graph is concave downward (cup down), its slope is decreasing, so its second derivative is negative.

A point of inflection (POI) is exactly where the concavity changes from concave up to concave down or concave down to concave up. It turns out that a graph crosses its tangent line at a POI.

Here’s an illustration of concavity:

The Second Derivative Test can also be used in curve sketching to find relative minima and relative maxima, and is the following:

Second Derivative Test

Let $ f$ be a function whose second derivative exists on an open interval that contains $ c$:

  1. If $ {{f}^{\prime \prime}(c)}>0$, $ f$ has a relative minimum at $ x=c$. (Think “cup up”)
  2. If $ {{f}^{\prime \prime}(c)}<0$, $ f$ has a relative maximum at $ x=c$. (Think “cup down”)

Note that the second derivative test does not necessarily work when the first and second derivatives are 0 or undefined; the concavity of the function must change at a point of inflection. It also doesn’t say what happens at the endpoints of a function.

You might see problems like this on concavity, points of inflection, and the Second Derivative Test. I think the best way to tackle these problems is to create a sign chart using points where the first derivative is 0 or undefined (critical values) and also where the second derivative is 0 or undefined:

Second Derivative Problem and Graph Solution          
Find the point of inflection and discuss the concavity of the function:

 

$ f\left( x \right)={{x}^{3}}-5{{x}^{2}}+8x$

$ \begin{align}f\left( x \right)&={{x}^{3}}-5{{x}^{2}}+8x\\{f}’\left( x \right)&=3{{x}^{2}}-10x+8;\,\,\,\text{Critical values:}\,\,\,\left( {3x-4} \right)\left( {x-2} \right)=0;\,\,\,x=\frac{4}{3},\,\,2\\{{f}^{\prime \prime}(x)}&=6x-10;\,\,\,\text{Point of Inflection (POI):}\,\,\,6x-10=0;\,\,\,x=\frac{5}{3}\end{align}$

Create sign chart by testing intervals for both first and second derivatives:                                              

The point of inflection, where the graph changes from “cup down” (concave down) to “cup up” (concave up) is at $ \displaystyle x=\frac{5}{3}$. The graph is concave down in the interval $ \displaystyle \left( {-\infty ,\frac{5}{3}} \right)$ and is concave up in the interval $ \displaystyle \left( {\frac{5}{3},\infty } \right)$. The graph is increasing in the intervals $ \displaystyle \left( {-\infty ,\frac{4}{3}} \right)$ and $ \left( {2,\infty } \right)$ and decreasing in the interval $ \displaystyle \left( {\frac{4}{3},2} \right)$. Note that $ \displaystyle \left( {\frac{4}{3},{{{\left[ {\frac{4}{3}} \right]}}^{3}}-5\cdot {{{\left[ {\frac{4}{3}} \right]}}^{2}}+8\cdot \frac{4}{3}} \right)=\left( {\frac{4}{3},\frac{{112}}{{27}}} \right)$ is a relative maximum and $ \left( {2,\,{{2}^{3}}-5\cdot {{2}^{2}}+8\cdot 2} \right)=\left( {2,4} \right)$ is a relative minimum.

Find the point of inflection and discuss the concavity of the function:

 

$ \displaystyle f\left( x \right)=\frac{2}{{{{x}^{2}}+1}}$

$ \displaystyle \begin{align}f\left( x \right)&=\frac{2}{{{{x}^{2}}+1}}=2{{\left( {{{x}^{2}}+1} \right)}^{{-1}}}\\{f}’\left( x \right)&=-2{{\left( {{{x}^{2}}+1} \right)}^{{-2}}}\cdot 2x=-4x{{\left( {{{x}^{2}}+1} \right)}^{{-2}}}=\frac{{-4x}}{{{{{\left( {{{x}^{2}}+1} \right)}}^{2}}}};\,\,\,\text{Critical value :}\,\,\,x=0\\{{f}^{\prime \prime}(c)}&=\frac{{{{{\left( {{{x}^{2}}+1} \right)}}^{2}}\left( {-4} \right)-\left( {-4x} \right)\left[ {2\left( {{{x}^{2}}+1} \right)\left( {2x} \right)} \right]}}{{{{{\left( {{{x}^{2}}+1} \right)}}^{4}}}}=\frac{{4\left( {3{{x}^{2}}-1} \right)}}{{{{{\left( {{{x}^{2}}+1} \right)}}^{3}}}}\text{;}\,\,\,\,\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,&\text{POI: }\,\,3{{x}^{2}}-1=0;\,\,\,x=\pm \frac{{\sqrt{3}}}{3}\text{ }\end{align}$

By checking points in intervals, the graph is concave up in the intervals $ \displaystyle \left( {-\infty ,-\frac{{\sqrt{3}}}{3}} \right)$ and $ \displaystyle \left( {\frac{{\sqrt{3}}}{3},\infty } \right)$, and is concave down in the interval $ \displaystyle \left( {-\frac{{\sqrt{3}}}{3},\frac{{\sqrt{3}}}{3}} \right)$, with a relative maximum at $ \left( {0,2} \right)$.

Here’s a concavity problem with a trigonometric function:

Trig Second Derivative Problem and Graph Solution          
Find the point of inflection and discuss the concavity of the function:

 

$ \displaystyle f\left( x \right)=\cos \left( {\frac{x}{2}} \right);\,\,\,\,\,\left[ {0,4\pi } \right]$

$ \require {cancel} \begin{align}f\left( x \right)&=\cos \left( {\frac{x}{2}} \right);\,\,\,\,0\le x\le 4\pi \\{f}’\left( x \right)&=-\frac{1}{2}\sin \left( {\frac{x}{2}} \right);\,\,\,\,\,\,\text{Critical values:}\,\,\,-\frac{1}{2}\sin \left( {\frac{x}{2}} \right)=0;\,\,\,\,\frac{x}{2}=0,\,\pi ,2\pi ,3\pi ,4\pi \\\,x&=0,2\pi ,4\pi ,\cancel{{6\pi }},\cancel{{8\pi }}\\{{f}^{\prime \prime}(c)}&=-\frac{1}{4}\cos \left( {\frac{x}{2}} \right);\,\,\,\,\,\text{Point of Inflection (POI):}\,\,\,-\frac{1}{4}\cos \left( {\frac{x}{2}} \right)=0;\,\,\,\,\frac{x}{2}=\frac{\pi }{2},\frac{{3\pi }}{2},\frac{{5\pi }}{2},\frac{{7\pi }}{2}\\\,x&=\pi ,3\pi ,\cancel{{5\pi }},\cancel{{7\pi }}\end{align}$

Create sign chart by testing intervals for both first and second derivatives:

The points of inflection, where the graph changes from “cup down” (concave down) to “cup up” (concave up) are at $ x=\pi ,\,3\pi $. The graph is concave down in the intervals $ \left( {0,\pi } \right)$ and $ \left( {3\pi ,4\pi } \right)$, and is concave up in the interval $ \left( {\pi ,3\pi } \right)$. The graph is decreasing in the interval $ \left( {0,2\pi } \right)$, and increasing in the interval $ \left( {2\pi ,4\pi } \right)$. Note that $ \displaystyle \left( {0,\cos \left( {\frac{0}{2}} \right)} \right)=\left( {0,1} \right)$ and $ \displaystyle \left( {4\pi ,\cos \left( {\frac{{4\pi }}{2}} \right)} \right)=\left( {4\pi ,1} \right)$ are relative maximums (endpoints) and $ \displaystyle \left( {2\pi ,\cos \left( {\frac{{2\pi }}{2}} \right)} \right)=\left( {2\pi ,-1} \right)$ is a relative minimum.

Here are more Second Derivative Test problems:

Second Derivative Problem and Graph Solution          
Using the Second Derivative Test, find relative extrema for the following function, if it’s possible to do so:

$ \displaystyle f\left( x \right)=4x+\frac{1}{x}$

$ \begin{align}f\left( x \right)&=4x+\frac{1}{x};\,\,\,f\left( x \right)=4x+{{x}^{{-1}}}\\{f}’\left( x \right)&=4-{{x}^{{-2}}};\,\,\,\,\,\text{Critical values:}\,\,\,4-\frac{1}{{{{x}^{2}}}}=0;\,\,\,\,x=\pm \frac{1}{2}\\{{f}^{\prime \prime}(x)}&=2{{x}^{{-3}}};\,\,\,\,\,\,\,\text{Plug in}\,\,\frac{1}{2}:2{{\left( {\frac{1}{2}} \right)}^{{-3}}}=16\,\,\text{(positive) (concave up)}\end{align}$

$ \displaystyle \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\text{Plug in}\,\,-\frac{1}{2}:2{{\left( {-\frac{1}{2}} \right)}^{{-3}}}=-16\,\,\text{(negative) (concave down)}$

$ \displaystyle \left( {\frac{1}{2},4\left( {\frac{1}{2}} \right)+\frac{1}{{\frac{1}{2}}}} \right)=\left( {\frac{1}{2},4} \right)$ is a relative minimum, and $ \displaystyle \left( {-\frac{1}{2},4\left( {-\frac{1}{2}} \right)+\frac{1}{{-\frac{1}{2}}}} \right)=\left( {-\frac{1}{2},-4} \right)$ is a relative maximum.

Using the Second Derivative Test, find relative extrema for the following function, if it’s possible to do so:

$ \displaystyle f\left( x \right)=\frac{x}{{\sqrt{{1-{{x}^{2}}}}}}$

$ \begin{align}f\left( x \right)&=\frac{x}{{\sqrt{{1-{{x}^{2}}}}}};\,\,\,f\left( x \right)=x{{\left( {1-{{x}^{2}}} \right)}^{{-\frac{1}{2}}}}\,\,\,\,\,\\{f}’\left( x \right)&=x\cdot -\frac{1}{2}{{\left( {1-{{x}^{2}}} \right)}^{{-\frac{3}{2}}}}\cdot -2x+{{\left( {1-{{x}^{2}}} \right)}^{{-\frac{1}{2}}}}\cdot 1\\&={{x}^{2}}{{\left( {1-{{x}^{2}}} \right)}^{{-\frac{3}{2}}}}+{{\left( {1-{{x}^{2}}} \right)}^{{-\frac{1}{2}}}}\\\,\,\,\,\,\,\,\,\,\,&={{\left( {1-{{x}^{2}}} \right)}^{{-\frac{3}{2}}}}\left( {\cancel{{{{x}^{2}}}}+1\cancel{{-{{x}^{2}}}}} \right);\,\,\,\,\,\,\,\frac{1}{{{{{\left( {1-{{x}^{2}}} \right)}}^{{\frac{3}{2}}}}}}=0\end{align}$

$ \displaystyle \text{Critical points (undefined):}\,\,\pm 1$

Note that the Second Derivative Test does not apply, since the first derivative fails to exist (undefined) at $ x=\pm 1$ (there are actually vertical asymptotes at those values). Therefore, we don’t have to take the second derivative. The first derivative will always be positive, so there are no relative extrema (maximums or minimums).

Here’s one more problem where the Second Derivative Test does not apply at certain points:

Second Derivative Problem Solution          
The first derivative of the function $ f$ is given by $ f\left( x \right)={{x}^{4}}+4{{x}^{3}}$.

 

What are the $ x$-coordinates of the points of inflections of the graph of $ f$?

First, use the First Derivative Test to get the critical values (min and/or max) of the function. Since we already have the first derivative, set it to 0 and solve for $ x$:

$ \begin{array}{c}{f}’\left( x \right)={{x}^{4}}+4{{x}^{3}}\\\,\text{Critical values:}\,\,\,{{x}^{4}}+4{{x}^{3}}=0;\,\,\,\,{{x}^{3}}\left( {x+4} \right)=0\\\,\,\,\,\,\,\,\,\,\,x=0,-4\end{array}$

Now, use the Second Derivative (the derivative of the first derivative), and set to 0 to get possible points of inflection:

$ \require {cancel} \begin{array}{c}{{f}^{\prime \prime}(x)}=4{{x}^{3}}+12{{x}^{2}}\\\text{Point of Inflections (POI):}\,\,\,4{{x}^{3}}+12{{x}^{2}}=0;\,\,\,\,4{{x}^{2}}\left( {x+3} \right)=0\\\,\,\,\,\,\,\,\,\,\,x=\cancel{0},-3\end{array}$

Note that the Second Derivative Test does not apply at $ x=0$, since the concavity at that point doesn’t change. Therefore, the only point of inflection is at $ x=-3$. Here is a graph of what $ f$ may look like:

Curve Sketching: General Rules

Here are some general curve sketching rules:

  1. Find critical numbers (numbers that make the first derivative 0 or undefined).
  2. Put the critical numbers in a sign chart to see where the first derivative is positive or negative (plug in the first derivative to get signs).
  3. Where first derivative is positive, the function is increasing; where it’s negative, the function is decreasing (remember that you can combine two consecutive intervals only if the original function is defined for that critical number).
  4. To get relative minimums and relative maximums, see how the derivative is changing. If it’s changing from negative to positive, it’s a minimum, and if it’s changing from positive to negative, it’s a maximum. To get the coordinates of the point at these places, plug the $ x$-value into the original function to get the $ y$-value.
  5. Get the second derivative, and find the values where it’s either 0 or undefined. (Make sure these points are defined for both the function and first derivative).
  6. Put those values in a sign chart to see where the second derivative is positive or negative (plug in the second derivative to get signs).
  7. Where second derivative is positive, the graph is concave up, where the second derivative is negative, the graph is concave down. Remember that you can combine two consecutive intervals only if the original function is defined for that for the first and second derivative. A point of inflection (POI) occurs when the second derivate changes sign.
  8. Use other points (can use a t-chart) to help graph!

Also, these tips may help:

  1. If finding absolute extrema, find the critical numbers and endpoints, then plug into the original function to find $ y$-values. Compare all these values: the largest is the absolute maximum and the smallest is the absolute minimum.
  2. When graphing, it might be helpful to identify any asymptotes or removable discontinuities (holes) by seeing what makes the denominator of the original function 0. Remember that a hole happens when you can cross out a factor in both the numerator and denominator (see Drawing Rational Graphs in the  Graphing Rational Functions, including Asymptotes section).

Here are some other hints that may help with the relationship of $ f$, $ {f}’$ and $ {{f}^{\prime \prime}}$. Again, remember that the relationship of $ f$ to $ {f}’$ is the same as $ {f}’$ to $ {{f}^{\prime \prime}}$; similarly, the relationship of $ {f}’$ to $ f$ is the same as $ {{f}^{\prime \prime}}$ to$ {f}’$. Also, I like to use the PMS acronym (sorry 🙂 ) to “travel” back and forth among the curves of the function, derivative, and second derivative:

Function Derivative Second Derivative
PPoint of Inflection (POI) MMaximum or Minimum SSign Change
If…. Then….   If…. Then…
$ f\left( x \right)$ is increasing $ {f}’\left( x \right)$ is positive $ {f}’\left( x \right)$ is increasing $ {{f}^{\prime \prime}(x)}$ is positive
$ f\left( x \right)$ is decreasing $ {f}’\left( x \right)$ is negative $ {f}’\left( x \right)$ is decreasing $ {{f}^{\prime \prime}(x)}$ is negative
$ f\left( x \right)$ has a relative min or max $ {f}’\left( x \right)$ is 0 or does not exist (changes sign) $ {f}’\left( x \right)$ has a relative min or max $ {{f}^{\prime \prime}(x)}$ is 0 or does not exist (changes sign)
$ f\left( x \right)$ has a POI $ {f}’\left( x \right)$ has a relative min or max $ {f}’\left( x \right)$ has a POI $ {{f}^{\prime \prime}(x)}$ has a relative min or max
$ f\left( x \right)$ has a POI $ {{f}^{\prime \prime}(x)}$ changes sign $ {f}’\left( x \right)$ has a relative min or max $ f\left( x \right)$ has a POI, if concavity changes at that point
$ f\left( x \right)$ is concave up $ {{f}^{\prime \prime}(x)}$ is positive $ f\left( x \right)$ is concave down $ {{f}^{\prime \prime}(x)}$ is negative
$ {f}’\left( x \right)$ changes from from negative to positive $ f\left( x \right)$ has a relative min $ {f}’\left( x \right)$ changes from from positive to negative $ f\left( x \right)$ has a relative max
$ {{f}^{\prime \prime}(x)}$ changes from from negative to positive $ {f}’\left( x \right)$ has a relative min $ {{f}^{\prime \prime}(x)}$ changes from from positive to negative $ {f}’\left( x \right)$ has a relative max
$ {f}’\left( x \right)$ is 0 horizontal tangent; $ f\left( x \right)$ could be relative min/max or a POI $ {{f}^{\prime \prime}(x)}$ has a relative min or max $ {f}’\left( x \right)$ has a POI, if concavity changes at that point
$ f\left( x \right)$ exists, $ {f}’\left( x \right)$ doesn’t exist possibly a vertical tangent, or an absolute max or min $ {f}’\left( x \right)$ is 0  and $ {{f}^{\prime \prime}(x)}$ is 0 $ {{f}^{\prime \prime}(x)}$ has a POI, if concavity changes at that point

Here’s a nice visual for curve sketching that shows the relationship of a function, derivative, and second derivative for the four curves shown:

Here are some problems that you may see:

Curve Sketching Problem Graph Explanation
Sketch a curve:

 

$ \begin{array}{c}f\left( 2 \right)=-1\,\,\,\text{and }{f}’\left( 2 \right)=0\\{f}’\left( x \right)>0\,\,\,\text{for }x\ne 2\\{{f}^{\prime \prime}(x)}<0\,\,\,\text{for }x<2\text{ }\\{{f}^{\prime \prime}(x)}>0\,\,\,\text{for }x>2\text{ }\end{array}$

Since $ {f}’\left( 2 \right)=0$, but the function has a positive slope for everywhere except for $ x=2$, the point $ \left( {2,-1} \right)$ must be a point of inflections (POI).

 

The function is “concave down” (second derivative is negative) for $ x<2$ and “concave up” (second derivative is positive) for $ x>2$.

Sketch a curve:

 

$ \begin{array}{c}{f}’\left( x \right)>0\,\,\,\text{for }x<0\,\,\,\text{and }x>2\\{f}’\left( x \right)<0\,\,\,\text{for }0<x<2\\{{f}^{\prime \prime}(x)}>0\,\,\,\text{for }x\ne 0\\f\left( 0 \right)=4\,\,\text{but }{f}’\left( 0 \right)\text{ is undefined }\\\text{Horizontal Tangent at}\left( {2,-1} \right)\end{array}$

The function is increasing everywhere, except between 0 and 2. It is “concave up” for everywhere, except where $ x=0$.

 

Since the derivative isn’t defined at $ x=0$, there is some sort of a sharp turn.

 

The horizontal tangent at $ \left( {2,-1} \right)$ indicates a minimum in this case.

Here’s one where we might have the information in a table.

Sketch a possible graph:

  $ x<-1$ $ x=-1$ $ -1<x<2$ $ x=2$ $ 2<x<5$ $ x=5$ $ 5<x<8$ $ x=8$
$ f\left( x \right)$ negative undefined positive 1 –2 1
$ {f}’\left( x \right)$ negative undefined negative 0 negative undefined positive
$ {{f}^{\prime \prime}(x)}$ negative undefined positive 0 negative negative

Here is what the graph might look like:

Curve Sketching Graph Explanation
Plot the points first, and then sketch the rising and falling intervals, based on the first derivative.

 

Then look at the second derivative to shape the intervals, either concave up or concave down.

 

Note that at $ x=-1$, since the function, derivative, and second derivative are all undefined, we could have either a discontinuous function (as shown), or possibly an asymptote.

Here are more types of curve sketching problems you may see:

Curve Sketching Problem:

Find all relative extrema, with $ y$-values, and points of inflection for $ f\left( x \right)=6{{x}^{{\frac{2}{3}}}}-x$. Find where the function is increasing and decreasing, and where it is concave up and down.

Solution:

First take the first and second derivatives: $ \displaystyle f\left( x \right)=6{{x}^{{\frac{2}{3}}}}-x;\,\,\,\,{{f}^{\prime}(x)}=4{{x}^{{-\frac{1}{3}}}}-1;\,\,\,\,\,{{f}^{\prime \prime}(x)}=-\frac{4}{3}{{x}^{{-\frac{4}{3}}}}$. Next, find the increasing (decreasing) intervals: where the derivative is positive (negative). Set the first derivative to 0 first to find critical point(s), also notifying that the derivative is undefined at at $ x=0$. Thus, the critical points are at $ x=0$ and $ x=64$. Use test points to find increasing/decreasing intervals.

$ 4{x^{ – {1 \over 3}}} – 1 = 0;\,\,\,{\left( {4{x^{ – {1 \over 3}}}} \right)^{ – 3}} = {\left( 1 \right)^{ – 3}};\,\,{1 \over {64}}x = 1;\,\,\,x = 64$:   .

To get the $ y$ points, plug in $ x$ in the original equation: $ \displaystyle y=6{{\left( 0 \right)}^{{\frac{2}{3}}}}-0=0;\,\,\,\,y=6{{\left( {64} \right)}^{{\frac{2}{3}}}}-64=32$. The critical points are $ \left( {0,0} \right)$ (min) and $ \left( {64,32} \right)$ (max).

 

Set the second derivative to 0 to find point of inflections (POI) and intervals of concavity, using test points with the second derivative: $ \displaystyle {4 \over 3}{x^{ – {4 \over 3}}} = 0;\,\,\,\,\,{\left( {{4 \over 3}{x^{ – {4 \over 3}}}} \right)^{ – {3 \over 4}}} = {0^{ – {3 \over 4}}}$ (again, noticing that the second derivative is undefined at $ x=0$): . Since both intervals are negative, there is not a POI.

We have the following characteristics; notice how we have to “jump” over (exclude) $ x=0$ in some cases:

Increasing Intervals: $ \left( {0,64} \right)$         Decreasing Intervals: $ \left( {-\infty ,0} \right)\cup \left( {64,\infty } \right)$  

Local Minimum: $ \left( {0,0} \right)$         Local Maximum: $ \left( {64,32} \right)$

Concave Up Intervals: none          Concave Down Intervals: $ \left( {-\infty ,0} \right)\cup \left( {0,\infty } \right)$           Points of Inflection (POI): none

Curve Sketching Problem:

The graph $ {f}’\left( x \right)$ to the right is the derivative of a function $ f$.

a) The graph $ f$ has a local maximum at $ x=$?

b) The graph $ f$ has a local minimum at $ x=$?

c) The graph $ f$ has a point of inflection (POI) at $ x=$?

Solution:

Given the derivative, try to draw the function. Remember P→M→S: when going “backwards” from the derivative to the original function, where there are minimums/maximums in the derivative, there are POI in the original, and where there are sign changes in the derivative, there are minimums/maximums in the original.

Answer the questions from above:

a) When a function has a local maximum, its derivative has a sign change from positive to negative, so there is a local maximum at $ x=4$.

b) When a function has a local minimum, its derivative has a sign change from negative to positive, so there are no local minimums. (Note: in some textbooks, endpoints can be relative extrema, so we’d have local minimums at $ x=0$ and $ x=5$).

c) When a function has a POI, its derivative has a minimum or maximum, so there are POIs at $ x=1$ and $ x=3$.

Learn these rules, and practice, practice, practice!


Click on Submit (the arrow to the right of the problem) to solve this problem. You can also type in more problems, or click on the 3 dots in the upper right hand corner to drill down for example problems.

If you click on “Tap to view steps”, you will go to the Mathway site, where you can register for the full version (steps included) of the software.  You can even get math worksheets.

You can also go to the Mathway site here, where you can register, or just use the software for free without the detailed solutions.  There is even a Mathway App for your mobile device.  Enjoy!

On to Optimization  – you are ready!