<< Chapter < Page Chapter >> Page >

Now let’s use this strategy to graph several different functions. We start by graphing a polynomial function.

Sketching a graph of a polynomial

Sketch a graph of f ( x ) = ( x 1 ) 2 ( x + 2 ) .

Step 1: Since f is a polynomial, the domain is the set of all real numbers.

Step 2: When x = 0 , f ( x ) = 2 . Therefore, the y -intercept is ( 0 , 2 ) . To find the x -intercepts, we need to solve the equation ( x 1 ) 2 ( x + 2 ) = 0 , gives us the x -intercepts ( 1 , 0 ) and ( −2 , 0 )

Step 3: We need to evaluate the end behavior of f . As x , ( x 1 ) 2 and ( x + 2 ) . Therefore, lim x f ( x ) = . As x , ( x 1 ) 2 and ( x + 2 ) . Therefore, lim x f ( x ) = . To get even more information about the end behavior of f , we can multiply the factors of f . When doing so, we see that

f ( x ) = ( x 1 ) 2 ( x + 2 ) = x 3 3 x + 2 .

Since the leading term of f is x 3 , we conclude that f behaves like y = x 3 as x ± .

Step 4: Since f is a polynomial function, it does not have any vertical asymptotes.

Step 5: The first derivative of f is

f ( x ) = 3 x 2 3 .

Therefore, f has two critical points: x = 1 , −1 . Divide the interval ( , ) into the three smaller intervals: ( , −1 ) , ( −1 , 1 ) , and ( 1 , ) . Then, choose test points x = −2 , x = 0 , and x = 2 from these intervals and evaluate the sign of f ( x ) at each of these test points, as shown in the following table.

Interval Test Point Sign of Derivative f ( x ) = 3 x 2 3 = 3 ( x 1 ) ( x + 1 ) Conclusion
( , −1 ) x = −2 ( + ) ( ) ( ) = + f is increasing.
( −1 , 1 ) x = 0 ( + ) ( ) ( + ) = f is decreasing.
( 1 , ) x = 2 ( + ) ( + ) ( + ) = + f is increasing.

From the table, we see that f has a local maximum at x = −1 and a local minimum at x = 1 . Evaluating f ( x ) at those two points, we find that the local maximum value is f ( −1 ) = 4 and the local minimum value is f ( 1 ) = 0 .

Step 6: The second derivative of f is

f ( x ) = 6 x .

The second derivative is zero at x = 0 . Therefore, to determine the concavity of f , divide the interval ( , ) into the smaller intervals ( , 0 ) and ( 0 , ) , and choose test points x = −1 and x = 1 to determine the concavity of f on each of these smaller intervals as shown in the following table.

Interval Test Point Sign of f ( x ) = 6 x Conclusion
( , 0 ) x = −1 f is concave down.
( 0 , ) x = 1 + f is concave up.

We note that the information in the preceding table confirms the fact, found in step 5 , that f has a local maximum at x = −1 and a local minimum at x = 1 . In addition, the information found in step 5 —namely, f has a local maximum at x = −1 and a local minimum at x = 1 , and f ( x ) = 0 at those points—combined with the fact that f changes sign only at x = 0 confirms the results found in step 6 on the concavity of f .

Combining this information, we arrive at the graph of f ( x ) = ( x 1 ) 2 ( x + 2 ) shown in the following graph.

The function f(x) = (x −1)2 (x + 2) is graphed. It crosses the x axis at x = −2 and touches the x axis at x = 1.
Got questions? Get instant answers now!

Sketch a graph of f ( x ) = ( x 1 ) 3 ( x + 2 ) .


The function f(x) = (x −1)3(x + 2) is graphed.

Got questions? Get instant answers now!

Sketching a rational function

Sketch the graph of f ( x ) = x 2 ( 1 x 2 )

Step 1: The function f is defined as long as the denominator is not zero. Therefore, the domain is the set of all real numbers x except x = ± 1 .

Step 2: Find the intercepts. If x = 0 , then f ( x ) = 0 , so 0 is an intercept. If y = 0 , then x 2 ( 1 x 2 ) = 0 , which implies x = 0 . Therefore, ( 0 , 0 ) is the only intercept.

