Understanding Rational Functions

Read a rational function’s graph from its formula by factoring, identifying zeros and asymptotes, and checking for canceled factors. For the translated reciprocal family, the parameters h and k determine both asymptotes, the domain, and the range. Degree comparisons describe horizontal end behavior, while test points locate branches and cancellation reveals holes.

Course cover for Understanding Rational Functions

The Curve With Invisible Fences

A $60 pizza bill is split equally among x friends. Each person’s cost is C(x) = 60/x. Increasing the number of friends decreases the amount each person pays

Number of friends, xCost per person, C(x)
1$60
4$15
12$5

Can your share ever hit $0? No: for a positive number of friends, 60/x is positive and cannot equal zero. The points (1, 60), (4, 15), and (12, 5) lie on a decreasing curve that approaches the x-axis while remaining above it. The line y = 0 acts as an “invisible fence” for this curve

The Curve With Invisible Fences: 0 2 4 6 8 10 12 10 20 30 40 50 60 friends dollars per person (1, 60) (4, 15) (12, 5) gets close, never touches invisible fence: y = 0

A rational function is built as one polynomial divided by another. The cost function C(x) = 60/x is the first example in this lesson. Its formula explains why the graph gets close to zero without reaching it

The Parent Function

The parent reciprocal function is f(x) = 1/x. Substituting x = 1 gives f(1) = 1, so (1, 1) lies on its graph. Positive inputs produce positive outputs, forming a branch in quadrant I. As x increases along this branch, the outputs shrink toward zero

Substituting x = -1 gives f(-1) = -1, so (-1, -1) lies on the other branch, in quadrant III. Division by zero is undefined, so the graph has no point at x = 0. Its two branches remain separate

Property of f(x) = 1/xValue and meaning
Vertical asymptotex = 0; the branches become steep near this vertical line.
Horizontal asymptotey = 0; the branches flatten toward this horizontal line far from the origin.
Domain{x | x ≠ 0}; every real input except zero.
Range{y | y ≠ 0}; every real output except zero.
The Parent Function: -6 -6 -4 -4 -2 -2 2 2 4 4 6 6 0 V.A.: x = 0 H.A.: y = 0 (-1, -1) (1, 1)

For this parent function, neither branch touches either asymptote. The denominator prevents x = 0, and the nonzero numerator prevents 1/x = 0. The restriction on inputs gives the domain; the restriction on outputs gives the range

As x grows very large, the branches flatten toward one line. Tap that line

A

x-axis

B

y-axis

C

curve

D

(1, 1)

Sliding the Hyperbola

For g(x) = 1/(x - h), does h = 3 move the parent graph right or left? It moves the graph 3 units right. The denominator is zero at x = h, so changing h moves the break line to x = h. Positive h moves it right; negative h moves it left

Sliding the Hyperbola: −6 −6 −4 −4 −2 −2 2 2 4 4 6 6 0 x y V.A.: x = 0
Location of changeShift ruleExample and asymptotes
Inside, next to xHorizontal shift, opposite the visible sign when read in x - h form.x + 6 = x - (-6), so 1/(x + 6) shifts 6 units left; the vertical asymptote is x = -6.
Outside the fractionVertical shift, in the same direction as the sign.1/x - 2 shifts 2 units down; the horizontal asymptote is y = -2 and the vertical asymptote stays x = 0.
Sliding the Hyperbola: −6 −6 −4 −4 −2 −2 2 2 4 4 6 6 0 x y H.A.: y = -2 V.A.: x = 0 (unchanged)
Sliding the Hyperbola: -2 2 4 6 8 -4 -2 2 4 0 y = 1/x V.A.: x = 4 H.A.: y = 0 g(x) (5, 1) (3, -1)

Worked example: graph g(x) = 1/(x - 4)

Find both asymptotes and one point on each branch. The denominator x - 4 matches x - h with h = 4, so the parent graph shifts 4 units right. Checking x - 4 = 0 gives the vertical asymptote x = 4. Nothing is added outside the fraction, so the horizontal asymptote remains y = 0

To obtain an output of 1, the denominator must be 1: x - 4 = 1 gives x = 5, and g(5) = 1. Thus (5, 1) is on the right branch. On the other side, g(3) = 1/(3 - 4) = -1, so (3, -1) is on the left branch. Both asymptotes and one point per branch confirm the translated graph

