Rational Function - Graph, Domain, Range, Asymptotes (2024)

A rational function is a ratio of polynomials where the polynomial in the denominator shouldn't be equal to zero. Isn't it resembling the definition of a rational number (which is of the form p/q, where q ≠ 0)? Did you know Rational functions find application in different fields in our day-to-day life? Not only do they describe the relationship between speed, distance, and time, but also are widely used in the medical and engineering industry.

Let us learn more about rational functions along with how to graph it, its domain, range, asymptotes, etc along with solved examples.

1.What is a Rational Function?
2.How to Identify a Rational Function?
3.Domain and Range of Rational Function
4.Asymptotes of Rational Function
5.Graphing Rational Functions
6.Inverse of a Rational Function
7.FAQs on Rational Functions

What is a Rational Function?

A rational function is a function that is the ratio of polynomials. Any function of one variable, x, is called a rational function if, it can be represented as f(x) = p(x)/q(x), where p(x) and q(x) are polynomials such that q(x) ≠ 0. For example, f(x) = (x2 + x - 2) / (2x2 - 2x - 3) is a rational function and here, 2x2 - 2x - 3 ≠ 0.

We know that every constant is a polynomial and hence the numerators of a rational function can be constants also. For example, f(x) = 1/(3x+1) can be a rational function. But note that the denominators of rational functions cannot be constants. For example, f(x) = (2x + 3) / 4 is NOT a rational function, rather, it is a linear function.

Rational Function - Graph, Domain, Range, Asymptotes (1)

How to Identify a Rational Function?

By the definition of the rational function (from the previous section), if either the numerator or denominator is not a polynomial, then the fraction formed does NOT represent a rational function. For example, f(x) = (4 + √x)/(2-x), g(x) = (3 + (1/x)) / (2 - x), etc are NOT rational functions as numerators in these examples are NOT polynomials.

Domain and Range of Rational Function

Any fraction is not defined when its denominator is equal to 0. This is the key point that is used in finding the domain and range of a rational function.

Domain of Rational Function

The domain of a rational function is the set of all x-values that the function can take. To find the domain of a rational function y = f(x):

  • Set the denominator ≠ 0 and solve it for x.
  • Set of all real numbers other than the values of x mentioned in the last step is the domain.

Example: Find the domain of f(x) = (2x + 1) / (3x - 2).

Solution:

We set the denominator not equal to zero.

3x - 2 ≠ 0
x ≠ 2/3

Thus, the domain = {x ∈ R | x ≠ 2/3}

Range of Rational Function

The range of a rational function is the set of all outputs (y-values) that it produces. To find the range of a rational function y= f(x):

  • If we have f(x) in the equation, replace it with y.
  • Solve the equation for x.
  • Set the denominator of the resultant equation ≠ 0 and solve it for y.
  • Set of all real numbers other than the values of y mentioned in the last step is the range.

Example: Find the range of f(x) = (2x + 1) / (3x - 2).

Solution:

Let us replace f(x) with y. Then y = (2x + 1) / (3x - 2). Now, we will solve this for x.

(3x - 2) y = (2x + 1)
3xy - 2y = 2x + 1
3xy - 2x = 2y + 1
x (3y - 2) = (2y + 1)
x = (2y + 1) / (3y - 2)

Now (3y - 2) ≠ 0
y ≠ 2/3

So the range = {y ∈ R | y ≠ 2/3}

Asymptotes of Rational Function

A rational function can have three types of asymptotes: horizontal, vertical, and slant asymptotes. Apart from these, it can have holes as well. Let us see how to find each of them.

Holes of a Rational Function

The holes of a rational function are points that seem that they are present on the graph of the rational function but they are actually not present. They can be obtained by setting the linear factors that are common factors of both numerator and denominator of the function equal to zero and solving for x. We can find the corresponding y-coordinates of the points by substituting the x-values in the simplified function. Every rational function does NOT need to have holes. Holes exist only when numerator and denominator have linear common factors.

Example: Find the holes of the function f(x) = (x2 + 5x + 6) / (x2 + x - 2).

Solution:

Let us factorize the numerator and denominator and see whether there are any common factors.

f(x) = [ (x + 2)(x + 3) ] / [ (x + 2) (x - 1) ]
= [ ̶(̶x̶ ̶+̶ ̶2̶)̶(x + 3) ] / [ ̶(̶x̶ ̶+̶ ̶2̶)̶ (x - 1) ]
= (x + 3) / (x - 1)

