Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 31

Graphing Rational Functions

Recommended resources

Hello! Welcome to your next lesson.

In our previous session, we did the detective work of analysing rational functions, uncovering all their key features: intercepts, asymptotes, and holes. We now have a complete "skeleton" for any given rational function.

Today, we will move from analysis to synthesis. Our learning outcome is to sketch the graph of a rational function using its key features. We will learn how to take all the individual clues we've gathered and assemble them into a complete and accurate picture of the function's graph.

Recapping the Key Features

As a quick reminder, the features we learned to identify in the last lesson are:

  • Domain restrictions: Values of that make the denominator zero.
  • Discontinuities:
    • Vertical Asymptotes: From factors remaining in the denominator after simplification.
    • Holes: From factors that cancel out.
  • End Behaviour:
    • Horizontal Asymptotes: When the degree of the numerator is less than or equal to the degree of the denominator.
    • Slant (Oblique) Asymptotes: When the degree of the numerator is exactly one greater than the degree of the denominator.
  • Intercepts:
    • y-intercept: The value of .
    • x-intercepts (Roots): The roots of the simplified numerator.

Having these features is essential, but there's one more tool we need to understand how to connect them all into a graph.


The Missing Piece: Sign Analysis

Knowing where the graph crosses the x-axis (at the roots) and where it has vertical asymptotes is great, but what does the graph do between these points? Does it lie above the x-axis (positive) or below it (negative)?

To answer this, we use a sign analysis (or sign diagram). The process is straightforward:

  1. Draw a number line.
  2. Mark all the function's x-intercepts (roots) and vertical asymptotes. These are the only places where the function can change its sign from positive to negative or vice versa.
  3. These marks divide the number line into intervals.
  4. Pick a test value within each interval and substitute it into the simplified rational function.
  5. All you need to determine is whether the result is positive (+) or negative (-). This sign applies to the entire interval.

This technique is crucial because it tells us which side of the x-axis the graph lives on in each region, and how it behaves around its vertical asymptotes.


A Step-by-Step Guide to Graphing Rational Functions

We can now establish a systematic procedure for sketching any rational function. Following these steps will ensure you don't miss any details.

4.2: Graphs of Rational Functions

The textbook 'Graphs of Rational Functions' on LibreTexts provides an excellent, detailed procedure for graphing. We will adopt a very similar step-by-step method.

Please read the section titled 'Steps for Graphing Rational Functions'. This will give you a formal outline of the process we are about to use.

Here is our version of that process, combining all the concepts we've learned:

Step 1: Analyse the Function
Find all the key features you learned about in the last lesson:

  • Factorise the numerator and denominator.
  • Find any holes and their coordinates.
  • Find the vertical asymptotes.
  • Find the horizontal or slant asymptote.
  • Find the y-intercept by calculating .
  • Find the x-intercepts (roots) by setting the simplified numerator to zero.

Step 2: Set up the Coordinate Plane

  • Draw your x and y axes.
  • Draw all asymptotes as dashed lines and label them with their equations (e.g., , ).
  • Plot the x-intercepts and the y-intercept as solid points.
  • Plot any holes as open circles.

Step 3: Perform a Sign Analysis

  • Create a number line and mark the x-intercepts and vertical asymptotes.
  • Test a value in each interval to determine if the function is positive (+) or negative (-) in that region.

Step 4: Sketch the Graph

  • Start from the ends: Use the horizontal or slant asymptote as a guide for the graph's behaviour as and .
  • Connect the points: Draw a smooth curve through the plotted intercepts.
  • Respect the signs: Ensure your sketch is above the x-axis in intervals marked (+) and below it in intervals marked (-).
  • Approach the asymptotes: The sign analysis will tell you whether the graph shoots up to or down to as it approaches a vertical asymptote from the left or right. The function should get closer and closer to the vertical asymptotes but never touch them.

Example 1: Function with a Horizontal Asymptote

Let's see this process in action. This video provides an excellent, clear walkthrough of our step-by-step method.

