Learn on PengiOpenStax Algebra and TrigonometryChapter 5: Polynomial and Rational Functions

Lesson 5.6 : Rational Functions

In this Grade 7 math lesson from OpenStax Algebra and Trigonometry (Chapter 5), students learn to work with rational functions — functions that have variables in the denominator — by finding domains, identifying vertical and horizontal asymptotes, and using arrow notation to describe end behavior. Students also practice graphing rational functions and apply these concepts to real-world problems such as calculating average cost functions. The lesson builds directly on prior work with polynomial functions and toolkit functions like the reciprocal function f(x) = 1/x.

Section 1

📘 Rational Functions

New Concept

Rational functions are fractions of polynomials, written as f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)}. In this lesson, you'll find their domains, identify asymptotes, and graph them to model real-world problems like calculating concentrations or average costs.

What’s next

Next up, you'll work through interactive examples to find domains and asymptotes. A series of practice cards will then help you master graphing rational functions.

Section 2

Arrow Notation

Property

To summarize, we use arrow notation to show that xx or f(x)f(x) is approaching a particular value.

SymbolMeaning
xax \to a^-xx approaches aa from the left (x<ax < a but close to aa)
xa+x \to a^+xx approaches aa from the right (x>ax > a but close to aa)
xx \to \inftyxx approaches infinity (xx increases without bound)
xx \to -\inftyxx approaches negative infinity (xx decreases without bound)
f(x)f(x) \to \inftythe output approaches infinity (the output increases without bound)
f(x)f(x) \to -\inftythe output approaches negative infinity (the output decreases without bound)
f(x)af(x) \to athe output approaches aa

Examples

  • For the function f(x)=1x3f(x) = \frac{1}{x-3}, as xx approaches 3 from the right, the function grows infinitely large. We write this as: As x3+x \to 3^+, f(x)f(x) \to \infty.

Section 3

Rational Functions and Domains

Property

A rational function is a function that can be written as the quotient of two polynomial functions P(x)P(x) and Q(x)Q(x).

f(x)=P(x)Q(x)=apxp+ap1xp1++a1x+a0bqxq+bq1xq1++b1x+b0,Q(x)0f(x) = \frac{P(x)}{Q(x)} = \frac{a_p x^p + a_{p-1} x^{p-1} + \ldots + a_1 x + a_0}{b_q x^q + b_{q-1} x^{q-1} + \ldots + b_1 x + b_0}, Q(x) \neq 0

Domain of a Rational Function
The domain of a rational function includes all real numbers except those that cause the denominator to equal zero.

To find the domain:

  1. Set the denominator equal to zero.
  2. Solve for the xx-values.
  3. The domain is all real numbers except the values found.

Examples

  • Find the domain of f(x)=x+5x216f(x) = \frac{x+5}{x^2-16}. We set the denominator to zero: x216=0x^2-16=0, which gives x=±4x = \pm 4. The domain is all real numbers except x=4x=4 and x=4x=-4.

Section 4

Vertical Asymptotes and Holes

Property

A vertical asymptote of a graph is a vertical line x=ax = a where the graph tends toward positive or negative infinity as the inputs approach aa. We write: As xax \to a, f(x)±f(x) \to \pm\infty.

A removable discontinuity (hole) occurs in the graph of a rational function at x=ax = a if aa is a zero for a factor in the denominator that is common with a factor in the numerator.

To find vertical asymptotes and holes:

  1. Factor the numerator and denominator.
  2. Zeros of common factors are locations of removable discontinuities (holes).
  3. Zeros of the remaining factors in the denominator are locations of vertical asymptotes.

Section 5

Horizontal and Slant Asymptotes

Property

A horizontal asymptote of a graph is a horizontal line y=by = b where the graph approaches the line as the inputs increase or decrease without bound. We write: As xx \to \infty or xx \to -\infty, f(x)bf(x) \to b.

The horizontal asymptote is determined by comparing the degree of the numerator (pp) and the degree of the denominator (qq):

  1. If p<qp < q: horizontal asymptote at y=0y = 0.
  2. If p=qp = q: horizontal asymptote at y=apbqy = \frac{a_p}{b_q} (the ratio of the leading coefficients).
  3. If p>qp > q by one: no horizontal asymptote; there is a slant asymptote, found by polynomial division.

Examples

  • For f(x)=8x+32x2+1f(x) = \frac{8x+3}{2x^2+1}, the degree of the numerator (1) is less than the denominator (2). The horizontal asymptote is y=0y=0.

Section 6

Intercepts of Rational Functions

Property

A rational function will have a yy-intercept at f(0)f(0), if the function is defined at zero. A rational function will not have a yy-intercept if the function is not defined at zero.

