Skip to content
🎯⭐ INTERACTIVE LESSON

Rational Functions and Their Graphs

Learn step-by-step with interactive practice!

Rational Functions and Their Graphs - Complete Interactive Lesson

Part 1: What Is a Rational Function? (definition, domain, the 1/x parent graph)

〽️ Rational Functions and Their Graphs

Part 1 of 5 — What Is a Rational Function?


Topics in This Part

Section
Definition & the Parent Function
Domain: Where the Function "Breaks"
Reading the Graph of 1x\frac{1}{x}

🔑 Key Concept: A rational function is a fraction of two polynomials, f(x)=P(x)Q(x)f(x) = \dfrac{P(x)}{Q(x)}. Everything interesting about its graph — the gaps, the invisible walls, the leveling-off — comes from one question: where does the denominator misbehave?

Definition & the Parent Function

A rational function has the form

f(x)=P(x)Q(x),Q(x)≠0f(x) = \frac{P(x)}{Q(x)}, \qquad Q(x) \ne 0

where PP and QQ are polynomials. The simplest one is the parent function:

f(x)=1xf(x) = \frac{1}{x}

Its graph is a hyperbola sitting in two opposite corners of the plane.

xx−2-2−1-1−12-\tfrac{1}{2}12\tfrac{1}{2}1122
1x\frac{1}{x}−0.5-0.5−1-1−2-222110.50.5

Notice two things:

  • As xx gets close to 00, 1x\frac{1}{x} blows up toward ±∞\pm\infty.
  • As xx gets large, 1x\frac{1}{x} shrinks toward 00.

🔑 Key Idea: Division by zero is undefined, so x=0x = 0 is not allowed. That single forbidden value creates the most important feature of the graph.

Concept Check 🎯

Domain: Where the Function "Breaks"

The domain of a rational function is all real numbers except where the denominator equals zero. To find the excluded values:

  1. Set the denominator equal to 00.
  2. Solve. Those solutions are the forbidden xx-values.

Example: f(x)=x+5x−3f(x) = \dfrac{x+5}{x-3}

Set x−3=0⇒x=3x - 3 = 0 \Rightarrow x = 3. So the domain is all reals except x=3x = 3.

Example: g(x)=xx2−4g(x) = \dfrac{x}{x^2 - 4}

Factor the denominator: x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2). Set each factor to 00:

x−2=0⇒x=2,x+2=0⇒x=−2x - 2 = 0 \Rightarrow x = 2, \qquad x + 2 = 0 \Rightarrow x = -2

Domain: all reals except x=2x = 2 and x=−2x = -2.

💡 The numerator never restricts the domain — only the denominator can make a rational function undefined.

Find the Excluded Values 🧮

For each function, enter the xx-value(s) that are not in the domain. If there are two, enter the smaller one first.

1) f(x)=x−1x+6f(x) = \dfrac{x-1}{x+6}. Excluded x= ?x = \,? 2) g(x)=4x2−9g(x) = \dfrac{4}{x^2 - 9}. Smaller excluded x= ?x = \,? 3) g(x)=4x2−9g(x) = \dfrac{4}{x^2 - 9}. Larger excluded x= ?x = \,?

Reading the Graph of 1x\frac{1}{x}

The parent graph lives in the top-right and bottom-left corners. Two invisible lines guide it:

  • The vertical line x=0x = 0 (the yy-axis): the curve shoots up on the right and down on the left, never touching it.
  • The horizontal line y=0y = 0 (the xx-axis): far out, both branches flatten toward it.

These guide lines are called asymptotes — lines a graph approaches but never reaches. Almost every rational graph you'll meet is built from this same idea.

💡 As x→0x \to 0, 1x→±∞\frac{1}{x} \to \pm\infty (vertical asymptote). As x→±∞x \to \pm\infty, 1x→0\frac{1}{x} \to 0 (horizontal asymptote).

Read the Parent Graph 🔽

