Rational Function

Download as PDF

Ever wondered what happens when you divide one polynomial by another? You get a rational function! This lesson will guide you through the key concepts of these fascinating functions, including their unique graphs, domains, and the special rules that govern their behavior.

Rational Function — an original Algebra911 reference diagram defining rational function with its key formula and a worked example.
Rational Functions: A Complete Guide for Algebra

What Is a Rational Function?

A rational function is a function that can be written as the ratio of two polynomial functions. Think of it like a fraction, but instead of having integers on the top and bottom, you have polynomials. The name "rational" comes from the word "ratio."

The standard form of a rational function is:

f(x) = \frac{P(x)}{Q(x)}

In this formula, both P(x) (the numerator) and Q(x) (the denominator) are polynomials. There's one very important rule: the denominator polynomial, Q(x), cannot be equal to zero. Division by zero is undefined in mathematics, and this rule is the key to understanding many properties of rational functions.

Here are a few examples of rational functions:

  • f(x)=1x (Here, P(x)=1 and Q(x)=x)
  • g(x)=x+2x3 (Here, P(x)=x+2 and Q(x)=x3)
  • h(x)=x24x2+5x+6 (Here, P(x)=x24 and Q(x)=x2+5x+6)

An expression is not a rational function if it contains things like square roots of variables or variables in an exponent. For example, y=x+1x1 is not a rational function because its numerator contains a square root.

How Do You Find the Domain of a Rational Function?

The domain of a function is the set of all possible input values (x-values) for which the function is defined. For rational functions, the one and only rule you need to worry about is: the denominator cannot be zero. Therefore, to find the domain, you must find the x-values that would make the denominator zero and exclude them.

Here is the step-by-step process:

  1. Take the polynomial in the denominator, Q(x), and set it equal to zero.
  2. Solve the equation Q(x)=0 for x.
  3. The solutions you find are the values that are not in the domain. The domain is all real numbers except for these values.
Example 1

Find the domain of the function f(x)=x+5x2.

Step 1: Set the denominator equal to zero.

x2=0

Step 2: Solve for x.

x=2

Step 3: State the domain. The function is undefined when x=2. Therefore, the domain is all real numbers except for 2. We can write this as x2 or in interval notation as (,2)(2,).

What Are Vertical Asymptotes?

A vertical asymptote is an invisible vertical line that the graph of a function approaches but never touches or crosses. These asymptotes occur at the x-values where the function is undefined—the very same values we excluded from the domain!

Specifically, a vertical asymptote exists at x=c if the denominator of the rational function is zero at x=c and the numerator is not zero. When x gets very close to c, the function's value shoots up to positive infinity or down to negative infinity.