A rational function will have xx-intercepts at the inputs that cause the output to be zero. Since a fraction is only equal to zero when the numerator is zero, xx-intercepts can only occur when the numerator of the rational function is equal to zero.

Examples

  • Find the intercepts of f(x)=x4x+2f(x) = \frac{x-4}{x+2}. The yy-intercept is f(0)=040+2=2f(0) = \frac{0-4}{0+2} = -2, at (0,2)(0, -2). The xx-intercept is when x4=0x-4=0, so x=4x=4, at (4,0)(4, 0).

Section 7

Writing Rational Functions

Property

If a rational function has xx-intercepts at x=x1,x2,,xnx = x_1, x_2, \ldots, x_n, vertical asymptotes at x=v1,v2,,vmx = v_1, v_2, \ldots, v_m, and no xi=vjx_i = v_j for any i,ji, j, then the function can be written in the form:

f(x)=a(xx1)p1(xx2)p2(xxn)pn(xv1)q1(xv2)q2(xvm)qmf(x) = a \frac{(x - x_1)^{p_1}(x - x_2)^{p_2} \cdots (x - x_n)^{p_n}}{(x - v_1)^{q_1}(x - v_2)^{q_2} \cdots (x - v_m)^{q_m}}

where the powers pip_i or qiq_i on each factor can be determined by the behavior of the graph at the corresponding intercept or asymptote, and the stretch factor aa can be determined given a value of the function other than the xx-intercept or by the horizontal asymptote if it is nonzero.

Examples

  • Write a function with a vertical asymptote at x=3x=3, an xx-intercept at x=2x=-2, and a horizontal asymptote at y=0y=0. The simplest form is f(x)=a(x+2)x3f(x) = \frac{a(x+2)}{x-3}. Since HA is y=0y=0, this works. Let a=1a=1, so f(x)=x+2x3f(x) = \frac{x+2}{x-3}.
  • Write a function with vertical asymptotes at x=±1x=\pm 1, an xx-intercept at x=2x=2, and a horizontal asymptote at y=4y=4. The form is f(x)=ax2(x1)(x+1)f(x) = a\frac{x-2}{(x-1)(x+1)}. For HA y=4y=4, degrees must match. So, f(x)=ax24(x1)(x+1)f(x) = a\frac{x^2-4}{(x-1)(x+1)} is not right. Instead, f(x)=ax2x21f(x)=a\frac{x-2}{x^2-1} has HA at y=0y=0. Let's adjust: f(x)=a(x2)(x+k)(x1)(x+1)f(x) = a\frac{(x-2)(x+k)}{(x-1)(x+1)}. For the HA to be y=4y=4, the leading coefficients ratio must be 4. A simpler case is f(x)=a(x2)(x1)f(x) = a\frac{(x-2)}{(x-1)}. We need another VA. The form is f(x)=a(xx1)...(xv1)...f(x)=a \frac{(x-x_1)...}{(x-v_1)...}. For HA y=4y=4, degrees must be equal. f(x)=a(x2)(xc)(x1)(x+1)f(x) = a\frac{(x-2)(x-c)}{(x-1)(x+1)}. Let's use the given intercepts and asymptotes: f(x)=a(x2)(x1)(x+1)f(x)=a\frac{(x-2)}{(x-1)(x+1)} has HA at y=0y=0. Let's try again with the rule: To get HA at y=4y=4, degrees must match. f(x)=a(x2)(xc)(x1)(x+1)f(x) = a\frac{(x-2)(x-c)}{(x-1)(x+1)}. Let's assume one x-intercept. f(x)=a(x2)2(x1)(x+1)f(x) = a\frac{(x-2)^2}{(x-1)(x+1)} won't work. Let's try f(x)=ax2x1f(x) = a\frac{x-2}{x-1}. Let's follow the rules strictly. xx-intercepts at (2,0)(2,0) and xx-intercepts at (5,0)(5,0). Vertical asymptotes at x=4x=-4 and x=1x=-1. Horizontal asymptote at y=7y=7. The function is f(x)=a(x2)(x5)(x+4)(x+1)f(x)=a\frac{(x-2)(x-5)}{(x+4)(x+1)}. The ratio of leading coefficients is aa. So a=7a=7. Final function: f(x)=7(x2)(x5)(x+4)(x+1)f(x)=7\frac{(x-2)(x-5)}{(x+4)(x+1)}.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 5: Polynomial and Rational Functions

  1. Lesson 1

    Lesson 5.1: Quadratic Functions

  2. Lesson 2

    Lesson 5.2 : Power Functions and Polynomial Functions

  3. Lesson 3

    Lesson 5.3 : Graphs of Polynomial Functions

  4. Lesson 4

    Lesson 5.4 : Dividing Polynomials

  5. Lesson 5

    Lesson 5.5 : Zeros of Polynomial Functions

  6. Lesson 6Current

    Lesson 5.6 : Rational Functions

  7. Lesson 7

    Lesson 5.7 : Inverses and Radical Functions

  8. Lesson 8

    Lesson 5.8 : Modeling Using Variation

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Rational Functions

