<< Hide Menu

📚

 > 

♾️ 

 > 

5.8 Sketching Graphs of Functions and Their Derivatives

5 min readjune 18, 2024

Kashvi Panjolia

Kashvi Panjolia

Kashvi Panjolia

Kashvi Panjolia

5.8 My Combo

Previously you learned all about utilizing a function’s derivatives to find its increasing and decreasing intervals, relative and global extrema, concave up and concave down intervals, and more! Can we combine all this to form a complete image of a function’s graph? Yes, we can! Today, you’ll learn how to utilize all these tools in your toolbox to form an overall picture of a function.


📈 Sketching Graphs

Drawing the graphs of functions and their derivatives is very useful in determining key features of the function. From a graph, you can identify discontinuities, find critical points, and extrema, and discern many other important elements of a function.

There are seven steps to sketching a graph. This may seem like a lot, but once you break it down, you’ll get a hang of it! 🔎

  1. 〰️ Find the domain of the function and determine if there are any discontinuities.
  2. 🎯 Identify key features of the function, such as intercepts and symmetry.
  3. 💯 Find critical points.
  4. 📶 Determine where the function increases and decreases.
  5. 🤔 Find the extrema of the function.
    1. 🥈 An alternative to steps 4) and 5) is to use the Second Derivative Test to determine the extrema of the function.
  6. ✏️ Determine points of inflection and intervals of concavity.

And there we have it! An overview of what the entire function looks like! You can now use all these interesting points to sketch a graph of the function. 😄

🎨 Sketching Graphs Walkthrough

Now, let’s delve deeper into what each of these steps entails and sketch the following function!

f(x)=(x+2)2(x1)f(x)=(x+2)^2(x-1)

〰️ Step 1) Find the domain and look for discontinuities.

A useful fact to memorize is that all polynomial functions have a domain consisting of all real numbers. Since we’re graphing a polynomial here, we know that the domain consists of all real numbers.

When looking for discontinuities, note if the function is rational or has any points where f(x)f(x) is not defined. Since there seem to be no points where f(x)f(x) is not defined, we can conclude that this function is continuous everywhere in its domain.

🎯 Step 2) Identify key features of the function, such as intercepts and symmetry.

First, let’s look for x-intercepts, where f(x)=0f(x)=0.

0=(x+2)2(x1)0=(x+2)^2(x-1)

We can quickly do this by setting each factor equal to zero and solving for x.

(x+2)2=0(x+2)^2=0
x+2=0x+2=0
x=2x=-2

And now, to set x1x-1 equal to 0.

(x1)=0(x-1)=0
x=1x=1

This gives us two x-intercepts: x=2x=-2 and x=1x=1. The coordinates of these x-intercepts are (2,0)(-2,0) and (1,0)(1,0). Great! We got our first points we can plot.

Let’s now look for y-intercepts, where x=0x=0.

f(0)=(0+2)2(01)f(0)=(0+2)^2(0-1)
f(0)=(2)2(1)=4f(0)=(2)^2(-1)=\boxed{-4}

We have another point we can jot down to plot later! The coordinates of the y-intercept are (0,4)(0,-4).

Lastly, let’s look for symmetry. A function is symmetric with respect to a line if, when reflected across that line, the function looks the same as the original function. There are two types of symmetry a function may have:

  1. Even - the function is symmetrical across the y-axis. f(x)=f(x)f(-x)=f(x) for all xx in the domain of the function.
  2. Odd - the function is symmetric about the origin. f(x)=f(x)f(-x)=-f(x) for all xx in the domain of the function.

If neither of these statements is true, the function has no symmetry. With our function, this is the case, so our function has no symmetry.

Untitled

Image Courtesy of The Organic Chemistry Tutor

💯 Step 3) Find critical points.

If you recall from earlier sections of the unit, the first step of using a function’s derivative to determine its behavior involved finding critical points! These points occur when the function’s first derivative is equal to zero or is undefined.

The first derivative of our function is the following, using the product rule.

f(x)=2(x+2)(x1)+(x+2)2f'(x)=2(x+2)(x-1)+(x+2)^2

Setting this equal to zero and solving for x, we get x=2x=-2 and x=0x=0 as the function’s critical points. We can use this information in the next step!

📶 Step 4) Determine where the function increases and decreases.

Using these critical points, we can determine the intervals where the function increases and decreases.

  • ➕=📈 If the derivative of the function on the interval between two adjacent/nearest critical points is negative, then the function is decreasing on that interval.
  • ➖=📉 If the derivative of the function is positive, then the function is increasing on that interval.

Please revisit our AP Calculus - 5.3 Determining Intervals on Which a Function Is Increasing or Decreasing guide for a more in-depth explanation!

Let’s evaluate the first derivative around each of our critical points:

Intervalxxf(x)f'(x)Verdict
(,2)(-\infin,-2)x=3x=-3f(3)=9f'(-3)=9ff is increasing
(2,0)(-2,0)x=1x=-1f(1)=3f'(-1)=-3ff is decreasing
(0,)(0,\infin)x=1x=1f(1)=9f'(1)=9ff is increasing

Whew! Now we know that ff is increasing between (,2)(-\infin,-2) and (0,)(0,\infin) and decreasing between (2,0)(-2,0).

🤔 Step 5) Find the extrema of the function.