Since (x + 2) was striked off, there is a hole at x = -2. Its y-coordinate is f(-2) = (-2 + 3) / (-2 - 1) = -1/3.

Thus, there is a hole at (-2, -1/3).

Vertical Asymptote of a Rational Function

A vertical asymptote (VA) of a function is an imaginary vertical line to which its graph appears to be very close but never touch. It is of the form x = some number. Here, "some number" is closely connected to the excluded values from the domain. But note that there cannot be a vertical asymptote at x = some number if there is a hole at the same number. A rational function may have one or more vertical asymptotes. So to find the vertical asymptotes of a rational function:

  • Simplify the function first to cancel all common factors (if any).
  • Set the denominator = 0 and solve for (x) (or equivalently just get the excluded values from the domain by avoiding the holes).

Example: Find the vertical asymptotes of the function f(x) = (x2 + 5x + 6) / (x2 + x - 2).

Solution:

We have already seen that this function simplifies to f(x) = (x + 3) / (x - 1).

Setting the denominator to 0, we get

x - 1 = 0
x = 1

Thus, there is a VA of the given rational function is, x = 1.

Horizontal Asymptote of a Rational Function

A horizontal asymptote (HA) of a function is an imaginary horizontal line to which its graph appears to be very close but never touch. It is of the form y = some number. Here, "some number" is closely connected to the excluded values from the range. A rational function can have at most one horizontal asymptote. Easy way to find the horizontal asymptote of a rational function is using the degrees of the numerator (N) and denominators (D).

  • If N < D, then there is a HA at y = 0.
  • If N > D, then there is no HA.
  • If N = D, then the HA is y = ratio of the leading coefficients.

Example: Find the horizontal asymptote (if any) of the function f(x) = (x2 + 5x + 6) / (x2 + x - 2).

Solution:

Here the degree of the numerator is, N = 2, and the degree of the denominator is, D = 2.

Since N = D, the HA is y = (leading coefficient of numerator) / (leading coefficient of denominator) = 1/1 = 1.

Thus, the HA is y = 1.

Slant (Oblique) Asymptotes of a Rational Function

A slant asymptote is also an imaginary oblique line to which a part of the graph appears to touch. A rational function has a slant asymptote only when the degree of the numerator (N) is exactly one greater than the degree of the denominator (D). Its equation is y = quotient that is obtained by dividing the numerator by denominator using the long division.

Example: Find the slant asymptote of the function f(x) = x2/(x+1).

Solution:

Here the degree of numerator is 2 and that of denominator = 1. So it has a slant asymptote.

Let us divide x2 by (x + 1) by long division (or we can use synthetic division as well).

Rational Function - Graph, Domain, Range, Asymptotes (2)

Thus, the slant asymptote is y = x - 1.

Graphing Rational Functions

Here are the steps for graphing a rational function:

  1. Identify and draw the vertical asymptote using a dotted line.
  2. Identify and draw the horizontal asymptote using a dotted line.
  3. Plot the holes (if any)
  4. Find x-intercept (by using y = 0) and y-intercept (by x = 0) and plot them.
  5. Draw a table of two columns x and y and place the x-intercepts and vertical asymptotes in the table. Then take some random numbers in the x-column on either side of each of the x-intercepts and vertical asymptotes.
  6. Compute the corresponding y-values by substituting each of them in the function.
  7. Plot all points from the table and join them curves without touching the asymptotes.

Example: Graph the rational function f(x) = (x2 + 5x + 6) / (x2 + x - 2).

Solution:

We have already identified that its VA is x = 1, its HA is y = 1, and the hole is at (-2, -1/3). We use dotted lines for asymptotes so that we can take care that the graph doesn't touch those lines. Note that, the simplified form of the given function is, f(x) = (x + 3) / (x - 1). Now, we will find the intercepts.

  • For x-intercept, put y = 0. Then we get 0 = (x + 3) / (x - 1) ⇒ x + 3 = 0 ⇒ x = -3. So the x-intercept is at (-3, 0).
  • For y-intercept, put x = 0. Then we get y = (0 + 3) / (0 - 1) ⇒ y = -3. So the y-intercept is at (0, -3).