Step 3: Evaluate the limits at infinity. Since f is a rational function, divide the numerator and denominator by the highest power in the denominator: x 2 . We obtain

lim x ± x 2 1 x 2 = lim x ± 1 1 x 2 1 = −1 .

Therefore, f has a horizontal asymptote of y = −1 as x and x .

Step 4: To determine whether f has any vertical asymptotes, first check to see whether the denominator has any zeroes. We find the denominator is zero when x = ± 1 . To determine whether the lines x = 1 or x = −1 are vertical asymptotes of f , evaluate lim x 1 f ( x ) and lim x 1 f ( x ) . By looking at each one-sided limit as x 1 , we see that

lim x 1 + x 2 1 x 2 = and lim x 1 x 2 1 x 2 = .

In addition, by looking at each one-sided limit as x 1 , we find that

lim x 1 + x 2 1 x 2 = and lim x 1 x 2 1 x 2 = .

Step 5: Calculate the first derivative:

f ( x ) = ( 1 x 2 ) ( 2 x ) x 2 ( −2 x ) ( 1 x 2 ) 2 = 2 x ( 1 x 2 ) 2 .

Critical points occur at points x where f ( x ) = 0 or f ( x ) is undefined. We see that f ( x ) = 0 when x = 0 . The derivative f is not undefined at any point in the domain of f . However, x = ± 1 are not in the domain of f . Therefore, to determine where f is increasing and where f is decreasing, divide the interval ( , ) into four smaller intervals: ( , −1 ) , ( −1 , 0 ) , ( 0 , 1 ) , and ( 1 , ) , and choose a test point in each interval to determine the sign of f ( x ) in each of these intervals. The values x = −2 , x = 1 2 , x = 1 2 , and x = 2 are good choices for test points as shown in the following table.

Interval Test Point Sign of f ( x ) = 2 x ( 1 x 2 ) 2 Conclusion
( , −1 ) x = −2 / + = f is decreasing.
( −1 , 0 ) x = −1 / 2 / + = f is decreasing.
( 0 , 1 ) x = 1 / 2 + / + = + f is increasing.
( 1 , ) x = 2 + / + = + f is increasing.

From this analysis, we conclude that f has a local minimum at x = 0 but no local maximum.

Step 6: Calculate the second derivative:

f ( x ) = ( 1 x 2 ) 2 ( 2 ) 2 x ( 2 ( 1 x 2 ) ( −2 x ) ) ( 1 x 2 ) 4 = ( 1 x 2 ) [ 2 ( 1 x 2 ) + 8 x 2 ] ( 1 x 2 ) 4 = 2 ( 1 x 2 ) + 8 x 2 ( 1 x 2 ) 3 = 6 x 2 + 2 ( 1 x 2 ) 3 .

To determine the intervals where f is concave up and where f is concave down, we first need to find all points x where f ( x ) = 0 or f ( x ) is undefined. Since the numerator 6 x 2 + 2 0 for any x , f ( x ) is never zero. Furthermore, f is not undefined for any x in the domain of f . However, as discussed earlier, x = ± 1 are not in the domain of f . Therefore, to determine the concavity of f , we divide the interval ( , ) into the three smaller intervals ( , −1 ) , ( −1 , −1 ) , and ( 1 , ) , and choose a test point in each of these intervals to evaluate the sign of f ( x ) . in each of these intervals. The values x = −2 , x = 0 , and x = 2 are possible test points as shown in the following table.

Interval Test Point Sign of f ( x ) = 6 x 2 + 2 ( 1 x 2 ) 3 Conclusion
( , −1 ) x = −2 + / = f is concave down.
( −1 , −1 ) x = 0 + / + = + f is concave up.
( 1 , ) x = 2 + / = f is concave down.

Combining all this information, we arrive at the graph of f shown below. Note that, although f changes concavity at x = −1 and x = 1 , there are no inflection points at either of these places because f is not continuous at x = −1 or x = 1 .

The function f(x) = x2/(1 − x2) is graphed. It has asymptotes y = −1, x = −1, and x = 1.
Got questions? Get instant answers now!
Practice Key Terms 5

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Calculus volume 1. OpenStax CNX. Feb 05, 2016 Download for free at http://cnx.org/content/col11964/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Calculus volume 1' conversation and receive update notifications?

Ask