Graphing Rational Functions Step-by-Step (Complete Guide 3 Examples)

The video 'Graphing Rational Functions Step-by-Step' from Mario's Math Tutoring is a great guide. We'll start with the first example.

Watch from the beginning to 09:12. The presenter methodically works through each of our steps for the function y = (x-1)/(x^2 - 2x - 3). Pay close attention to how he uses 'sign analysis' around the vertical asymptotes to determine the graph's behaviour.

The key insight from the video is how to use test points to determine whether the graph approaches or on either side of a vertical asymptote. This is a direct application of our sign analysis.


Example 2: Function with a Hole

Now let's consider a function that has a hole. The process is nearly identical, but we must remember to draw the hole as an open circle on the final graph.

Graphing Rational Functions with Holes
This image summarises the process for a function with a hole. The algebraic steps on the left lead directly to the features on the graph on the right.

Let's watch the second example from the same video, which deals with a hole.

Graphing Rational Functions Step-by-Step (Complete Guide 3 Examples)

Continuing with the 'Graphing Rational Functions Step-by-Step' video, this next example demonstrates how to handle a removable discontinuity (a hole).

Watch from 09:12 to 14:36. Notice how the hole is found by setting the cancelled factor to zero, and its y-coordinate is found by substituting that x-value into the simplified function. The rest of the graphing process follows the same logic as before.

Test your understanding!

You are given a rational function with the following features:

  • Vertical Asymptote at
  • Horizontal Asymptote at
  • x-intercept (root) at
  • y-intercept at
  • A hole at

Which of the following statements must be true about the simplified form of the function, ?
A) The factor is in and is in .
B) The factor is in and is in .
C) The original (unsimplified) function had a common factor of .
D) Both A and C are true.

Show answer

Answer: D

  • Statement A is true: An x-intercept at means the numerator of the simplified function is zero when , so must be a factor of . A vertical asymptote at means the denominator of the simplified function is zero when , so must be a factor of .
  • Statement C is true: A hole at occurs when a common factor of or is cancelled from the original numerator and denominator.
  • Therefore, both A and C are correct.

Example 3: Function with a Slant Asymptote

Our final case is when the degree of the numerator is one greater than the denominator, resulting in a slant asymptote. The only change to our process is that instead of a horizontal line, our "guide rail" for the end behaviour is a diagonal line. You find the equation of this line, , using polynomial long division.

Let's watch the final example from the video.

Graphing Rational Functions Step-by-Step (Complete Guide 3 Examples)

The last example from Mario's Math Tutoring tackles a function with a slant asymptote.

Watch from 14:36 to 22:16. The key step here is the polynomial long division used to find the equation of the slant asymptote. The presenter finds it to be y = x - 1. After that, the process of finding intercepts and using sign analysis remains the same.

Note that it is possible for a graph to cross its horizontal or slant asymptote, especially in the "middle" of the graph. The asymptote primarily describes the end behaviour as becomes very large or very small.


Conclusion

You have now learned how to take a rational function from its algebraic form to a complete graphical sketch. The process is systematic and relies on combining the analysis from our last lesson with the new tool of sign analysis.

Key Takeaways:

  • The 4-Step Process:
    1. Analyse: Find all intercepts, asymptotes, and holes.
    2. Set up: Draw axes and plot all the features you found.
    3. Sign Analysis: Create a sign chart using roots and vertical asymptotes to determine where the function is positive or negative.
    4. Sketch: Draw the curve, respecting all points, signs, and asymptotic behaviour.
  • Sign analysis is crucial: It dictates the graph's behaviour between and around the key points.
  • The type of asymptote (horizontal, slant) only changes the "guide rails" for the end behaviour; the rest of the process is the same.

Preview of the Next Lesson:
The sign analysis we used today is a powerful tool in its own right. In the next lesson, we will focus on it directly to solve our final topic in this module: solving polynomial and rational inequalities. You'll find that you've already learned the most important parts of the technique