We have the VA at x = 1 and x-intercept is at x = -3. Let us construct a table now with these two values in the column of x and some random numbers on either side of each of these numbers -3 and 1.

xy
-5y = (-5 + 3) / (-5 - 1) = 0.33
-4y = (-4 + 3) / (-4 - 1) = 0.2
-30 (x-int)
-2y = (-2 + 3) / (-2 - 1) = -0.33
0-3 (y-int)
1VA
2y = (2 + 3) / (2 - 1) = 5
3y = (3 + 3) / (3 - 1) = 3

Let us plot all these points on the graph along with all asymptotes, hole, and intercepts.

Rational Function - Graph, Domain, Range, Asymptotes (3)

Inverse of a Rational Function

To find the inverse of a rational function y = f(x):

  • Replace f(x) with y.
  • Interchange x and y.
  • Solve the resultant equation for y.
  • The result would give the inverse f-1(x).

Example: Find the inverse of the rational function f(x) = (2x - 1) / (x + 3).

Solution:

The given function can be written as:

y = (2x - 1) / (x + 3)

Interchanging x and y:

x = (2y - 1) / (y + 3)

Now, we will solve for y.

x(y + 3) = 2y - 1

xy + 3x = 2y - 1

3x + 1 = 2y - xy

3x + 1 = y (2 - x)

y = (3x + 1) / (2 - x) = f-1(x)

Important Notes on Rational Function:

  • A rational function equation is of the form f(x) = P(x) / Q(x), where Q(x) ≠ 0.
  • Every rational function has at least one vertical asymptote.
  • Every rational function has at most one horizontal asymptote.
  • Every rational function has at most one slant asymptote.
  • The excluded values of the domain of a rational function help to identify the VAs.
  • The excluded values of the range of a rational function help to identify the HAs.
  • The linear factors that get canceled when a rational function is simplified would give us the holes.

Related Topics:

  • Graphing Functions
  • Simplifying Rational Expressions Calculator
  • Asymptote Calculator
  • Reciprocal Function

FAQs on Rational Functions

What is the Definition of a Rational Function?

A rational function is a function that looks like a fraction where both the numerator and denominator are polynomials. It looks like f(x) = p(x) / q(x), where both p(x) and q(x) are polynomials.

What is the End Behaviour of Rational Function?

The end behaviour of the parent rational function f(x) = 1/x is:

  • f(x) → 0 as x → ∞ or -∞ and this corresponds to the horizontal asymptote.
  • f(x) → ∞ as x → 0+ and f(x) → -∞ as x → 0- and these correspond to the vertical asymptote.

How Do You Know If a Function is Rational?

Whenever a function has polynomials in its numerator and denominator then it is a rational function. But remember:

  • The numerator of a rational function can be a constant. For example: 1 / x2 is a rational function.
  • The denominator of a rational function cannot be a constant. For example: x2 / 1 is NOT a rational function.

How to Graph a Rational Function?

To graph a rational function, first plot all the asymptotes by dotted lines. Plot the x and y-intercepts. Make a table with two columns labeled x and y. Put all x-intercepts and vertical asymptotes in the column of x. Take some random numbers on either side of each of these numbers and compute the corresponding y-values using the function. Plot all these points on the graph and join them by curves without touching the asymptotes.

How to Find the Domain and Range of a Rational Function?

To find the domain and range of a rational function:

  • First, simplify the function.
  • For domain, set denominator not equal to zero and solve for x.
  • For range, solve the simplified equation for x, set the denominator not equal to zero, and solve for y.

How to Find Holes in Rational Functions?

To find holes, first, factorize both numerator and denominator. If any linear factors are getting canceled, just set each of them to 0 and simplify. They will give the x-coordinates of the holes. We can use the function to find the corresponding y-coordinates of holes.

How to Find Asymptotes of Rational Functions?

To find the asymptotes of a rational function:

  • Simplify the function to its lowest form.
  • Set the denominator = 0 and solve to find the vertical asymptotes.
  • Solve the equation for x, set the denominator = 0, and solve to find horizontal asymptotes.

How to Find the Inverse of a Rational Function?

To find the inverse of a rational function y = f(x), just switch x and y first, then solve the resultant equation for y. It will give the inverse of f(x) which is represented as f-1(x).

What are the Applications of Rational Function?

Rational functions are used to model many real-life scenarios. In particular, they are used in the fields of business, science, and medicine.