Use the behavior of f(x)=1xf(x) = \dfrac{1}{x} to fill in each blank.

What the Domain Tells Us

Every excluded xx-value is a place where the graph has something missing — either an invisible vertical wall the curve can't cross (a vertical asymptote) or a single missing point (a hole). Part 2 shows you how to tell which is which.

🔑 Takeaway: Finding the domain is always step one. Set the denominator to zero, solve, and you've located every "break" in the graph.

Part 2: Vertical Asymptotes & Holes (factor, cancel, classify)

〽️ Rational Functions and Their Graphs

Part 2 of 5 — Vertical Asymptotes & Holes


🔑 The Idea: Both vertical asymptotes and holes come from zeros of the denominator. The difference: a hole appears where a factor cancels with the numerator; a vertical asymptote appears where it does not.

Vertical Asymptotes

A vertical asymptote is a vertical line x=ax = a that the graph approaches but never touches. After fully simplifying the fraction, you get one wherever the denominator is zero.

Example: f(x)=1x−4f(x) = \dfrac{1}{x - 4}

The denominator is zero at x=4x = 4, and nothing cancels, so there is a vertical asymptote at x=4x = 4.

As x→4x \to 4 from either side, the denominator shrinks toward 00, so ∣f(x)∣→∞|f(x)| \to \infty. The curve races up or down along the line x=4x = 4.

xx3.93.93.993.994.014.014.14.1
1x−4\frac{1}{x-4}−10-10−100-1001001001010

⚠️ The graph gets arbitrarily close to x=4x = 4 but never crosses it — a function can never output a value at a point where it's undefined.

Holes (Removable Discontinuities)

When a factor cancels from both the numerator and denominator, the graph has a hole — a single missing point — instead of an asymptote.

Example: f(x)=x2−9x−3f(x) = \dfrac{x^2 - 9}{x - 3}

Factor and cancel:

f(x)=(x−3)(x+3)x−3=x+3,x≠3f(x) = \frac{(x-3)(x+3)}{x-3} = x + 3, \quad x \ne 3

The simplified function is the line y=x+3y = x + 3, but x=3x = 3 is still excluded from the original domain. So the graph is that line with a single hole at x=3x = 3.

Find the hole's yy-coordinate by plugging x=3x = 3 into the simplified form: y=3+3=6y = 3 + 3 = 6. The hole is at (3,6)(3, 6).

🔑 Cancels → hole. Doesn't cancel → vertical asymptote. Always factor first to find out which.

Concept Check 🎯

Asymptote or Hole? 🔽

Factor each function and decide what happens at the given xx-value.

Pinpointing a Hole's Coordinates

When a factor cancels, finding the exact missing point takes two quick steps:

  1. The xx-coordinate is the value that made the canceled factor zero.
  2. The yy-coordinate comes from plugging that xx into the simplified function.

Example: f(x)=x2+x−6x−2f(x) = \dfrac{x^2 + x - 6}{x - 2}

Factor: (x−2)(x+3)x−2=x+3\dfrac{(x-2)(x+3)}{x-2} = x + 3, with x≠2x \ne 2.

  • Hole's xx: the canceled factor x−2=0⇒x=2x - 2 = 0 \Rightarrow x = 2.
  • Hole's yy: plug into x+3x + 3:   2+3=5\;2 + 3 = 5.

So the hole is at (2,5)(2, 5).

💡 Never plug into the original fraction to find the yy-value — it's undefined there. Always use the simplified form.

Locate the Hole 🧮

f(x)=x2−4x−2f(x) = \dfrac{x^2 - 4}{x - 2}

1) This simplifies to y=x+2y = x + 2 for x≠2x \ne 2. The hole is at x= ?x = \,? 2) The hole's yy-coordinate (plug x=2x=2 into x+2x+2) = ?= \,?

Part 3: Horizontal & Slant Asymptotes (degree rules, polynomial division)