Compared with the parent y=$$\frac{1}{x}$$, how does the graph of h(x)=$$\frac{1}{x+7}$$ move?

A

7 units right

B

7 units left

C

7 units up

D

7 units down

Asymptotes, Domain, and Range

The translated reciprocal hyperbolas in this lesson fit f(x) = a/(x - h) + k. The parameter h locates the vertical asymptote and the excluded input. The parameter k locates the horizontal asymptote and the excluded output. The factor a stretches the branches without moving either asymptote

ParameterAsymptoteSet restriction
hVertical asymptote: x = hDomain: {x | x ≠ h}
kHorizontal asymptote: y = kRange: {y | y ≠ k}

Worked example: f(x) = 2/(x + 1) - 3

Find the vertical asymptote, horizontal asymptote, domain, and range. Rewrite x + 1 as x - (-1), so h = -1. The vertical asymptote is therefore x = -1, not x = 1. The outside number is k = -3, giving the horizontal asymptote y = -3. The numerator 2 changes the branches’ shape but does not move these lines

Asymptotes, Domain, and Range: x y 0 x = -1 y = -3

The domain is {x | x ≠ -1}, and the range is {y | y ≠ -3}. Relative to the intersection of the asymptotes, one branch lies to the right of x = -1 and above y = -3; the other lies to the left and below

Practice: complete both asymptotes for f(x) = 4/(x - 6) + 2, using the values 6, -6, 2, -2, and 4. Since x - 6 is already in x - h form, h = 6; the outside number gives k = 2. The answers are vertical asymptote x = 6 and horizontal asymptote y = 2. The numerator 4 controls neither asymptote

Zeros vs Vertical Asymptotes

For a rational function f(x) = p(x)/q(x), first factor the numerator and denominator and check for common factors. When p and q have no shared factors, their zeros have different roles: numerator zeros give zeros of the function, while denominator zeros give vertical asymptotes

Condition after checking common factorsGraph featureReason
p(x) = 0 and q(x) ≠ 0A zero of f, giving an x-interceptThe fraction equals zero because its numerator is zero.
q(x) = 0 with no shared factorA vertical asymptoteNearby outputs grow toward positive or negative infinity.

Worked example: f(x) = (x² + 3x - 4)/(x - 2)

Find all zeros and vertical asymptotes. To factor the numerator, find two numbers whose product is -4 and whose sum is 3: 4 and -1. Therefore x² + 3x - 4 = (x + 4)(x - 1), and f(x) = (x + 4)(x - 1)/(x - 2). The denominator is already factored, and no factor cancels

The denominator equation x - 2 = 0 gives the vertical asymptote x = 2. The numerator equations x + 4 = 0 and x - 1 = 0 give zeros x = -4 and x = 1. Neither value makes the denominator zero, so the x-intercepts are (-4, 0) and (1, 0). Each feature comes from its corresponding factor

Practice: for f(x) = (x - 3)(x + 2)/(x - 1), classify x = 3, x = -2, and x = 1 as zeros or vertical asymptotes. There are no shared factors. The values x = 3 and x = -2 make numerator factors zero, so they are zeros of f, giving x-intercepts (3, 0) and (-2, 0). The value x = 1 makes the denominator zero, so x = 1 is a vertical asymptote

Horizontal Asymptotes: Three Cases

To find a horizontal asymptote of p(x)/q(x), compare the degrees of the numerator and denominator. This compares their growth far from the origin. When the degrees tie, only the leading terms determine the horizontal level approached

Degree comparisonHorizontal asymptoteExplanation
Degree of p < degree of qy = 0The denominator outgrows the numerator, so the fraction approaches zero.
Degree of p > degree of qNo horizontal asymptoteThe numerator outgrows the denominator; the outputs do not approach a fixed horizontal level.
Degree of p = degree of qy = (leading coefficient of p)/(leading coefficient of q)The leading terms have matching powers, leaving their coefficient ratio.

Worked examples: classify three functions

For (x + 5)/(x² - 4), the numerator has degree 1 and the denominator has degree 2. Since 1 < 2, the horizontal asymptote is y = 0

