DoAssignment study guide

RF14 · Graph and analyze rational functions with numerator and denominator of degree at most two

Learn to graph and analyze rational functions with numerator and denominator of degree at most two through clear examples and targeted practice.

Alberta Grade 12 Mathematics

Relations and Functions

Domain, intercepts, asymptotes, and holes

A rational function is a fraction in which the numerator and denominator are polynomials. For example, f(x)=2x+1x−3f(x)=\frac{2x+1}{x-3} is rational. A denominator cannot equal zero, so x=3x=3 is not an allowed input. This restriction remains even if a factor later cancels during simplification. In this lesson, the numerator and denominator have degree at most two. You will use restrictions, intercepts, asymptotes, and holes to analyze their graphs.

What you will learn

  • State the domain of a rational function by identifying denominator zeros.
  • Find valid intercepts and identify vertical and horizontal asymptotes.
  • Recognize a hole caused by a shared factor and find its coordinates.
  • Use key features and sign checks to describe a rational-function graph.

1. Review: restrictions, factoring, and intercepts

A polynomial is an expression made from constants and whole-number powers of a variable. Its degree is its greatest exponent with a nonzero coefficient. For example, x2−4x^2-4 has degree two.
A rational function can be written as f(x)=N(x)D(x)f(x)=\frac{N(x)}{D(x)}, where N(x)N(x) is the numerator and D(x)D(x) is the denominator. The domain is the set of inputs for which the function is defined. Find restrictions by solving D(x)=0D(x)=0 in the original function. Those inputs are excluded.
Factoring rewrites a polynomial as a product. For example, x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2). Factoring makes it easier to identify denominator zeros and factors shared by numerator and denominator.
An xx-intercept is a point where the graph meets the xx-axis. Its function value is zero, so a numerator zero can give an intercept if that input is allowed. A yy-intercept is where the graph meets the yy-axis. Find it by evaluating the function at x=0x=0, if zero is in the domain.
f(x)=N(x)D(x)f(x)=\frac{N(x)}{D(x)}
  • Find excluded inputs from the original denominator.
  • Check that a proposed intercept is allowed by the domain.
  • The yy-intercept is found by evaluating at zero, not by setting the numerator to zero.

2. Asymptotes and holes

An asymptote is a line that a graph approaches. A vertical asymptote is often found at a denominator zero whose factor remains after simplifying. The function is undefined at that input.
A horizontal asymptote describes the graph’s height far to the left and far to the right. Compare the degrees of the numerator and denominator. If the numerator degree is smaller, the horizontal asymptote is y=0y=0. If the degrees are equal, divide the numerator’s leading coefficient by the denominator’s leading coefficient. That ratio is the horizontal asymptote’s height.
When the numerator degree is greater than the denominator degree, these rules do not give a horizontal asymptote. This lesson focuses on horizontal asymptotes when the numerator degree is no greater than the denominator degree.
A shared factor can cancel when simplifying. However, its zero remains excluded if it made the original denominator zero. If the simplified expression has a finite value at that input, the graph has a hole there instead of a vertical asymptote. Substitute the excluded input into the simplified expression to find the hole’s height.
For equal degrees, the horizontal asymptote is the ratio of the leading coefficients.
  • An uncancelled denominator zero gives a vertical asymptote.
  • A cancelled denominator factor can leave a hole, and its input is still excluded.
  • For equal degrees, the horizontal asymptote is the ratio of leading coefficients.

3. Organize features and sketch

Record the domain restrictions first. Factor the numerator and denominator when possible. If factors cancel, keep the original restrictions beside the simplified expression.
Find the valid intercepts, then identify vertical and horizontal asymptotes and any hole. These features give a framework for a sketch. A graph cannot include an excluded point, and a vertical asymptote is not part of the graph.
A sign check helps locate a branch above or below the xx-axis. Choose a test input in an interval between important xx-values and evaluate the function. A positive value places the graph above the axis at that input; a negative value places it below.
Sketch the branches using the features and sign checks. A graphing window displays only part of the full graph. Use the algebraic features to describe the graph beyond the window as well.
D_f=\{x∈R\mathbb{R}:D(x)\ne0\}
  • Keep restrictions from the original function after simplifying.
  • Use a test input to check the sign on an interval.
  • Label intercepts, asymptotes, holes, and excluded inputs clearly.

Worked example