To find the vertical asymptotes:

  1. Simplify the rational function by factoring the numerator and denominator and cancelling any common factors. (We'll discuss what happens with cancelled factors later—they create 'holes' instead of asymptotes).
  2. Set the simplified denominator equal to zero.
  3. The solutions are the equations of your vertical asymptotes.
Example 2

Find the vertical asymptotes of the function g(x)=3xx29.

Step 1: Factor the denominator. The numerator is already simple.

g(x)=3x(x3)(x+3)

There are no common factors to cancel.

Step 2: Set the factored denominator equal to zero.

(x3)(x+3)=0

Step 3: Solve for x. This gives us two solutions.

x3=0x=3x+3=0x=3

Conclusion: The function has two vertical asymptotes, the lines x=3 and x=3.

How Do You Find Horizontal Asymptotes?

A horizontal asymptote is an invisible horizontal line that the graph of a function approaches as x heads towards positive infinity () or negative infinity (). It describes the long-term behavior or the 'ends' of the graph. A function can sometimes cross its horizontal asymptote, unlike a vertical one.

To find the horizontal asymptote of f(x)=P(x)Q(x), you only need to compare the degrees of the polynomials. Let the degree of the numerator P(x) be n and the degree of the denominator Q(x) be m. There are three simple rules:

RuleConditionHorizontal Asymptote
Bottom-HeavyThe degree of the numerator is less than the degree of the denominator (n<m).The x-axis, y=0.
Equal DegreesThe degree of the numerator is equal to the degree of the denominator (n=m).The line y=leading coefficient of P(x)leading coefficient of Q(x).
Top-HeavyThe degree of the numerator is greater than the degree of the denominator (n>m).There is no horizontal asymptote.
Example 3

Find the horizontal asymptote of the function h(x)=4x2+12x23x.

Step 1: Find the degree of the numerator and denominator.

  • The degree of the numerator, 4x2+1, is n=2.
  • The degree of the denominator, 2x23x, is m=2.

Step 2: Compare the degrees. Here, n=m. This means we use the 'Equal Degrees' rule.

Step 3: Find the ratio of the leading coefficients.

  • The leading coefficient of the numerator is 4.
  • The leading coefficient of the denominator is 2.
y=42=2

Conclusion: The horizontal asymptote is the line y=2.

A Step-by-Step Guide to Graphing Rational Functions

Graphing a rational function involves putting all the pieces together: domain, asymptotes, and intercepts. Following a structured process makes it much easier.

Let's graph f(x)=2x+2x1.

  1. Find Asymptotes:
    • Vertical Asymptote: Set the denominator to zero. x1=0x=1. The VA is at x=1.
    • Horizontal Asymptote: The degree of the numerator is 1, and the degree of the denominator is 1. Since the degrees are equal, we use the ratio of leading coefficients: y=21=2. The HA is at y=2.
  2. Find Intercepts:
    • y-intercept: Set x=0. f(0)=2(0)+201=21=2. The y-intercept is at (0,2).
    • x-intercept(s): Set the numerator to zero. 2x+2=02x=2x=1. The x-intercept is at (1,0).
  3. Plot Points and Sketch: Draw your asymptotes as dashed lines. Plot your intercepts. Now, test a point on each side of the vertical asymptote to see where the curve lies.
    • Left of x=1: Let's try x=2. f(2)=2(2)+221=23=23. So the point (2,2/3) is on the graph. This tells us the curve is above the horizontal asymptote on the far left.
    • Right of x=1: Let's try x=3. f(3)=2(3)+231=82=4. So the point (3,4) is on the graph. This tells us the curve is above the horizontal asymptote on the right.
  4. Draw the Graph: Connect the points with smooth curves that approach the asymptotes. The graph will have two separate branches, one on each side of the vertical asymptote.

What Is a 'Hole' in a Rational Function Graph?

Sometimes, a factor in the denominator cancels out with an identical factor in the numerator. When this happens, it doesn't create a vertical asymptote. Instead, it creates a hole in the graph, also known as a removable discontinuity. A hole is a single point where the function is undefined, which we show on the graph with a small open circle.

Consider the function f(x)=x24x2. Let's find the hole.

  1. Factor the numerator and denominator:
  2. f(x)=(x2)(x+2)x2
  3. Identify and cancel the common factor: The factor (x2) is common to both. Cancelling it gives us a simplified function, let's call it g(x)=x+2.
  4. Find the hole's location:
    • The x-coordinate of the hole is the value that made the cancelled factor zero. Set x2=0, which gives x=2.
    • The y-coordinate is found by plugging this x-value into the simplified function. g(2)=2+2=4.

So, the graph of f(x)=x24x2 looks exactly like the line y=x+2, but with a hole at the point (2,4).

Common Mistakes to Avoid

  • Illegal Cancellation: A very common error is to cancel terms instead of factors. For example, in x+3x+5, you cannot cancel the x terms to get 35. Cancellation only works when the entire term is a factor of the top and bottom, like in 3(x+5)2(x+5).
  • Forgetting Negative Solutions: When solving a denominator like x216=0, it's easy to find x=4 but forget the other solution, x=4. This would cause you to miss a vertical asymptote.
  • Confusing Holes and Asymptotes: Remember the rule: if a factor in the denominator cancels with a factor in the numerator, it creates a hole. If a factor in the denominator does not cancel, it creates a vertical asymptote.
  • Mixing Up Horizontal Asymptote Rules: Keep the three rules for horizontal asymptotes straight. It's helpful to write them down (Bottom-Heavy, Equal Degrees, Top-Heavy) before you start a problem.
  • Assuming a Graph Never Crosses a Horizontal Asymptote: While a graph never crosses its vertical asymptotes, it can and sometimes does cross its horizontal asymptote. The horizontal asymptote only dictates the behavior of the graph as x approaches ±.

Quick Summary and Key Concepts

Here is a quick reference table to help you remember how to find the key features of any rational function, f(x)=P(x)Q(x).

FeatureHow to Find It
DomainSet the original denominator Q(x)0 and solve for x. The domain is all real numbers except these values.
Vertical AsymptotesAfter simplifying the function, set the remaining denominator equal to zero and solve for x.
HolesLook for factors that cancel from the numerator and denominator. The hole exists at the x-value that makes the cancelled factor zero.
Horizontal AsymptoteCompare the degree of the numerator (n) with the degree of the denominator (m).
- If n<m, asymptote is y=0.
- If n=m, asymptote is y= ratio of leading coefficients.
- If n>m, there is no horizontal asymptote.
x-interceptsSet the simplified numerator equal to zero and solve for x.
y-interceptCalculate f(0). If f(0) is undefined, there is no y-intercept.

Frequently Asked Questions

Can a graph ever cross a horizontal asymptote?

Yes, it can. A horizontal asymptote describes the behavior of the graph as x approaches positive or negative infinity. The graph can cross it, especially in the 'middle' part of the graph, before it settles down and approaches the line at the far ends.

Why is the domain of a rational function so important?

The domain tells us which x-values are 'allowed' for the function. For rational functions, the key is avoiding division by zero, which is undefined. The values excluded from the domain point directly to important graphical features like vertical asymptotes and holes.

What's the difference between a rational function and a polynomial?

A polynomial is a single expression like x2+3x4. A rational function is a ratio of two polynomials, like x2+3x4x1. You can think of all polynomials as rational functions where the denominator is simply 1.

Do all rational functions have a vertical asymptote?

No. A rational function only has a vertical asymptote if there's a real number that makes its simplified denominator zero. For example, f(x)=xx2+1 has no vertical asymptotes because the denominator x2+1 can never be zero.

What is a real-world example of a rational function?

Rational functions can model average cost. If a company has a fixed setup cost of 1000anditcosts5 to make each item, the average cost per item is C(x)=1000+5xx, where x is the number of items made. This is a rational function.

Is y = (sqrt(x) + 2) / (x - 1) a rational function?

No, it is not. A rational function must be a ratio of two polynomials. The term x is the same as x1/2. Since the exponent is not a non-negative integer, the numerator is not a polynomial.

How do I know if the graph will be above or below the horizontal asymptote?

The best way is to test points. Pick a large positive x-value (like 100) and a large negative x-value (like -100) and plug them into the function. If the result is greater than the asymptote value, the graph is above it; if less, the graph is below it.