New Concept

Rational functions are fractions of polynomials, written as f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)}. In this lesson, you'll find their domains, identify asymptotes, and graph them to model real-world problems like calculating concentrations or average costs.

What’s next

Next up, you'll work through interactive examples to find domains and asymptotes. A series of practice cards will then help you master graphing rational functions.

Section 2

Arrow Notation

Property

To summarize, we use arrow notation to show that xx or f(x)f(x) is approaching a particular value.

SymbolMeaning
xax \to a^-xx approaches aa from the left (x<ax < a but close to aa)
xa+x \to a^+xx approaches aa from the right (x>ax > a but close to aa)
xx \to \inftyxx approaches infinity (xx increases without bound)
xx \to -\inftyxx approaches negative infinity (xx decreases without bound)
f(x)f(x) \to \inftythe output approaches infinity (the output increases without bound)
f(x)f(x) \to -\inftythe output approaches negative infinity (the output decreases without bound)
f(x)af(x) \to athe output approaches aa

Examples

  • For the function f(x)=1x3f(x) = \frac{1}{x-3}, as xx approaches 3 from the right, the function grows infinitely large. We write this as: As x3+x \to 3^+, f(x)f(x) \to \infty.

Section 3

Rational Functions and Domains

Property

A rational function is a function that can be written as the quotient of two polynomial functions P(x)P(x) and Q(x)Q(x).

f(x)=P(x)Q(x)=apxp+ap1xp1++a1x+a0bqxq+bq1xq1++b1x+b0,Q(x)0f(x) = \frac{P(x)}{Q(x)} = \frac{a_p x^p + a_{p-1} x^{p-1} + \ldots + a_1 x + a_0}{b_q x^q + b_{q-1} x^{q-1} + \ldots + b_1 x + b_0}, Q(x) \neq 0

Domain of a Rational Function
The domain of a rational function includes all real numbers except those that cause the denominator to equal zero.

To find the domain:

  1. Set the denominator equal to zero.
  2. Solve for the xx-values.
  3. The domain is all real numbers except the values found.

Examples

  • Find the domain of f(x)=x+5x216f(x) = \frac{x+5}{x^2-16}. We set the denominator to zero: x216=0x^2-16=0, which gives x=±4x = \pm 4. The domain is all real numbers except x=4x=4 and x=4x=-4.

Section 4

Vertical Asymptotes and Holes

Property

A vertical asymptote of a graph is a vertical line x=ax = a where the graph tends toward positive or negative infinity as the inputs approach aa. We write: As xax \to a, f(x)±f(x) \to \pm\infty.

A removable discontinuity (hole) occurs in the graph of a rational function at x=ax = a if aa is a zero for a factor in the denominator that is common with a factor in the numerator.

To find vertical asymptotes and holes:

  1. Factor the numerator and denominator.
  2. Zeros of common factors are locations of removable discontinuities (holes).
  3. Zeros of the remaining factors in the denominator are locations of vertical asymptotes.

Section 5

Horizontal and Slant Asymptotes

Property

A horizontal asymptote of a graph is a horizontal line y=by = b where the graph approaches the line as the inputs increase or decrease without bound. We write: As xx \to \infty or xx \to -\infty, f(x)bf(x) \to b.

The horizontal asymptote is determined by comparing the degree of the numerator (pp) and the degree of the denominator (qq):

  1. If p<qp < q: horizontal asymptote at y=0y = 0.
  2. If p=qp = q: horizontal asymptote at y=apbqy = \frac{a_p}{b_q} (the ratio of the leading coefficients).
  3. If p>qp > q by one: no horizontal asymptote; there is a slant asymptote, found by polynomial division.

Examples

  • For f(x)=8x+32x2+1f(x) = \frac{8x+3}{2x^2+1}, the degree of the numerator (1) is less than the denominator (2). The horizontal asymptote is y=0y=0.

Section 6

Intercepts of Rational Functions

Property

A rational function will have a yy-intercept at f(0)f(0), if the function is defined at zero. A rational function will not have a yy-intercept if the function is not defined at zero.

A rational function will have xx-intercepts at the inputs that cause the output to be zero. Since a fraction is only equal to zero when the numerator is zero, xx-intercepts can only occur when the numerator of the rational function is equal to zero.