For 2x³/(x² + 1), the degrees are 3 and 2. Since 3 > 2, there is no horizontal asymptote

For (8x² + 1)/(2x² - 5), both degrees are 2. Divide the leading coefficients: 8/2 = 4. The horizontal asymptote is y = 4

Review the three conclusions: a smaller top degree gives y = 0; equal degrees give the leading-coefficient ratio; a larger top degree gives no horizontal asymptote. Can a graph cross its horizontal asymptote? Yes, at ordinary x-values; crossing is not ruled out by end behavior

Practice: classify (2x + 1)/x³, (x³ - 1)/(x² + 4), and (5x² + 2)/(x² - 1) by horizontal asymptote. For (2x + 1)/x³, degree 1 < 3 gives y = 0. For (x³ - 1)/(x² + 4), degree 3 > 2 gives no horizontal asymptote. For (5x² + 2)/(x² - 1), the equal degrees require the leading-coefficient ratio, giving y = 5/1 = 5

The Full Graphing Workflow

Worked example: graph f(x) = (2x² - 8)/(x² - 1)

First factor both polynomials. The numerator is 2(x² - 4) = 2(x + 2)(x - 2). The denominator is x² - 1 = (x + 1)(x - 1). Thus f(x) = 2(x + 2)(x - 2)/

$$(x + 1)(x - 1)$$

. No common factor cancels

The denominator zeros give vertical asymptotes x = -1 and x = 1. Both polynomials have degree 2, so the horizontal asymptote is y = 2/1 = 2. The numerator zeros are x = -2 and x = 2, giving x-intercepts (-2, 0) and (2, 0). These features form the graph’s skeleton

Mark dashed vertical lines at x = -1 and x = 1, a dashed horizontal line at y = 2, and the two intercepts. The vertical lines divide the graph into left, middle, and right regions. Branches cannot cross the vertical asymptotes; the outer branches must flatten toward y = 2 far out

The Full Graphing Workflow: -6 -4 -2 2 4 6 -6 -4 -2 2 4 6 8 10 0 V.A. V.A. H.A.: y = 2 (-2, 0) (2, 0)

Test points on every side

Asymptotes alone do not locate the branches. Evaluate points in every region and on the outer sides near each vertical asymptote

Input xSubstitution into (2x² - 8)/(x² - 1)Point
-3(18 - 8)/(9 - 1) = 10/8 = 1.25(-3, 1.25)
0-8/(-1) = 8(0, 8)
1.5[2(2.25) - 8]/(2.25 - 1) = -3.5/1.25 = -2.8(1.5, -2.8)
3(18 - 8)/(9 - 1) = 10/8 = 1.25(3, 1.25)
-1.5[2(2.25) - 8]/(2.25 - 1) = -3.5/1.25 = -2.8(-1.5, -2.8)

Connect the branches within their regions

Between x = -1 and x = 1, the middle branch rises toward positive infinity near both vertical asymptotes and has its lowest point at (0, 8). It forms a floating valley entirely above y = 2

To the right of x = 1, the branch has outputs tending toward negative infinity near the vertical asymptote. As x increases, it passes through (1.5, -2.8), crosses the x-axis at (2, 0), passes through (3, 1.25), and flattens toward y = 2 from below

The left branch mirrors the right branch across the y-axis. It passes through (-1.5, -2.8), (-2, 0), and (-3, 1.25), and approaches y = 2 from below toward the far left. In the finished graph, neither vertical asymptote is touched or crossed, and both outer branches level off toward the horizontal asymptote

The Full Graphing Workflow: left middle right -6 -4 -2 2 4 6 -6 -4 -2 2 4 6 8 10 0 V.A. V.A. H.A.: y = 2 (-2, 0) (2, 0)
The Full Graphing Workflow: -6 -4 -2 2 4 6 -6 -4 -2 2 4 6 8 10 0 V.A. V.A. H.A.: y = 2 (-2, 0) (2, 0)

Practice: put the graphing moves in order. The correct order is: first, factor the numerator and denominator; second, draw the dashed asymptotes and plot the zeros; third, plot test points on each side of every vertical asymptote and draw smooth branches. Each move depends on the previous one: factors reveal features, and features plus test points locate the branches

When a Factor Cancels: Holes