〽️ Rational Functions and Their Graphs

Part 3 of 5 — Horizontal & Slant Asymptotes


🔑 The Idea: Vertical asymptotes describe what happens near a forbidden xx. Horizontal and slant asymptotes describe the end behavior — where the graph heads as x→±∞x \to \pm\infty. The answer depends only on the degrees of the top and bottom.

The Degree Rules

Compare the degree of the numerator (nn) to the degree of the denominator (dd):

CaseEnd behavior
n<dn < d (bottom-heavy)Horizontal asymptote y=0y = 0
n=dn = d (equal degrees)Horizontal asymptote y=lead coeff of toplead coeff of bottomy = \dfrac{\text{lead coeff of top}}{\text{lead coeff of bottom}}
n=d+1n = d + 1 (top one higher)Slant (oblique) asymptote — do polynomial division
n>d+1n > d + 1No horizontal or slant asymptote

Examples

  • 3x+1x2−5\dfrac{3x+1}{x^2 - 5}: degree 1<21 < 2, so y=0y = 0.
  • 2x2+15x2−x\dfrac{2x^2 + 1}{5x^2 - x}: degrees equal, so y=25y = \dfrac{2}{5}.
  • x2+1x−1\dfrac{x^2 + 1}{x - 1}: top degree is one higher → slant asymptote.

💡 A graph can cross a horizontal asymptote in the middle, but it always levels off toward it at the far ends.

Concept Check 🎯

Slant (Oblique) Asymptotes

When the numerator's degree is exactly one more than the denominator's, the graph follows a slanted line at the ends. Find it by polynomial long division — the quotient (ignoring the remainder) is the slant asymptote.

Example: f(x)=x2+3x+2x−1f(x) = \dfrac{x^2 + 3x + 2}{x - 1}

Divide x2+3x+2x^2 + 3x + 2 by x−1x - 1:

x2+3x+2=(x−1)(x+4)+6x^2 + 3x + 2 = (x - 1)(x + 4) + 6

So f(x)=x+4+6x−1f(x) = x + 4 + \dfrac{6}{x - 1}. As x→±∞x \to \pm\infty, the remainder term 6x−1→0\frac{6}{x-1} \to 0, and the graph hugs the line

y=x+4(the slant asymptote).y = x + 4 \quad (\text{the slant asymptote}).

⚠️ A graph cannot have both a horizontal and a slant asymptote — it's one or the other (or neither).

Pick the End Behavior 🔽

For each function, choose the correct horizontal/slant asymptote.

Find the Horizontal Asymptote 🧮

Enter the yy-value of the horizontal asymptote. (Decimals or fractions are fine.)

1) f(x)=7x−2x+5f(x) = \dfrac{7x - 2}{x + 5}. y= ?y = \,? 2) f(x)=3x2+x6x2−4f(x) = \dfrac{3x^2 + x}{6x^2 - 4}. y= ?y = \,? (fraction or decimal) 3) f(x)=8x2+1f(x) = \dfrac{8}{x^2 + 1}. y= ?y = \,?

Part 4: Intercepts & Sketching the Whole Graph (full recipe)

〽️ Rational Functions and Their Graphs

Part 4 of 5 — Intercepts & Sketching the Whole Graph


🔑 Big Payoff: With domain, asymptotes, and intercepts in hand, you can sketch any rational graph. This part adds the last two pieces — the xx- and yy-intercepts — and assembles a full step-by-step recipe.

Finding Intercepts

xx-intercepts (where the graph crosses the xx-axis): a fraction equals zero only when its numerator equals zero (and the denominator is nonzero there). So set P(x)=0P(x) = 0 and solve.

yy-intercept (where it crosses the yy-axis): plug in x=0x = 0, i.e. compute f(0)f(0) — provided 00 is in the domain.