A linear numerator and denominator

Analyze and sketch f(x)=2x+1x−3f(x)=\frac{2x+1}{x-3}. State the domain, intercepts, and asymptotes.
A rational function with two asymptotes
A rational function with two asymptotesThe graph shows only a window of the full domain. The vertical asymptote is at $x=3$.-4-202468-8-6-4-202468f(x)xy

The graph shows only a window of the full domain. The vertical asymptote is at $x=3$.

  1. Find the restriction
    The denominator is zero when x=3x=3. Since this factor does not cancel, x=3x=3 is excluded and gives a vertical asymptote.
    x−3=0  ⟹  x=3x-3=0\implies x=3
  2. Find the intercepts
    Set the numerator equal to zero for the xx-intercept. For the yy-intercept, evaluate at zero; zero is allowed.
    2x+1=0  ⟹  x=−12;f(0)=−132x+1=0\implies x=-\frac12;\quad f(0)=-\frac13
  3. Find the horizontal asymptote
    Both polynomials have degree one. Divide the leading coefficient of the numerator by that of the denominator to get the horizontal asymptote.
    y=21=2y=\frac21=2
Answer: The domain is x≠3x\ne3. The intercepts are (−12,0)(-\frac12,0) and (0,−13)(0,-\frac13). The vertical asymptote is x=3x=3, and the horizontal asymptote is y=2y=2.
Check: The graph approaches the line x=3x=3 near the excluded input and approaches height 22 far to either side.

Worked example

A cancelled factor and a hole

Analyze g(x)=x2−4x2−x−2g(x)=\frac{x^2-4}{x^2-x-2}. Find its domain, intercepts, asymptotes, and hole.
A rational function with a hole
A rational function with a holeThe graph shows only a window of the full domain. The cancelled input $x=2$ is a hole at height $\frac43$.-6-4-20246-4-2024g(x)xy

The graph shows only a window of the full domain. The cancelled input $x=2$ is a hole at height $\frac43$.

  1. Factor and record restrictions
    The original denominator is zero at x=2x=2 and x=−1x=-1. Both inputs are excluded, even though a factor will cancel.
    g(x)=(x−2)(x+2)(x−2)(x+1)g(x)=\frac{(x-2)(x+2)}{(x-2)(x+1)}
  2. Simplify and find the hole
    For allowed inputs, cancel the shared factor. The simplified expression gives the height at the excluded input x=2x=2, which locates the hole.
    x+2x+1;2+22+1=43\frac{x+2}{x+1};\quad \frac{2+2}{2+1}=\frac43
  3. Find intercepts and asymptotes
    The remaining numerator is zero at x=−2x=-2, which is allowed. Evaluating at zero gives the yy-intercept. The simplified numerator and denominator have equal degree and leading coefficient one.
    (−2,0);g(0)=2;y=1(-2,0);\quad g(0)=2;\quad y=1
Answer: The domain is x≠2,−1x\ne2,-1. The intercepts are (−2,0)(-2,0) and (0,2)(0,2). There is a vertical asymptote at x=−1x=-1, a horizontal asymptote at y=1y=1, and a hole at (2,43)(2,\frac43).
Check: The point at x=2x=2 is missing even though the simplified expression has value 43\frac43 there.

Worked example

A sign check between two vertical asymptotes

Analyze h(x)=x+1x2−4h(x)=\frac{x+1}{x^2-4}. State its domain, intercepts, and asymptotes. Use sign checks to describe the graph between its vertical asymptotes.
A rational function with two vertical asymptotes
A rational function with two vertical asymptotesThe graph shows only a window of the full domain. The vertical asymptotes are at $x=-2$ and $x=2$.-6-4-20246-4-2024h(x)xy

The graph shows only a window of the full domain. The vertical asymptotes are at $x=-2$ and $x=2$.

  1. Find the domain and vertical asymptotes
    Factor the denominator. Neither factor cancels with the numerator, so both zeros are excluded and give vertical asymptotes.
    x2−4=(x−2)(x+2);x≠−2,2x^2-4=(x-2)(x+2);\quad x\ne-2,2
  2. Find intercepts and the horizontal asymptote
    The numerator is zero at x=−1x=-1, giving an allowed xx-intercept. At zero, the function value is −14-\frac14. The numerator degree is less than the denominator degree, so the horizontal asymptote is the xx-axis.
    (−1,0);h(0)=−14;y=0(-1,0);\quad h(0)=-\frac14;\quad y=0
  3. Check the two parts of the middle interval
    Test x=−32x=-\frac32 in the interval (−2,−1)(-2,-1). Both the numerator and denominator are negative, so the function is positive. Test x=0x=0 in (−1,2)(-1,2); the function is negative. The graph crosses the axis at x=−1x=-1.
    h(−32)=−12−74=27;h(0)=−14h\left(-\frac32\right)=\frac{-\frac12}{-\frac74}=\frac27;\quad h(0)=-\frac14