Rational Function - Graph, Domain, Range, Asymptotes (2024)

FAQs

Rational Function - Graph, Domain, Range, Asymptotes? ›

For a rational function defined as y = f(x)1 / f(x)2, the domain consists of all possible values in x and the range consists of all possible values in y. Vertical asymptotes occur wherever the rational function would result in division by zero and defined points outside the domain.

How do you find the asymptotes of a rational function graph? ›

Step 1: Set your denominator equal to zero and solve. Step 2: Set your numerator equal to zero and solve. Step 3: Compare your values from step 2 and step 3. Any value that causes the denominator to be zero but DOES NOT cause the numerator to be zero is a vertical asymptote.

What is the domain and range of a rational function in interval notation? ›

Domain and Range. Each function has a domain and a range. The domain is the set of all x -values, while the range is the set of all y -values. The domain for the function f(x)=x−1x+4 f ( x ) = x − 1 x + 4 is all real numbers except x=−4 .

What type of asymptotes do rational functions have? ›

Rational functions can have 3 types of asymptotes: Horizontal Asymptotes. Vertical Asymptotes. Oblique Asymptote.

What is the asymptote form of a rational function? ›

To find the asymptotes of a rational function: Simplify the function to its lowest form. Set the denominator = 0 and solve to find the vertical asymptotes. Solve the equation for x, set the denominator = 0, and solve to find horizontal asymptotes.

What is the domain range and asymptote of a rational function? ›

For a rational function defined as y = f(x)1 / f(x)2, the domain consists of all possible values in x and the range consists of all possible values in y. Vertical asymptotes occur wherever the rational function would result in division by zero and defined points outside the domain.

What is the domain and range of a graph? ›

Domain is all the values of X on the graph. So, you need to look how far to the left and right the graph will go. There can be very large values for X to the right. Range is all the values of Y on the graph.

How to find domain and range? ›

Another way to identify the domain and range of functions is by using graphs. Because the domain refers to the set of possible input values, the domain of a graph consists of all the input values shown on the x-axis. The range is the set of possible output values, which are shown on the y-axis.

How to find the domain in a rational function? ›

To find the domain of a rational function:
  1. Take the denominator of the expression.
  2. Set that denominator equal to zero.
  3. Solve the resulting equation for the zeroes of the denominator.
  4. The domain is all other x-values.

How to find the range of a function? ›

In math, a function represents a defined relationship between an independent variable (x) and a dependent variable (y). The range of a function refers to all the possible values y could be. The formula to find the range of a function is y = f(x).

What is the domain and range for function notation? ›

The domain of a function is the set of values that we are allowed to plug into our function. This set is the x values in a function such as f(x). The range of a function is the set of values that the function assumes. This set is the values that the function shoots out after we plug an x value in.

What is the N and M in a rational function? ›

The location of the horizontal asymptote is determined by looking at the degrees of the numerator (n) and denominator (m). If n<m, the x-axis, y=0 is the horizontal asymptote. If n=m, then y=an / bm is the horizontal asymptote. That is, the ratio of the leading coefficients.

How to find HA and VA? ›

Vertical asymptotes (VA) are located at values of x that are undefined, i.e. values of x that make the denominator equal zero. To find horizontal asymptotes (HA), compare the degree of the numerator and denominator. If the degree of the numerator is less than the degree of the denominator, the HA is y=0 .

What is the first step in finding all vertical asymptotes of a rational function? ›

Finding the vertical asymptotes of a particular rational function entails: factorizing the denominator and numerator polynomials, dividing out common factors, equating the remaining denominator to zero, and solving for x.

How to find asymptotes of a reciprocal graph? ›

Graphing a Reciprocal Function

Comparing the function rule to the general form of a reciprocal function y = ax-h+k makes it possible to identify the asymptotes x = h and y = k. f(x) = a/x- 3 + 2 For f(x), the vertical asymptote is x = 3 and the horizontal asymptote is y = 2. These can be drawn in a coordinate plane.

How to find asymptotes of a log function? ›

To find the vertical asymptotes of logarithmic function f(x) = log (ax + b), set ax + b = 0 and solve for x. where, n is an integer. To find the vertical asymptote of any other function than these, just think what values of x would make the function to be ∞ or -∞.

References

Top Articles
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6656

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.