Example: f(x)=x−2x+4f(x) = \dfrac{x - 2}{x + 4}

  • xx-intercept: numerator x−2=0⇒x=2x - 2 = 0 \Rightarrow x = 2. Point (2,0)(2, 0).
  • yy-intercept: f(0)=0−20+4=−24=−12f(0) = \dfrac{0 - 2}{0 + 4} = \dfrac{-2}{4} = -\dfrac{1}{2}. Point (0,−12)\left(0, -\tfrac{1}{2}\right).

🔑 Numerator zero → xx-intercept. Plug in 00 → yy-intercept. Don't mix them up: the denominator's zeros give asymptotes/holes, not intercepts.

Concept Check 🎯

The Full Sketching Recipe

To graph any rational function f(x)=P(x)Q(x)f(x) = \dfrac{P(x)}{Q(x)}:

  1. Factor both PP and QQ, and cancel common factors (those give holes).
  2. Vertical asymptotes: zeros of the remaining denominator.
  3. Horizontal/slant asymptote: compare degrees (Part 3 rules).
  4. xx-intercepts: zeros of the numerator.
  5. yy-intercept: compute f(0)f(0).
  6. Plot asymptotes (dashed), intercepts, and a test point in each region; connect smoothly.

Worked Example: f(x)=x−1x−3f(x) = \dfrac{x - 1}{x - 3}

FeatureResult
Vertical asymptotex=3x = 3
Horizontal asymptotey=1y = 1 (equal degrees, 11\frac{1}{1})
xx-intercept(1,0)(1, 0)
yy-interceptf(0)=−1−3=13f(0) = \frac{-1}{-3} = \frac{1}{3} → (0,13)\left(0, \tfrac{1}{3}\right)

💡 Asymptotes are dashed guide lines, not part of the curve. They tell the two branches where to go.

Build the Graph 🔽

Analyze f(x)=x+2x−4f(x) = \dfrac{x + 2}{x - 4} feature by feature.

Intercept Practice 🧮

Use f(x)=3x−12x+2f(x) = \dfrac{3x - 12}{x + 2}.

1) xx-intercept: solve 3x−12=03x - 12 = 0, so x= ?x = \,? 2) yy-intercept value f(0)= ?f(0) = \,? (fraction or decimal) 3) Vertical asymptote: x= ?x = \,?

Part 5: Mixed Practice & Mastery Check (Exit Quiz)

〽️ Rational Functions and Their Graphs

Part 5 of 5 — Mixed Practice & Mastery Check


You can now (1) find the domain, (2) locate vertical asymptotes and holes, (3) determine horizontal/slant asymptotes from degrees, and (4) find intercepts and sketch the full graph. Let's put it all together.

Quick Reference

FeatureHow to find it
Domaindenominator ≠0\ne 0
Holefactor cancels top & bottom
Vertical asymptotezero of the remaining denominator
Horizontal asymptoten<d⇒y=0n<d \Rightarrow y=0;   n=d⇒y=leadlead\;n=d \Rightarrow y=\frac{\text{lead}}{\text{lead}}
Slant asymptoten=d+1⇒n = d+1 \Rightarrow divide, take the quotient
xx-interceptnumerator =0= 0
yy-interceptcompute f(0)f(0)

⚠️ Top-three traps: (1) forgetting to cancel first and mislabeling a hole as an asymptote, (2) using leading coefficients only when degrees are equal, and (3) confusing which zero (top vs. bottom) gives intercepts vs. asymptotes.

Mixed Practice 🎯

One Big Analysis 🧮

Analyze f(x)=(x−5)(x+1)(x+1)(x−2)f(x) = \dfrac{(x - 5)(x + 1)}{(x + 1)(x - 2)} completely.

1) A factor cancels, creating a hole at x= ?x = \,? 2) After canceling, the vertical asymptote is at x= ?x = \,? 3) The xx-intercept comes from the surviving numerator factor: x= ?x = \,?

Exit Quiz ✅

Answer all three to finish the lesson.