Examples

  • Find the intercepts of f(x)=x4x+2f(x) = \frac{x-4}{x+2}. The yy-intercept is f(0)=040+2=2f(0) = \frac{0-4}{0+2} = -2, at (0,2)(0, -2). The xx-intercept is when x4=0x-4=0, so x=4x=4, at (4,0)(4, 0).

Section 7

Writing Rational Functions

Property

If a rational function has xx-intercepts at x=x1,x2,,xnx = x_1, x_2, \ldots, x_n, vertical asymptotes at x=v1,v2,,vmx = v_1, v_2, \ldots, v_m, and no xi=vjx_i = v_j for any i,ji, j, then the function can be written in the form:

f(x)=a(xx1)p1(xx2)p2(xxn)pn(xv1)q1(xv2)q2(xvm)qmf(x) = a \frac{(x - x_1)^{p_1}(x - x_2)^{p_2} \cdots (x - x_n)^{p_n}}{(x - v_1)^{q_1}(x - v_2)^{q_2} \cdots (x - v_m)^{q_m}}

where the powers pip_i or qiq_i on each factor can be determined by the behavior of the graph at the corresponding intercept or asymptote, and the stretch factor aa can be determined given a value of the function other than the xx-intercept or by the horizontal asymptote if it is nonzero.

Examples

  • Write a function with a vertical asymptote at x=3x=3, an xx-intercept at x=2x=-2, and a horizontal asymptote at y=0y=0. The simplest form is f(x)=a(x+2)x3f(x) = \frac{a(x+2)}{x-3}. Since HA is y=0y=0, this works. Let a=1a=1, so f(x)=x+2x3f(x) = \frac{x+2}{x-3}.
  • Write a function with vertical asymptotes at x=±1x=\pm 1, an xx-intercept at x=2x=2, and a horizontal asymptote at y=4y=4. The form is f(x)=ax2(x1)(x+1)f(x) = a\frac{x-2}{(x-1)(x+1)}. For HA y=4y=4, degrees must match. So, f(x)=ax24(x1)(x+1)f(x) = a\frac{x^2-4}{(x-1)(x+1)} is not right. Instead, f(x)=ax2x21f(x)=a\frac{x-2}{x^2-1} has HA at y=0y=0. Let's adjust: f(x)=a(x2)(x+k)(x1)(x+1)f(x) = a\frac{(x-2)(x+k)}{(x-1)(x+1)}. For the HA to be y=4y=4, the leading coefficients ratio must be 4. A simpler case is f(x)=a(x2)(x1)f(x) = a\frac{(x-2)}{(x-1)}. We need another VA. The form is f(x)=a(xx1)...(xv1)...f(x)=a \frac{(x-x_1)...}{(x-v_1)...}. For HA y=4y=4, degrees must be equal. f(x)=a(x2)(xc)(x1)(x+1)f(x) = a\frac{(x-2)(x-c)}{(x-1)(x+1)}. Let's use the given intercepts and asymptotes: f(x)=a(x2)(x1)(x+1)f(x)=a\frac{(x-2)}{(x-1)(x+1)} has HA at y=0y=0. Let's try again with the rule: To get HA at y=4y=4, degrees must match. f(x)=a(x2)(xc)(x1)(x+1)f(x) = a\frac{(x-2)(x-c)}{(x-1)(x+1)}. Let's assume one x-intercept. f(x)=a(x2)2(x1)(x+1)f(x) = a\frac{(x-2)^2}{(x-1)(x+1)} won't work. Let's try f(x)=ax2x1f(x) = a\frac{x-2}{x-1}. Let's follow the rules strictly. xx-intercepts at (2,0)(2,0) and xx-intercepts at (5,0)(5,0). Vertical asymptotes at x=4x=-4 and x=1x=-1. Horizontal asymptote at y=7y=7. The function is f(x)=a(x2)(x5)(x+4)(x+1)f(x)=a\frac{(x-2)(x-5)}{(x+4)(x+1)}. The ratio of leading coefficients is aa. So a=7a=7. Final function: f(x)=7(x2)(x5)(x+4)(x+1)f(x)=7\frac{(x-2)(x-5)}{(x+4)(x+1)}.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 5: Polynomial and Rational Functions

  1. Lesson 1

    Lesson 5.1: Quadratic Functions

  2. Lesson 2

    Lesson 5.2 : Power Functions and Polynomial Functions

  3. Lesson 3

    Lesson 5.3 : Graphs of Polynomial Functions

  4. Lesson 4

    Lesson 5.4 : Dividing Polynomials

  5. Lesson 5

    Lesson 5.5 : Zeros of Polynomial Functions

  6. Lesson 6Current

    Lesson 5.6 : Rational Functions

  7. Lesson 7

    Lesson 5.7 : Inverses and Radical Functions

  8. Lesson 8

    Lesson 5.8 : Modeling Using Variation