A denominator zero is not automatically a vertical asymptote. If the same factor appears in the numerator and denominator, it can cancel for inputs where that factor is nonzero. The graph follows the simplified rule at those inputs, but the original fraction remains undefined at the excluded input

When a Factor Cancels: Holes: hole

When a denominator factor x - b cancels completely and the simplified rule is defined at b, the graph has one missing point: a hole. The original fraction gives 0/0 at x = b, so that input remains excluded. The hole is marked by an open circle at the height given by the simplified rule

Outcome for a denominator zeroGraph featureDomain
The denominator zero remains after checking cancellation.Vertical asymptoteThe input is excluded.
The denominator factor cancels completely, leaving a simplified rule defined there.Hole at the corresponding point on the simplified graphThe input is still excluded.

Worked example: a line with a hole

For f(x) = (x² - 16)/(x - 4), decide whether x = 4 gives a vertical asymptote or a hole, then describe the graph. Factor the difference of squares: x² - 16 = (x + 4)(x - 4). Thus f(x) = (x + 4)(x - 4)/(x - 4). The shared factor cancels, giving f(x) = x + 4 for x ≠ 4

The graph is the line y = x + 4 with one point removed, not a graph with a vertical asymptote at x = 4. Evaluate the simplified rule there: 4 + 4 = 8. The hole is (4, 8), shown by an open circle on the line, not on the x-axis. The domain is {x | x ≠ 4}

When a Factor Cancels: Holes: -2 2 4 6 8 -2 2 4 6 8 10 12 0 x y y = x + 4 hole (4, 8)

f(x)=$$\frac{x^2-1}{x+1}$$. What happens to the graph at x = -1?

A

A hole at (-1, -2)

B

A vertical asymptote at x = -1

C

A hole at (-1, 0)

D

Nothing - the domain includes x = -1

Summary

1. For the reciprocal hyperbola family f(x) = a/(x - h) + k, the vertical asymptote is x = h and the horizontal asymptote is y = k. The domain excludes h, and the range excludes k. Inside shifts run opposite the visible sign; outside shifts follow their sign

2. Factor first. Numerator zeros give x-intercepts when the denominator is nonzero. Denominator zeros that remain after checking common factors give vertical asymptotes

3. Compare degrees for horizontal asymptotes. A smaller numerator degree gives y = 0; equal degrees give the ratio of leading coefficients; a larger numerator degree gives no horizontal asymptote

4. Build a graph in order: factor, mark dashed asymptotes, plot zeros, evaluate test points on every side of the vertical asymptotes, and connect smooth branches within their regions

5. A completely canceled denominator factor leaves a hole when the simplified rule is defined at that input. Mark the missing point with an open circle and retain the domain restriction. A graph may cross a horizontal asymptote, but not a vertical asymptote

Quiz

Which function has vertical asymptote x = 1 and horizontal asymptote y = -2?

A

f(x)=$$\frac{1}{x+1}$$-2

B

f(x)=$$\frac{1}{x-2}$$+1

C

f(x)=$$\frac{1}{x-1}$$-2

D

f(x)=$$\frac{1}{x-1}$$+2

Question 2: match horizontal asymptotes

Match each function—(x - 7)/(x² + 1), (4x² + x)/(2x² - 3), and (x³ + 5)/(x - 2)—to one of these conclusions: y = 2, no horizontal asymptote, or y = 0

Answers and reasoning: (x - 7)/(x² + 1) has degrees 1 < 2, so it matches y = 0. For (4x² + x)/(2x² - 3), both degrees are 2, so the leading-coefficient ratio 4/2 gives y = 2. For (x³ + 5)/(x - 2), degree 3 > 1, so it has no horizontal asymptote

Question 3: identify each denominator feature

For f(x) = (x - 2)(x + 3)/

$$(x - 2)(x - 5)$$

, name the feature at x = 2 and at x = 5. The offered feature names are a hole, a vertical asymptote, an x-intercept, and a horizontal asymptote

Answers and reasoning: at x = 2, the graph has a hole because the factor x - 2 cancels completely. At x = 5, the graph has a vertical asymptote because the denominator factor x - 5 survives. Check each denominator factor separately rather than treating all denominator zeros alike

Continue with the interactive lesson