Curve Sketching

The process of curve sketching is to illustrate the graph of some function f(x){f(x)} by using f(x){f'(x)} and f(x),{f''(x),} whether x{x} is positive or negative. To curve sketch, we state some key propositions up front:

Lemma. Let f{f} be a differentiable function. Then the following propositions are true:

  1. If f>0,{f' > 0,} then f{f} is increasing.
  2. If f<0,{f' < 0,} then f{f} is decreasing.
  3. If f>0,{f'' > 0,} then f{f'} is increasing.
  4. If f<0,{f'' < 0,} then f{f'} is decreasing.

Put differently, if a function f{f} is increasing, then its derivative's tangent lines are positive (i.e., becoming less negative). If a function f{f} is decreasing, then its derivative's tangent lines are negative (becoming less positive). We can visualize the principles above with a rough sketch:

Concave up

Examining the sketches above, we see that the tangent lines on f{f} tend negative, corresponding to the graph of f.{f'.} And with f,{f',} the tangent lines tend positive, corresponding to the graph of f.{f''.} With the graph of f,{f'',} we see that the tangent lines tend negative, so a graph of f,{f''',} the third derivative, would show a graph with a negative slope.

In the case where f>0,{f'' > 0,} or when f{f'} is increasing, we say that f{f} is concave up. And when f<0,{f'' < 0,} or when f{f'} is decreasing, we say that f{f} is concave down. In the sketches above, f{f} is concave down. Thus, we have the following propositions:

lemma. Let f{f} be a differentiable function. Then the following propositions are true:

  1. If f<0,{f'' < 0,} then f{f} is concave up.
  2. If f<0,{f'' < 0,} then f{f} is concave down.

We will denote these two propositions with the following notation:

notation. Given a function f,{f,} if f{f^{\uparrow}} then f{f} is

concave up. If f,{f^{\downarrow},} then f{f} is concave down. If f,{f^{\leftrightarrow},} then f{f} is neither concave up nor concave down.

Let's apply these principles by considering the function f(x)=3xx3.{f(x) = 3x - x^3.} Differentiating this function, we have:

f(x)=33x2 f'(x) = 3 - 3x^2

Factoring the derivative:

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

We can draw several inferences from examining the derivative's equation. If x=0,{x = 0,} then f(x)=3.{f'(x) = 3.} This is a positive number. More generally, the factor (1x)(1+x){(1-x)(1+x)} is positive iff both (1x){(1-x)} and (1+x){(1+x)} are greater than 0.{0.} Based on this fact, we can express this as an interval:

(1x)>01x>01>x (1-x) > 0 \\ 1-x > 0 \\ 1 > x
(1+x)>01+x>0x>1 (1 + x) > 0 \\ 1 + x > 0 \\ x > -1

Hence, when 1<x<1,{-1 < x < 1,} then f(x){f'(x)} is positive. From the propositions we saw above, we infer that:

1<x<1f(x)>0f is increasing -1 < x < 1 \nc f'(x) > 0 \nc \text{$f$ is increasing}

These aren't the only inferences we can draw. Looking back at the term (1x)(1+x),{(1-x)(1+x),} we see that it's negative if either of the terms are negative. When is (1x){(1-x)} negative? Again we solve for x{x} as an inequality:

(1x)<01x<01<x (1 - x) < 0 \\ 1 - x < 0 \\ 1 < x

And (1+x)<0{(1+x) < 0} when:

(1+x)<01+x<0x<1 (1 + x) < 0 \\ 1 + x < 0 \\ x < -1

Thus, when (x>1)(x<1),{(x > 1) \lor (x < -1),} f{f'} is negative. Finally, we can determine when f{f'} is zero:

(1x)=01x=01=x (1 - x) = 0 \\ 1 - x = 0 \\ 1 = x
(1+x)=01+x=0x=1 (1 + x) = 0 \\ 1 + x = 0 \\ x = -1

Hence, when (x=1)(x=1),{(x = 1) \lor (x = -1),} then f{f'} is zero. We've gathered quite a few inferences just from the derivative:

  1. 1<x<1f>0{-1 < x < 1 \nc f' > 0 \nc} f{f} is increasing.
  2. x>1f<0{x > 1 \nc f' < 0 \nc} f{f} is decreasing.
  3. x<1f<0{x < -1 \nc f' < 0 \nc} f{f} is decreasing.
  4. x=1f=0{x = 1 \nc f' = 0 \nc} f{f} is constant.
  5. x=1f=0{x = -1 \nc f' = 0 \nc} f{f} is constant.

Based on this information, we can sketch the graph as follows:

First attempt at a sketch.

Notice the yellow dots above. These points are called turning points or inflection points. They're simply points where the derivative (i.e., the slope) changes its sign. Formally:

definition. If f(x0)=0,{f'(x_0) = 0,} then x0{x_0} is a critical point, and the number y=f(x0){y = f(x_0)} is called a critical value.

From the definition above, we see that the critical points are (1,0){(-1, 0)} and (1,0).{(1, 0).} If we substitue x=1{x = -1} and x=1{x = 1} to the original function, f(x)=3xx3,{f(x) = 3x - x^3,} we get:

f(1)=3(1)(1)3=3(1)=3+1=2 \begin{aligned} f(-1) &= 3(-1) - (-1)^3 \\ &= -3 - (-1) \\ &= -3 + 1 \\ &= -2 \end{aligned}
f(1)=3(1)(1)3=3(1)=31=2 \begin{aligned} f(1) &= 3(1) - (1)^3 \\ &= 3 - (1) \\ &= 3 - 1 \\ &= 2 \end{aligned}

Accordingly, we have the critical points:

(1,2)(1,2) (-1, -2)\\(1, 2)

Plotting these points on a graph:

Second attempt at a sketch

Now, from our earlier sketch:

Our earlier first attempt.

we know that at the point x=1,{x = -1,} we hit f=0.{f' = 0.} Before that point (x < -1,) f{f} is decreasing, and after that point (x>1,){(x > -1,)} f{f} is increasing. We also know that at the point x=1,{x = 1,} we hit f=0,{f' = 0,} but before that point (x<1{x < 1}) f{f} is increasing, and after that point, (x>1),{(x > 1),} f{f} is decreasing. Thus, we know that the graph along these points looks like:

Third attempt at a sketch.

We now continue filling in the gaps. First, it's always a good idea to step away from calculus for a moment and revisit the original function, applying techniques we learned from basic algebra and precalculus. The original function is f(x)=3xx3.{f(x) = 3x - x^3.} This tells us that the function's graph has the property of crossing the point (0,0).{(0,0).} We confirm this by substituting x=0:{x = 0:}

f(0)=3(0)(0)3f(0)=00f(0)=0 \begin{aligned} f(0) &= 3(0) - (0)^3 \\ f(0) &= 0 - 0 \\ f(0) &= 0 \end{aligned}

So, we place that point as well:

The fourth attempt.

Based on these facts alone, we have a wide range of possibilities for what this function might look like:

The fifth attempt.

The goal now is to just keep drawing inferences to narrow down the possibilities. Looking at the original function, f(x)=3xx3,{f(x) = 3x - x^3,} the function's equation consists of odd powers, so we know that this f{f} is an odd function. And since f{f} is an odd function, we know that the graph of f{f} is symmetric. Everything that's done on the right is done on the left.

Knowing this, the next step is to consider f{f}'s extremeties.1 By this we mean answering the following questions:

  1. What happens when x+?{x \to \infty^{+}?}
  2. What happens when x?{x \to \infty^{-}?}

Let's consider the first question, when x{x} goes to positive infinity. When x{x} is a massive term, then the 3x{3x} term in 3xx3{3x - x^3} is negligible. This implies: When x{x} goes to positive infinity, then f(x)=3xx3{f(x) = 3x - x^3} behaves like f(x)=x3,{f(x) = -x^3,} which goes to negative infinity. Symbolically:

limx(3xx3)=   xf(x)=3xx3f(x)=x3 \begin{aligned} &\lim\limits_{x \to \infty} (3x - x^3) = \infty^{-} \\ \therefore~~~ & x \to \infty \nc f(x) = 3x - x^3 \sim f(x) = x^3 \end{aligned}

Next, when x{x} goes to negative infinity, then the x3{x^3} term becomes negligble, and f(x)=3xx3{f(x) = 3x - x^3} behaves like f(x)=3x,{f(x) = 3x,} which tends towards positive infinity.

limx(3xx3)=+   xf(x)=3xx3f(x)=3x \begin{aligned} &\lim\limits_{x \to \infty^{-}} (3x - x^3) = \infty^{+} \\ \therefore~~~ & x \to \infty^{-} \nc f(x) = 3x - x^3 \sim f(x) = 3x \end{aligned}

This tells us that with f(x)=3xx3,{f(x) = 3x - x^3,} the part of the graph before the first critical point is pointing up, and the part of the graph after the second critical point is pointing down:

Sixth attempt.

At this point, our sketch is getting pretty accurate. All that's left to do is to decorate. In other words, add more detail. We can do so by considering the second derivative:

f(x)=(33x2)=6x \begin{aligned} f''(x) &= (3 - 3x^2)' \\ &= -6x \end{aligned}

Examining the expression 6x,{-6x,} we know that:

x>0f<0x<0f>0 \begin{aligned} &x > 0 \nc f'' < 0 \\ &x < 0 \nc f'' > 0 \end{aligned}

This tells us that:

x>0fx<0f \begin{aligned} &x > 0 \nc f^{\darr} \\ &x < 0 \nc f^{\uparrow} \end{aligned}

This tells us that where x<0{x < 0}, f{f} is concave down, and where f>0,{f > 0,} f{f} is concave up:

Seventh attempt.

That's about as complete of a sketch as we can get. Here's the actual graph of f(x)=3xx3:{f(x) = 3x - x^3:}

-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚

That was a pretty accurate sketch. Importantly, the point (0,0){(0,0)} is where the graph changes from concave up to concave down. We know this because f(0)=0:{f''(0) = 0:}

f(0)=6(0)=0 f''(0) = -6(0) = 0

Because of this special property, this point is called the inflection point. Let's consider another example. Let's say we want to sketch the graph of:

f(x)=x+1x+2 f(x) = \dfrac{x + 1}{x + 2}

The derivative of f:{f:}

f(x)=1(x+2)2 f'(x) = \dfrac{1}{(x + 2)^2}

Looking at this derivative, we know that f(x){f'(x)} can never be 0.{0.} In other words, f(x)0.{f'(x) \neq 0.} This in turn means that there are only two cases for f:{f':}

  1. f>0{f' > 0} or
  2. f<0.{f' < 0.}

This tells us that there are no critical points. Why? Because of the definition of a critical point: A critical point x0{x_0} exists if, and only if, f(x0)=0.{f'(x_0) = 0.} And since f(x){f'(x)} can never be 0,{0,} there are no points such that f(x0)=0.{f'(x_0) = 0.}

Whenever we encounter a situation like this — where we still don't have enough information after applying calculus — we want to go back to the basics; recall basic algebra and precalculus. Looking at the function:

f(x)=x+1x+2 f(x) = \dfrac{x+1}{x+2}

We see that where x=2,{x = -2,} f{f} is undefined:

f(2)=(2)+1(2)+2=10 \begin{aligned} f(-2) &= \dfrac{(-2)+1}{(-2)+2} \\[1em] &= \dfrac{-1}{0} \end{aligned}

From this deduction, we have the following:

Rational sketch attempt 1.

By plotting x=2,{x = -2,} we effectively impose a border. The function f{f} can never touch that line. The next step, is to answer the following:

What happens when f{f} gets very close to x=2?{x = -2?}

To answer this question, we keep in mind that there are two possibilities for f{f} approaching x=2:{x = -2:}

  1. f{f} approaches x=2{x = -2} from the right, and
  2. f{f} approaches x=2{x = -2} from the left.

When f{f} approaches x=2{x = -2} from the right, we write:

f((2)+) \large f((-2)^{+})

And when f{f} approaches x=2{x = -2} from the left, we write:

f((2)) \large f((-2)^{-})

Examining the function, we have the following inferences. When f{f} approaches x=2{x = -2} from the right, we get:

f((2)+)=(2)++1(2)++2=(1)+(0)+ f((-2)^{+}) = \dfrac{(-2)^{+}+1}{(-2)^{+}+2} = \dfrac{(-1)^{+}}{(0)^{+}}

When we write (2)+,{(-2)^{+},} we mean that it's not quite 2.{-2.} Instead, it's just a little more than 2,{-2,} say 1.99999.{-1.99999.} Similarly, when we write (0)+,{(0)^+,} we mean that it's just tiny bit more than 0.{0.} We can think of it this way:

(1.9999)+1(1.9999)+2=0.99990.0000001=(1)+(0)+ \dfrac{(-1.9999 \ldots) + 1}{(-1.9999 \ldots) + 2} = \dfrac{-0.9999 \ldots}{0.000 \ldots 0001} = \dfrac{(-1)^{+}}{(0)^{+}}

In other words, it's some number just a little more than 1,{-1,} divided by some number that's just a little more than 0.{0.} This means we have a negative number divided by a very, very small positive number. This yields negative infinity:

(1)+(0)+= \dfrac{(-1)^{+}}{(0)^{+}} = \infty^{-}

Thus, when f{f} approaches x=2{x = -2} from the right, it goes towards negative infinity. Next, when f{f} approaches x=2{x = -2} from the left, we have:

f((2))=(2)+1(2)+2=(1)+(0)+ f((-2)^{-}) = \dfrac{(-2)^{-}+1}{(-2)^{-}+2} = \dfrac{(-1)^{+}}{(0)^{+}}

which we can think of as:

(2.0000001)+1(2.0000001)+2=1.00000010.0000001=(1)+(0) \dfrac{(-2.000 \ldots 0001 \ldots) + 1}{(-2.000 \ldots 0001 \ldots) + 2} = \dfrac{-1.000 \ldots 0001}{-0.000 \ldots 0001} = \dfrac{(-1)^{+}}{(0)^{-}}

Here, we have a negative number divided by a very, very small negative number. This yields positive infinity:

(1)+(0)+=+ \dfrac{(-1)^{+}}{(0)^{+}} = \infty^{+}

All together, our analysis yielded several conclusions. When f{f} approaches x=2{x = -2} from the right, it tends towards negative infinity. And when f{f} approaches x=2{x = -2} from the left, it tends towards positive infinity. Symbolically:

  1. x(2)+f(x){x \to (-2)^{+} \nc f(x) \to \infty^{-}}
  2. x(2)f(x)+{x \to (-2)^{-} \nc f(x) \to \infty^{+}}

Because we have these inferences, we can next consider f{f}'s extremities

  1. What happens when x{x} is very large? (i.e., x+{x \to \infty^{+}})
  2. What happens when x{x} is very small? (i.e., x{x \to \infty^{-}})

For the first question, we evaluate the limit:

limx+x+1x+2 \lim\limits_{x \to \infty^{+}} \dfrac{x+1}{x+2}

This limit is a little difficult to interpret as is, so we rewrite it by dividing the numerator and the denominator by x:{x:}

limx+1+1x1+2x \lim\limits_{x \to \infty^{+}} \dfrac{1+ \dfrac{1}{x}}{1+ \dfrac{2}{x}}

Looking at it this way, we can see that as x+,{x \to \infty^{+},} 1x0{\dfrac{1}{x} \to 0} and 2x0.{\dfrac{2}{x} \to 0.} Thus:

limx+1+1x1+2x=1+01+0=11=1 \lim\limits_{x \to \infty^{+}} \dfrac{1+ \dfrac{1}{x}}{1+ \dfrac{2}{x}} = \dfrac{1 + 0}{1 + 0} = \dfrac{1}{1} = 1

Just looking at the rewritten expression, the analysis doesn't change when x{x} tends to negative infinity. We still tend to 1:{1:}

limx1+1x1+2x=1+01+0=11=1 \lim\limits_{x \to \infty^{-}} \dfrac{1+ \dfrac{1}{x}}{1+ \dfrac{2}{x}} = \dfrac{1 + 0}{1 + 0} = \dfrac{1}{1} = 1

Thus, we have the following inferences:

  1. x+f(x)1.{x \to \infty^{+} \nc f(x) \to 1.}
  2. xf(x)1.{x \to \infty^{-} \nc f(x) \to 1.}

We can abstract both inferences above as:

f(±)=1 f(\infty^{\pm}) = 1

So, putting all of our inferences together, we have:

  1. Proposition 1: x(2)+f(x){x \to (-2)^{+} \nc f(x) \to \infty^{-}}
  2. Proposition 2: x(2)f(x)+{x \to (-2)^{-} \nc f(x) \to \infty^{+}}
  3. Proposition 3: f(±)=1{f(\infty^{\pm}) = 1}

From these propositions, we know that there are two special asymptotes for the graph of f,{f,} namely: x=2{x = -2} and y=1.{y = 1.} On a graph:

Renewed attempt 1

Next, from proposition 1, we know that as we approach 2{-2} from the right, we plunge towards negative infinity:

Second attempt

And from proposition 2,{2,} we know that as we approach 2{-2} from the left, we fly towards positive infinity:

Third attempt

Finally, from proposition 3,{3,} we know that when for very small x,{x,} we're tending towards y=1,{y = 1,} and for very large x,{x,} we're also tending towards y=1:{y = 1:}

Fourth attempt

Now we have to consider the missing portions above. The key question is, does this graph ever dip into y=1{y = 1} and come back up? The answer is

no. Why? Because there are no critical points. If f{f} did dip below and come back up, we would have a critical point. But we know for a fact that there are not. Since f0,{f' \neq 0,} we know that we can never have a horizontal tangent line, which means that the the graph of f{f} can never dip down and come back up. As such, the graph of f{f} should look like:

Fifth attempt

At this point, we're essentially done, but it's worth doing a few double-checks. To do so, we consider the derivatives. First, we rewrite the function's expression:

f(x)=x+1x+2=x+21x+2=11(x+2) f(x) = \dfrac{x+1}{x+2} = \dfrac{x+2-1}{x+2} = 1 - \dfrac{1}{(x+2)}

The first derivative is now easier to compute:

f(x)=1(x+2)2 f'(x) = \dfrac{1}{(x+2)^2}

Examining the first derivative, we easily see that f{f} is just a hyperbola, so we're correct in sketching a graph consisting of two arms. The first derivative also tells us that:

f{f} is increasing on the intervals: <x<2,{\infty^- < x < -2,} and 2<x<+{-2 < x < \infty^+}

It's importat that we specify the interval, because it is not true f{f} is increasing. It's increasing only at a specific point — where x2.{x \neq -2.} Next, we consider the second derivative:

f(x)=2(x+2)3    (x2) f''(x) = -\dfrac{2}{(x+2)^3}~~~~(x \neq -2)

Looking at the second derivative, we can draw the following inferences:

  1. 2<x<+f(x)<0{-2 < x < +\infty \iff f''(x) < 0} (concave down)
  2. <x<2f(x)>0{-\infty < x < -2 \iff f''(x) > 0} (concave up)

The inferences above tell us that there's no "wiggle" in f{f}'s graph. In other words, it rules out the possibility of one of the arms doing something like this:

Possible alternative sketch

And with that, we're done. Here's the actual graph of f:{f:}

-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚

Having gone through the examples, here's a general strategy for sketching:

  • For basic sketching:
    1. Plot any discontinuities (especially infinite discontinuities).
    2. Plot the endpoints or where x±.{x \to \pm \infty.}
    3. Plot any immediate points.
  • For first-derivative-informed sketching:
    1. Solve for x,{x,} where f(x)=0.{f'(x) = 0.}
    2. Plot the resulting critical points and values, if any.
    3. Determine whether f<0{f' < 0} or f>0{f' > 0} on each interval between the critical points or discontinuities.
  • Second-derivative-informed sketching:
    1. Determine whether f>0{f'' > 0} or f<0{f'' < 0} (concave up or concave down).
    2. Solve for x,{x,} where f(x)=0.{f''(x) = 0.}
    3. Plot the resulting inflection points, if any.

Footnotes

  1. This consideration is something that we can't perform with graphing calculators. It's essentially asking, What does the graph look like off the graphing calculator's screen?