Based on the information we discovered in the last step, we can easily apply the First Derivative Test to find the extrema of the function!

  • ⬇️ The critical points where the function is decreasing on its left and increasing on its right are minimums.
  • ⬆️ The critical points where the function is increasing on its left and decreasing on its right are maximums.

Visit our AP Calculus - 5.4 Using the First Derivative Test to Determine Relative (Local) Extrema guide if you need a refresher!

We know that to the left of x=2x=-2, the function is increasing, and to the right of x=2x=-2, the function is decreasing. Therefore, x=2x=-2 is a local maximum.

Vice versa is true for our critical point at x=0x=0. Since the function is decreasing to its left and increasing to its right, x=0x=0 is a local minimum.

🥈 Alternative to Steps 4 & 5

An alternative to steps 4) and 5) is to use the Second Derivative Test to determine the extrema of the function. Recall that this test states that…

  • If the second derivative of a function at a critical point is negative, then the function has a relative maximum at that point (and it’s concave down).
  • If the second derivative of a function at a critical point is positive, then the function has a relative minimum at that point (and it’s concave up).

Please see our AP Calculus - 5.7 Using the Second Derivative Test to Determine Extrema guide.

✏️ Step 6) Determine points of inflection and concavity.

A function has a possible point of inflection if its second derivative is equal to zero at the point. To verify it is indeed a point of inflection, we must check to see if the function changes from concave up to concave down or vice versa (aka the second derivative changes from negative to positive or vice versa) on the two sides of the point.

For more information, revisit our AP Calculus - 5.6 Determining Concavity of Functions over Their Domains guide!

Here’s the second derivative of our function, f(x)f(x).

f(x)=6x+6f''(x)=6x+6

Let’s find the possible point of inflection by setting this equal to 0.

0=6x+60=6x+6
6=6x-6=6x
x=1x=-1

Great! Now, we have to analyze the sign of the second derivative to see if this is a true point of inflection.

xxf(x)f''(x)Concavity
2-26-6Concave down
0066Concave up

Since the second derivative’s sign switches and the function’s concavity changes, x=1x=-1 is a point of inflection.

🎨 Putting it All Together!

Compiling all of the information we found, we know that:

  • The function is continuous.
  • We can plot (2,0)(-2,0), (1,0)(1,0), and (0,4)(0,-4).
  • ff is increasing between (,2)(-\infin,-2) and (0,)(0,\infin).
  • ff is decreasing between (2,0)(-2,0).
  • x=2x=-2 is a local maximum.
  • x=0x=0 is a local minimum.
  • Concavity changes at x=1x=-1 from concave down, to concave up.

And here we have it!

Untitled

Image Created with Desmos.

You may not have needed all of the information we obtained, but having it all helps you double-check that you graphed correctly. Great work! 👏


📝 Sketching Graphs Practice

Try to sketch the following function on your own! What does the graph of f(x)f(x) look like?

f(x)=x3+3x2+3f(x)=x^{3}+3x^{2}+3

Be sure to go through each step on your own before you scroll down further and see the answer!

✅ Sketching Graphs Question Solution

We’ll briefly go through each step and then show you the graph. Instead of going through steps 4 and 5 this time, we’ll try the alternative.

  1. 〰️ Find the domain of the function and determine if there are any discontinuities.
    1. Since this is a polynomial, the domain is all real numbers and there are no discontinuities.
  2. 🎯 Identify key features of the function, such as intercepts and symmetry.
    1. The x-intercept is (3.279,0)(-3.279,0) and the y-intercept is (0,3)(0,3).
    2. This function has neither even nor odd symmetry.
  3. 💯 Find critical points.
    1. By setting f(x)=3x2+6xf'(x)=3x^2+6x equal to 0 and factoring, we know that the function has critical points at x=2x=-2 and x=0x=0.
  4. 🥈 Alternative method: use the Second Derivative Test to determine the extrema of the function.
    1. f(x)=6x+6f''(x)=6x+6
    2. f(2)=6f''(-2)=-6. Since 6<0-6<0, this means the function is concave down at this point, and thus by the Second Derivative Test is a maximum.
    3. f(0)=6f''(0)=6. Since 6>06>0, this means the function is concave up at this point, and thus by the Second Derivative Test is a minimum.
  5. ✏️ Determine points of inflection and intervals of concavity.
    1. x=1x=-1 is the only possible point of inflection. When we check concavity of the function to its left and right, we find that the function is concave down to the left of the point and concave up to the right of the point.
    2. Since the concavity of the function changes at x=1x=-1, it is a point of inflection.
  6. 🎨 Putting it All Together!
    1. The y-intercept is (0,3)(0,3).
    2. x=2x=-2 is a maximum.
    3. x=0x=0 is a minimum.
    4. x=1x=-1 is a point of inflection (concave down to the left, concave up to the right)

We can plug these points into f(x)f(x) to get their exact y-values.

With this information, we see that f(x)=x3+3x2+3f(x)=x^{3}+3x^{2}+3 looks like the following:

Untitled

Image Created with Desmos.


⭐ Closing

You can follow these same steps for drawing the graph of the derivative of a function, and the second derivative. While you may not have to draw a graph from scratch on the AP exam, you will likely have to know how to determine the key information about a function from its graph, and drawing the graph can give you an in-depth understanding of these key features. ✍️