Answer: The domain is x≠−2,2x\ne-2,2. The intercepts are (−1,0)(-1,0) and (0,−14)(0,-\frac14). The vertical asymptotes are x=−2x=-2 and x=2x=2, and the horizontal asymptote is y=0y=0. Between the asymptotes, the graph is above the xx-axis on (−2,−1)(-2,-1) and below it on (−1,2)(-1,2).
Check: The sign changes at the numerator zero x=−1x=-1. The function is undefined at both denominator zeros.

Common mistakes and how to avoid them

Cancelling a shared factor and then including its zero in the domain.
Correction: Keep every restriction found from the original denominator. A cancelled factor can leave a hole, not a restored input.
Calling every denominator zero a vertical asymptote.
Correction: Check whether the factor cancels. A cancelled factor can create a hole instead.
Using an excluded input as an xx-intercept.
Correction: Check the original domain before including an intercept.
Reversing the coefficient ratio for a horizontal asymptote when degrees are equal.
Correction: Divide the numerator’s leading coefficient by the denominator’s leading coefficient.

Lesson summary

  • Exclude every zero of the original denominator from the domain.
  • Factor to find valid numerator zeros, shared factors, and uncancelled denominator zeros.
  • Use valid numerator zeros for xx-intercepts and evaluate at zero for the yy-intercept.
  • An uncancelled denominator zero gives a vertical asymptote; a cancelled factor can leave a hole.
  • Compare degrees to find a horizontal asymptote when the numerator degree is no greater than the denominator degree.

Check your understanding

Question 1

For p(x)=x−4x2−9p(x)=\frac{x-4}{x^2-9}, which values are excluded from the domain?
  1. x=4x=4 only
  2. x=−3x=-3 and x=3x=3
  3. x=−3x=-3, x=3x=3, and x=4x=4
  4. No values
Show answer and explanation
x=−3x=-3 and x=3x=3
The denominator is zero at x=−3x=-3 and x=3x=3. The numerator zero at x=4x=4 gives an intercept, not a restriction.

Question 2

For q(x)=x2−1x2+xq(x)=\frac{x^2-1}{x^2+x}, what happens at x=−1x=-1?
  1. There is a vertical asymptote.
  2. There is a hole at (−1,2)(-1,2).
  3. The graph has an xx-intercept there.
  4. The function is defined there.
Show answer and explanation
There is a hole at (−1,2)(-1,2).
Factoring gives (x−1)(x+1)x(x+1)\frac{(x-1)(x+1)}{x(x+1)}. The factor cancels, but x=−1x=-1 remains excluded. The simplified expression has value 22 there, so the hole is at (−1,2)(-1,2).

Question 3

What is the horizontal asymptote of r(x)=3x2+12x2−xr(x)=\frac{3x^2+1}{2x^2-x}?
  1. y=0y=0
  2. y=23y=\frac23
  3. y=32y=\frac32
  4. There is no horizontal asymptote.
Show answer and explanation
y=32y=\frac32
The numerator and denominator have equal degree. Their leading coefficients are 33 and 22, so the horizontal asymptote is y=32y=\frac32.

Key terms

Rational function
A function written as one polynomial divided by another polynomial.
Domain
The set of input values for which a function is defined.
Intercept
A point where a graph meets an axis.
Asymptote
A line that a graph approaches.
Hole
A missing graph point caused by a cancelled factor, while the original denominator still excludes that input.

Continue through Math 30-1

View the complete Math 30-1 Alberta Grade 12 Mathematics curriculum and lessons

About this lesson and its review

Published by DoAssignment. This reviewed lesson follows Alberta Grade 12 Mathematics (Math 30-1), expectation RF14. It is a study resource, not an official curriculum publication.

Before publication, content is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question