Quarry School

College Algebra / Rational functions

Rational functions

Subject: Mathematics

All 7 lessons, in order.

The unit at a glance

  1. The reciprocal function and arrow notation

    Picture a trip of 1 mile.

  2. The domain of a rational function

    Picture a vending machine with one broken button.

  3. Vertical asymptotes and holes

    Picture a long sidewalk.

  4. Horizontal and slant asymptotes

    Picture a tug of war between the top and the bottom of the fraction while x grows huge.

  5. Intercepts of a rational function

    Picture a map with two straight roads.

  6. Graphing a rational function from its features

    Think of drawing a road on a map before you have driven it.

  7. Writing a rational function from its graph

    So far you were handed a formula and you drew its graph.

Rules (7)
  • The reciprocal function and arrow notation

    The reciprocal function is f(x) = 1x. Its domain and its range are both (−∞, 0) ∪ (0, ∞): every real number except 0. Near zero: as x → 0+, f(x) → ∞, and as x → 0−, f(x) → −∞. Far away: as x → ∞, f(x) → 0, and as x → −∞, f(x) → 0. In arrow notation the arrow reads "approaches" or "goes to", a raised + means from the right, and a raised − means from the left.

  • The domain of a rational function

    A rational function has the form f(x) = P(x)Q(x), where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.
    Domain of f: every real number x with Q(x) ≠ 0. Solve Q(x) = 0 on the original formula, before any canceling, and leave out each solution.

  • Vertical asymptotes and holes

    Factor the top and the bottom and cancel every common factor. If x = a still makes the bottom zero after canceling, the line x = a is a vertical asymptote. If x = a makes the original bottom zero but no longer makes the simplified bottom zero, the graph has a hole (a removable discontinuity) at x = a, and the height of the hole is the value of the simplified formula at a.

  • Horizontal and slant asymptotes

    For a top that is not the constant 0, compare the degree of the top with the degree of the bottom. Top degree < bottom degree: horizontal asymptote y = 0. Degrees equal: horizontal asymptote y = leadingcoefficientofthetopleadingcoefficientofthebottom. Top degree = bottom degree + 1: no horizontal asymptote, and the slant asymptote is y = the quotient of top ÷ bottom with the remainder dropped. Top degree bigger by 2 or more: neither.

  • Intercepts of a rational function

    Let f(x) = p(x)q(x) be a rational function, where p(x) is the top and q(x) is the bottom.
    y-intercept: the point (0, f(0)), when q(0) ≠ 0. When q(0) = 0 there is no y-intercept.
    x-intercepts: every point (a, 0) where p(a) = 0 and q(a) ≠ 0. A zero of the top that also makes the bottom 0 is never an x-intercept.

  • Graphing a rational function from its features

    For a top that is not the constant 0, split the x-axis at every x-intercept, every vertical asymptote and every hole. On each interval between neighboring split points, f(x) keeps one sign, so one test point tells whether the graph is above or below the x-axis there. The sketch is: dashed asymptotes, plotted intercepts, an open circle at each hole, one test point per interval, then smooth branches that never cross a vertical asymptote and, at the far left and far right, level toward the horizontal asymptote or slant asymptote. When the top's degree is two or more above the bottom's, there is neither, and the far ends follow the polynomial quotient that division gives.

  • Writing a rational function from its graph

    The first candidate formula, with the simplest factors, for a graph that crosses the x-axis at x = p and x = q, has vertical asymptotes at x = r and x = s, and has a hole at x = c is f(x) = a · (x−p)(x−q)(x−c)(x−r)(x−s)(x−c) with a ≠ 0. With no hole, leave out both (x − c) factors. Find a by plugging in one more point of the graph that is not on the x-axis. If the graph goes the same way on both sides of a vertical asymptote, square that bottom factor, the simplest even power. If the graph touches the x-axis at an intercept and turns back, square that top factor. Check the candidate against the rest of the graph: a graph can call for higher powers or for factors with no real zero, such as x2 + 1.

Recipes (7)
  • The reciprocal function and arrow notation
    1. Cross out x = 0. The division 1 ÷ 0 has no value, so the graph has no point on the y-axis.
    2. Plot three anchor points on the right: (12, 2), (1, 1) and (2, 12).
    3. Plot the matching points on the left by switching both signs: (−12, −2), (−1, −1) and (−2, −12). A negative input gives the same size of output with a minus sign.
    4. Near zero, test inputs closer and closer to 0 from each side. From the right the outputs climb without bound. From the left they drop without bound.
    5. Far away, test inputs of larger and larger size. The outputs close in on 0, from above on the right and from below on the left.
    6. Draw two separate smooth branches, one in Quadrant I and one in Quadrant III. Do not join them across x = 0.
    7. Write each trend in arrow notation: first where x heads, then where f(x) heads.
  • The domain of a rational function
    1. Say what is asked. 'Find the domain' means: list every input x that gives an output.
    2. Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.
    3. Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.
    4. Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has x2 or higher, factor it and set each factor equal to 0.
    5. Plug each solution back into the original bottom and confirm that you get 0.
    6. Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.
  • Vertical asymptotes and holes
    1. Factor the top and the bottom completely.
    2. Set the original bottom equal to 0 and solve. These are the inputs the function cannot take. Every break in the graph sits at one of them.
    3. Cancel every factor that appears in both the top and the bottom. Write the simplified formula, and keep a note of every input you excluded in step 2.
    4. Test each excluded input in the simplified bottom. If the bottom is still zero there, the line x = a is a vertical asymptote.
    5. If the simplified bottom is no longer zero there, the graph has a hole at x = a. Plug a into the simplified formula to get the height b, and write the hole as the point (a, b).
    6. Count. The vertical asymptotes and the holes together must account for every excluded input from step 2.
  • Horizontal and slant asymptotes
    1. Find the degree of the top and the degree of the bottom: the highest power of x in each. Write both numbers down. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.
    2. If the top's degree is smaller, the horizontal asymptote is y = 0. Stop.
    3. If the degrees are equal, divide the leading coefficient of the top by the leading coefficient of the bottom, keeping both signs. That number is the height of the horizontal asymptote. Stop.
    4. If the top's degree is exactly one more, divide the top by the bottom with polynomial division. The quotient, without the remainder, is the slant asymptote.
    5. If the top's degree is two or more above the bottom's, report that there is no horizontal asymptote and no slant asymptote.
    6. As a consistency check, try a big input such as x = 100 or x = 1000; the output is usually close to the line you found. The degrees or the division decide the asymptote; the number only checks it.
  • Intercepts of a rational function
    1. Factor the top and the bottom. Use the original bottom to list the domain: every x except the ones that make the bottom 0.
    2. For the y-intercept, ask whether 0 is in the domain. If it is, compute f(0) and write the point (0, f(0)). If it is not, write: no y-intercept.
    3. For the x-intercepts, set the top equal to 0 and solve. These answers are the candidates.
    4. Test each candidate in the original bottom. Cross out any candidate that makes the bottom 0.
    5. Write each surviving candidate a as the point (a, 0).
    6. Check: put each surviving candidate into the original formula. You should get 0 over a number that is not 0.
  • Graphing a rational function from its features
    1. Factor the top and the bottom completely. Set the original bottom equal to 0 to find the inputs to throw out, and write the domain.
    2. Cancel any factor the top and bottom share. Each canceled factor (x − a) with no copy of it left in the bottom marks a hole at x = a: plug a into the simplified formula to get the hole's height, and plan an open circle there.
    3. Set the simplified bottom equal to 0. Each solution is a vertical asymptote. Draw a dashed vertical line at each one.
    4. Compare the degrees of top and bottom to get the horizontal asymptote, or divide when the top's degree is one more to get the slant asymptote. Draw it dashed.
    5. Find the intercepts: f(0) for the y-intercept when 0 is in the domain, and for the x-intercepts the zeros of the simplified top where the original bottom is not 0. Plot them.
    6. Mark every x-intercept, vertical asymptote and hole on the x-axis; with a top that is not the constant 0 there are finitely many. These split points cut the axis into intervals.
    7. Pick one test point inside each interval, plug it in, and plot the point. A positive output means that stretch is above the x-axis. A negative output means it is below.
    8. Draw each branch last: through its plotted points, climbing or diving beside each vertical asymptote on the side its test point says, and, at the far left and far right, leveling toward the horizontal or slant asymptote, or following the quotient from division when there is neither. Put the open circle at each hole.
    9. Check with one input very close to each vertical asymptote and one input far out, such as x = 100.
  • Writing a rational function from its graph
    1. Say what the question asks: build the fraction whose graph has exactly the features you see.
    2. List the x-intercepts. For a crossing at x = p, write the factor (x − p) on the top, and for a touch that turns back, (x − p)2. If there are no x-intercepts, try a top with no x in it, the simplest choice; the rest of the graph can still call for a factor with no real zero, such as x2 + 1.
    3. List the vertical asymptotes. For a wall at x = r, write the factor (x − r) on the bottom. If the graph goes the same way (both up or both down) on the two sides of the wall, write (x − r)2 instead.
    4. Look for a hole (an open circle). For a hole at x = c, write (x − c) on both the top and the bottom.
    5. Put an unknown number a in front of the fraction.
    6. Pick one point on the graph that is not on the x-axis and is not the hole. The y-intercept is usually the most convenient. Plug in its x and its y, then solve for a.
    7. Write the finished formula. Check it against a feature you did not use: the horizontal asymptote or a second point.
Traps (7)
  • The reciprocal function and arrow notation

    The most common mistake is running the two behaviors together: thinking a small input gives a small output, or writing "as x → 0, f(x) → 0". It is the reverse. Inputs near 0 give outputs far from 0, and inputs far from 0 give outputs near 0. Before you write any arrow statement, plug in one test number, such as 0.01 or 1000, and look at both the size and the sign of the answer.

  • The domain of a rational function

    Canceling before you find the domain. f(x) = x2−1x−1 factors to (x−1)(x+1)x−1 and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.

  • Vertical asymptotes and holes

    The most common mistake is to stop at the domain: you find the zeros of the bottom and call every one of them a vertical asymptote. Some of them may be holes. Always factor and cancel first, then sort each excluded input by whether it still makes the simplified bottom zero. Still zero means a wall. No longer zero means a hole, with its height taken from the simplified formula.

  • Horizontal and slant asymptotes

    Dividing the leading coefficients without first comparing the degrees. The ratio of leading coefficients is the horizontal asymptote only when the two degrees are equal. For 3x+1x2−4 the tempting answer y = 3 is wrong: the bottom is stronger, so the answer is y = 0. Write the two degrees down before you touch the coefficients.

  • Intercepts of a rational function

    Keeping a zero of the top that also makes the bottom zero. For f(x) = x2−1x−1, the top is 0 at x = 1 and at x = −1. But x = 1 makes the bottom 0 too, so f(1) is 0 ÷ 0, which is undefined. The graph has a hole at (1, 2) there, and the only x-intercept is (−1, 0). Test every candidate in the original bottom before you call it an intercept.

  • Graphing a rational function from its features

    The most common mistake is to plot a handful of points and join them all in one stroke, straight through a vertical asymptote. The function has no output at a vertical asymptote, so no part of the curve may pass through that dashed line. Draw every asymptote first, lift the pencil at each vertical one, and let the test point on each side decide whether that side climbs or dives.

  • Writing a rational function from its graph

    Stopping after the factors. x−1x+2 has the right crossing and the right wall, but its graph passes through (0, −12) and levels off at y = 1. The graph in the example passes through (0, −1) and levels off at y = 2. Always write a in front and use a point to find it, even when a turns out to be 1.

Lesson 1 of 7

The reciprocal function and arrow notation

Subject: MathematicsLeans on: Dividing by a fractionLeans on: Small decimals as fractionsLeans on: Signs when dividingLeans on: Dividing by zeroLeans on: Ordering negative numbersLeans on: Domain and range in interval formLeans on: QuadrantsOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Picture a trip of 1 mile. Travel at x miles per hour and the trip takes 1 ÷ x hours. At 2 miles per hour it takes 12 hour. At 100 miles per hour it takes 1100 hour: tiny, but never zero. Now slow down. At 12 mile per hour it takes 2 hours. At 1100 mile per hour it takes 100 hours. At 0 miles per hour you never arrive, so there is no answer at all. The rule "give back 1 divided by the input" is the reciprocal function, f(x) = 1x. Arrow notation is shorthand for sentences such as "as the speed shrinks toward 0, the time grows without end."

2 Picture it

(1, 1)(−1, −1)−4−224−4−224(1, 1)(−1, −1)−4−224−4−224
Each branch runs alongside both axes without touching them: steep beside the y-axis, flat beside the x-axis.

Reminder

Reminder: Dividing by a fraction, Small decimals as fractions, Signs when dividing, Dividing by zero, Ordering negative numbers, Domain and range in interval form, Quadrants
  • Dividing by a fraction. Dividing by a fraction means multiplying by its flip: 1 ÷ 14 = 1 × 4 = 4.
  • Small decimals as fractions. 0.1 is 110, 0.01 is 1100, 0.001 is 11000. So 1 ÷ 0.01 = 1 × 100 = 100.
  • Signs when dividing. A positive divided by a negative is negative: 1 ÷ (−2) = −12. The negative of a negative is positive: −(−10) = 10.
  • Dividing by zero. 1 ÷ 0 has no value, because no number times 0 gives 1.
  • Ordering negative numbers. On the number line, −0.01 is to the right of −0.1 and closer to 0, the same way a debt of one cent is closer to nothing than a debt of ten cents.
  • Domain and range in interval form. The domain is the set of inputs a function accepts and the range is the set of outputs it produces. "Every number except 0" is written (−∞, 0) ∪ (0, ∞).
  • Quadrants. Quadrant I is the upper right, where x and y are both positive, such as (1, 1). Quadrant III is the lower left, where both are negative, such as (−1, −1).

3 Why

Dividing 1 by a number asks how many pieces of that size fit into 1. One hundred pieces of size 1100 fit, so 1 ÷ 1100 = 100. Shrink the piece and more fit. Dividing 1 by a large number cuts 1 into many parts: each part is tiny, yet never nothing, because 0 times any count is 0, never 1. That same fact rules out x = 0: no number times 0 gives 1. A negative input gives the same size with a minus sign. These are trends, not single values, so they get their own shorthand: arrow notation.

4 The rule

The reciprocal function is f(x)=1x.

Its domain and its range are both (−∞,0)∪(0,∞): every real number except 0. Near zero: as x→0+,f(x)→∞, and as x→0−,f(x)→−∞. Far away: as x→∞,f(x)→0, and as x→−∞,f(x)→0. In arrow notation the arrow reads "approaches" or "goes to", a raised + means from the right, and a raised − means from the left.

The same idea, five ways

Say it

As x approaches zero from the right, f of x goes to infinity.

Write it

When the inputs are positive numbers closer and closer to 0, the outputs of f grow larger than any number you can name.

In math
  • f(x)=1x,x≠0
  • as x → 0+, f(x) → ∞
  • as x → 0−, f(x) → −∞
  • as x → ∞, f(x) → 0
  • as x → −∞, f(x) → 0
Like

A car creeping toward a stop: as its speed nears 0, the time to cover the next mile grows without end.

See it
(1, 1)(0.5, 2)(0.25, 4)−4−224−6−4−2246
Follow the three marked points leftward toward the y-axis: each step closer to x = 0 lifts the curve higher.

The same idea, other ways

As a picture

The graph has two separate curves, called branches. The right branch lives in Quadrant I: it comes down from the top of the picture beside the y-axis, passes through (1, 1), and flattens toward the x-axis. The left branch lives in Quadrant III and is the same curve after a half turn about the origin: far to the left it hugs the x-axis from underneath, and beside the y-axis it plunges downward. Neither branch touches either axis.

domainrange−4−224−4−224
Two branches in opposite corners, and a gap at 0 in the shadow on each axis: no input is 0 and no output is 0.
As a story

Share one pizza equally among x people. Each person gets 1x of it. With 2 people each gets 12. With 4, each gets 14. With 8, each gets 18. With a thousand, each gets a crumb, yet never nothing. That is the far away behavior. Now turn the question around: how many slices of size x can you cut from one pizza? Slices of size 18 give 8 slices. Slices of size 1100 give 100 slices. The smaller the slice, the larger the count, with no top. That is the behavior near zero.

1/21/41/8
As the bottom number doubles, one share of the bar gets smaller but never disappears.
With small numbers

Start at the middle column of the table, where the input 1 gives the output 1. Moving left, the inputs shrink toward 0 and the outputs grow. Moving right, the inputs grow and the outputs shrink toward 0. The two rows hold the same numbers in opposite order: the reciprocal trades small for large and large for small.

input xoutput f(x)0.00110000.011000.11011100.11000.0110000.001↓ evaluate: input given, read the output below it
From the highlighted column outward, the input row and the output row run in opposite directions.
Rule of thumb

Small bottom, big answer. Big bottom, small answer. Zero bottom, no answer. And the sign tags along: a positive input gives a positive output, a negative input gives a negative output.

Why it must be true

Multiply any input by its output and you get 1, because x × 1x = 1. Two numbers whose product is 1 are locked together. If one is tiny, the other must be huge: 0.001 × 1000 = 1. If one is huge, the other must be tiny: 1000 × 0.001 = 1. Neither can be 0, because 0 times anything is 0, not 1. That is why the graph has no point at x = 0 and no point at height 0. And since the product is positive, the two numbers always share a sign.

6 ÷ 3 = 26 ÷ 2 = 36 ÷ 1 = 66 ÷ 0 = ?0 groups: nowhere to put them, so no answer
Sharing among 3, 2 and 1 groups works, but sharing among 0 groups has no answer.
SymbolSay itWhat it means
x→0+x approaches 0 from the rightThe inputs are positive and closing in on 0: 0.1, 0.01, 0.001.
x→0−x approaches 0 from the leftThe inputs are negative and closing in on 0: −0.1, −0.01, −0.001.
x→a+x approaches a from the rightThe same idea at any number a. For a = 2 the inputs are 2.1, 2.01, 2.001.
x→a−x approaches a from the leftFor a = 2 the inputs are 1.9, 1.99, 1.999.
x → ∞x goes to infinityThe inputs grow without bound: 10, 100, 1000.
x→−∞x goes to negative infinityThe inputs fall without bound: −10, −100, −1000.
f(x) → ∞f of x goes to infinityThe outputs grow past every number. The graph climbs off the top of the picture.
f(x)→−∞f of x goes to negative infinityThe outputs fall below every number. The graph drops off the bottom of the picture.
f(x) → 0f of x approaches 0The outputs close in on 0. The graph flattens toward the x-axis.

Part 1: Near zero: the graph shoots up or down

Stand beside zero on the number line and take smaller and smaller steps toward it. On the right side, the table shows what happens: each input closer to 0 gives a larger output, and the outputs pass any number you name. On the left side the inputs are negative, so the outputs are negative too, and they fall below any number you name. It is the 1 mile trip at a crawl: the slower you go, the longer it takes, with no limit.

  • From the right: as x → 0+, f(x) → ∞.
  • From the left: as x → 0−, f(x) → −∞.
  • At x = 0 itself there is no output and no point on the graph.
  • The y-axis, which is the line x = 0, is the vertical asymptote of this graph: an up and down line that the curve runs alongside, closer and closer, while the outputs shoot off.
input xoutput f(x)110.520.1100.011000.0011000
Reading left to right, the inputs close in on 0 from the right and the outputs grow without bound.

Worked example

From the left side of zero

What does f(x) = 1x do as x approaches 0 from the left? In plain words: the inputs are negative numbers sliding toward 0. Find where the outputs head.

Show the steps and the answer
input xoutput f(x)−1−1−0.5−2−0.1−10−0.01−100−0.001−1000
The inputs creep toward 0 from the left while the outputs fall lower and lower.
  1. Choose inputs left of 0 that close in on it: −1,−0.5,−0.1,−0.01,−0.001. They are the top row of the table.From the left means through numbers less than 0. Each number in the list is nearer to 0 than the one before it.
  2. Divide 1 by each input. In the column under −0.1 the output is −10, under −0.01 it is −100, and under −0.001 it is −1000.1 ÷ 0.01 = 100, since 0.01 is 1100 and dividing by a fraction multiplies by its flip. A positive divided by a negative is negative.
  3. Read the trend along the bottom row. The outputs fall lower at every step, with no floor.Each step toward 0 makes the size of the output larger, and the sign stays negative.
  4. Write it in arrow notation: as x→0−,f(x)→−∞.The first half says where the inputs head. The second half says where the outputs head.
Answer
As x → 0−, f(x) → −∞.
Double-check Multiply an input by its output: (−0.001) × (−1000) = 1, so the last column is right. Take one more step in: f(−0.0001) = −10,000, which continues the fall.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: −0.01 is farther left than −0.1, so the list −0.1, −0.01, −0.001 walks away from 0.
−0.01 is one hundredth below 0 and −0.1 is one tenth below 0. One hundredth is the shorter distance.
✓ Instead: −0.01 sits between −0.1 and 0. The list −0.1, −0.01, −0.001 marches toward 0 from the left.
Tips and tricks
  • To test the right side of 0, plug in 0.01. To test the left side, plug in −0.01. The sign of the output tells you whether the graph goes up or down.

Part 2: Far away: the graph flattens toward the x-axis

Now walk far out along the number line. The table shows the right side: as the inputs grow by tens, the outputs shrink by tens. They close in on 0 and never get there. Far to the left the inputs are large negative numbers, and the outputs are small negative numbers, closing in on 0 from underneath. It is the 1 mile trip at higher and higher speeds: the time shrinks toward nothing, yet some time always passes.

  • To the right: as x → ∞, f(x) → 0. The outputs stay positive, so the curve sits above the x-axis.
  • To the left: as x → −∞, f(x) → 0. The outputs stay negative, so the curve sits below the x-axis.
  • No input gives the output 0, because 1 divided by a number is never 0.
  • The x-axis, which is the line y = 0, is the horizontal asymptote of this graph: a level line that the curve settles toward far to the right and far to the left.
input xoutput f(x)11100.11000.0110000.001
Each input is ten times the one before it, and each output is one tenth of the one before it.

Worked example

Far out to the left

What does f(x) = 1x do as x goes to negative infinity? In plain words: the inputs are negative numbers of larger and larger size. Find where the outputs head.

Show the steps and the answer
input xoutput f(x)−1−1−10−0.1−100−0.01−1000−0.001
The inputs run off to the left while the outputs close in on 0 from below.
  1. Choose inputs running off to the left: −1,−10,−100,−1000. They are the top row of the table.Going to negative infinity means falling below every number, so each input is ten times farther left than the one before.
  2. Divide 1 by each input. Under −10 the output is −0.1, under −100 it is −0.01, and under −1000 it is −0.001.1 ÷ 100 = 0.01, and a positive divided by a negative is negative.
  3. Read the trend along the bottom row. The outputs get smaller in size at every step and stay negative.Cutting 1 into more parts makes each part smaller. The minus sign comes along from the input.
  4. Write it in arrow notation: as x→−∞,f(x)→0.The outputs close in on 0, so 0 goes after the second arrow.
Answer
As x → −∞, f(x) → 0.
Double-check Multiply an input by its output: (−1000) × (−0.001) = 1, so the last column is right. Take one more step out: f(−10,000) = −0.0001, which is closer to 0 and still not 0.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Far enough out, the graph lands on the x-axis and stays there.
Landing on the x-axis would mean 1x = 0 for some x, and then 1 = 0 × x = 0, which is false.
✓ Instead: The curve gets as close to the x-axis as you like and never touches it.
Tips and tricks
  • To test far right, plug in 1000. To test far left, plug in −1000. A tiny positive answer means the curve is above the x-axis, a tiny negative answer means it is below.

5 How

  1. Cross out x = 0. The division 1 ÷ 0 has no value, so the graph has no point on the y-axis.
  2. Plot three anchor points on the right: (12, 2), (1, 1) and (2, 12).
  3. Plot the matching points on the left by switching both signs: (−12, −2), (−1, −1) and (−2, −12). A negative input gives the same size of output with a minus sign.
  4. Near zero, test inputs closer and closer to 0 from each side. From the right the outputs climb without bound. From the left they drop without bound.
  5. Far away, test inputs of larger and larger size. The outputs close in on 0, from above on the right and from below on the left.
  6. Draw two separate smooth branches, one in Quadrant I and one in Quadrant III. Do not join them across x = 0.
  7. Write each trend in arrow notation: first where x heads, then where f(x) heads.

Describing behavior in arrow notation

1
Are the inputs closing in on one number a?
YesName the side: x → a+ from the right, x → a− from the left.
NoThe inputs are running off: write x → ∞ to the right or x → −∞ to the left.
↓
2
Do the outputs grow past every number?
YesWrite f(x) → ∞.
NoGo on.
↓
3
Do the outputs fall below every number?
YesWrite f(x) → −∞.
NoGo on.
↓
4
Do the outputs close in on one number?
YesWrite f(x) → that number. For 1x far away, the number is 0.
NoTake more inputs, closer in or farther out, until a trend shows.
  1. Pick the place to study: beside a break in the graph (for 1x, the break is at x = 0) or far out to the right or left.
  2. Choose inputs that march toward that place from one side, such as 0.1, 0.01, 0.001 for the right side of 0, or 10, 100, 1000 for far to the right.
  3. Compute the output for each input and put the pairs in a table.
  4. Read the trend in the output row: growing without bound, falling without bound, or closing in on one number.
  5. Write the sentence in two halves: as x → (where the inputs head), f(x) → (where the outputs head).
  6. Repeat for the other side of the break and for the other far direction. Each one gets its own statement.

6 Worked example

Worked example

From a table to a sketch to four arrow statements

Sketch the graph of f(x) = 1x and write, in arrow notation, what it does near zero and far away. In plain words: find enough points to draw the curve, then say where the outputs head as the inputs slide toward 0 from each side and as they run off to the right and to the left.

Show the steps and the answer
input xoutput f(x)−0.1−10−0.01−100−0.001−10000.00110000.011000.110
Near zero.
input xoutput f(x)−1000−0.001−100−0.01−10−0.1100.11000.0110000.001
Far away: the farther the input is from 0, the closer the output is to 0.
(0.5, 2)(1, 1)(2, 0.5)(−0.5, −2)(−1, −1)(−2, −0.5)−4−224−4−224
Six anchor points, three on each branch, with 0.5 standing for 12: the two branches never meet.
  1. Try the input 0: f(0) would be 1÷0, which has no value. Leave x=0 out and put no point on the y-axis.No number times 0 gives 1, so the division has no answer. This step finds the one input the function refuses, so we know where the graph breaks.
  2. Compute three points on the right: f(12)=2,f(1)=1,f(2)=12. Plot (12,2), (1, 1) and (2,12).Dividing 1 by 12 means multiplying 1 by the flip, 2. Dividing 1 by 1 gives 1. Dividing 1 by 2 gives 12.
  3. Compute three points on the left: f(−12)=−2,f(−1)=−1,f(−2)=−12. Plot (−12,−2),(−1,−1) and (−2,−12).A positive divided by a negative is negative, so each output keeps its size and takes a minus sign.
  4. Slide toward 0 from the right. In the first table, the columns under 0.1, 0.01 and 0.001 hold 10, 100 and 1000. Write: as x→0+,f(x)→∞.The outputs grow past every number, and the raised + records that the inputs came in from the right.
  5. Slide toward 0 from the left. In the first table, the columns under −0.1,−0.01 and −0.001 hold −10,−100 and −1000. Write: as x→0−,f(x)→−∞.The outputs fall below every number, and the raised − records that the inputs came in from the left.
  6. Run far to the right. In the second table, the columns under 10, 100 and 1000 hold 0.1, 0.01 and 0.001. Write: as x→∞,f(x)→0.The outputs close in on 0 and stay positive.
  7. Run far to the left. In the second table, the columns under −10,−100 and −1000 hold −0.1,−0.01 and −0.001. Write: as x→−∞,f(x)→0.The outputs close in on 0 and stay negative.
  8. Join the three right points with one smooth curve that climbs steeply beside the y-axis and flattens toward the x-axis. Draw a second, separate curve through the three left points. Do not connect the two curves across x=0.There is no point at x = 0, and the outputs head in opposite directions on the two sides, so nothing joins the branches.
Answer
  • Two separate branches: one in Quadrant I through (12, 2), (1, 1), (2, 12) and one in Quadrant III through (−12, −2), (−1, −1), (−2, −12).
  • As x → 0+, f(x) → ∞.
  • As x → 0−, f(x) → −∞.
  • As x → ∞, f(x) → 0.
  • As x → −∞, f(x) → 0.
Double-check A second way: every point on this graph must satisfy x × y = 1, because y is 1 divided by x. Test the six plotted points: 12 × 2 = 1, 1 × 1 = 1, 2 × 12 = 1, (−12) × (−2) = 1, (−1) × (−1) = 1, (−2) × (−12) = 1. All six pass. The same product explains the arrows: when x is tiny, y must be huge to keep the product at 1, and when x is huge, y must be tiny. The product is positive, so x and y share a sign, which puts the branches in Quadrants I and III.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

Rung 1: evaluate the reciprocal function

For f(x) = 1x, find f(4), f(14) and f(−5). In plain words: each number in the parentheses is an input. Find its output.

Show the steps and the answer
  1. Replace x by 4: f(4)=14.The rule says to divide 1 by the input.
  2. Replace x by 14: f(14)=1÷14=1×4=4.Dividing by a fraction means multiplying by its flip, and the flip of 14 is 4.
  3. Replace x by −5: f(−5)=1÷(−5)=−15.A positive divided by a negative is negative.
Answer
  • f(4)=14
  • f(14)=4
  • f(−5)=−15
Double-check Multiply each input by its output. Each product must be 1: 4 × 14 = 1, 14 × 4 = 1, (−5) × (−15) = 1.

Rung 2 of 5

Rung 2: translate between words and arrow notation

(a) Write in arrow notation: as x approaches 0 from the left, f(x) goes to negative infinity. (b) Say aloud: as x → ∞, f(x) → 0. In plain words: turn a sentence into symbols, then turn symbols back into a sentence.

Show the steps and the answer
  1. For (a), turn "x approaches 0 from the left" into x→0−.The arrow means approaches. The left side of 0 is the negative side, so it is marked with a raised minus.
  2. Turn "f(x) goes to negative infinity" into f(x)→−∞.Going to negative infinity means falling below every number, written −∞.
  3. For (b), read x→∞ as "x goes to infinity" and f(x)→0 as "f of x approaches 0".Each arrow is read "goes to" or "approaches". The first half is about inputs, the second about outputs.
Answer
  • (a) As x → 0−, f(x) → −∞.
  • (b) "As x goes to infinity, f of x approaches 0."
Double-check Test both statements with numbers on f(x) = 1x. For (a), an input next to 0 on the left: f(−0.001) = −1000, far down, as the statement says. For (b), an input far to the right: f(1000) = 0.001, close to 0, as the statement says.

Rung 3 of 5

Rung 3: how far out is far enough

For f(x) = 1x with positive x, how large must x be before the output drops below 1500? In plain words: the output has a ceiling of 1500. Find the inputs that keep the output under it.

Show the steps and the answer
  1. Find the border input, where the output is exactly 1500: 1x=1500 gives x=500.Two fractions with the same top, 1, are equal only when their bottoms match. This finds the one input that sits exactly on the ceiling, so we know where to look on each side of it.
  2. Plug it back in: f(500)=1500=0.002.Plugging the value back in shows it does what we wanted: the output equals the ceiling, not below it.
  3. Test a larger input: f(1000)=11000=0.001, and 0.001 < 0.002.A larger bottom makes a smaller fraction, so inputs past 500 fall under the ceiling.
  4. Test a smaller input: f(100)=1100=0.01, and 0.01 > 0.002.A smaller bottom makes a larger fraction, so inputs before 500 are over the ceiling.
  5. State the result: the output is below 1500 for every x > 500.The border is at 500 and the outputs keep shrinking as x grows.
Answer
x > 500
Double-check Try the neighbors of the border. f(501) = 1501 ≈ 0.001996 (rounded), which is below 0.002. f(499) = 1499 ≈ 0.002004 (rounded), which is above 0.002. The switch happens at 500, as found. Any positive ceiling you choose, however low, has a border like this one. That is what "as x → ∞, f(x) → 0" promises.

Rung 4 of 5

Rung 4: a flipped sign

Let h(x) = −1x. Write what h does as x → 0+, as x → 0−, as x → ∞ and as x → −∞. In plain words: this is the reciprocal with its sign switched. Find where the outputs head in each of the four directions.

Show the steps and the answer
input xoutput h(x)−0.110−0.01100−0.00110000.001−10000.01−1000.1−10
Every output has the opposite sign from its input: positive on the left of 0 and negative on the right.
(1, −1)(−1, 1)−4−224−4−224
The branches now sit in Quadrants II and IV, the reciprocal graph flipped over the x-axis.
  1. Right of 0: in the table, the columns under 0.1, 0.01 and 0.001 hold −10,−100 and −1000. Write: as x→0+,h(x)→−∞.There 1x is a large positive number, and the minus sign in front turns it into a large negative one.
  2. Left of 0: the columns under −0.1,−0.01 and −0.001 hold 10, 100 and 1000. Write: as x→0−,h(x)→∞.There 1x is a large negative number, and the negative of a negative is positive: −(−100) = 100.
  3. Far right: h(10)=−0.1,h(100)=−0.01,h(1000)=−0.001. Write: as x→∞,h(x)→0.The size shrinks toward 0 exactly as for 1x. The sign is negative, so the curve comes in from below the x-axis.
  4. Far left: h(−10)=0.1,h(−100)=0.01,h(−1000)=0.001. Write: as x→−∞,h(x)→0.The size shrinks toward 0 again, this time from above the x-axis.
Answer
  • As x → 0+, h(x) → −∞.
  • As x → 0−, h(x) → ∞.
  • As x → ∞, h(x) → 0.
  • As x → −∞, h(x) → 0.
Double-check For this function, input times output must be −1, because x × (−1x) = −1. Test: 0.001 × (−1000) = −1, (−0.001) × 1000 = −1, 1000 × (−0.001) = −1, (−1000) × 0.001 = −1. All pass. A negative product means the input and the output have opposite signs, which matches branches in Quadrants II and IV. The gotcha: the two statements near zero trade places compared with 1x, while the two far away statements stay at 0.

Rung 5 of 5

Rung 5: read arrow notation from a shifted graph

The graph of g(x) = 1x−2 + 1 is shown. From the picture, write what g does as x → 2+, as x → 2−, as x → ∞ and as x → −∞. In plain words: slide along the curve toward the dashed vertical line from each side, then far out each way, and say where the height of the curve heads.

(3, 2)(1, 0)−2246−4−2246
The break sits at x = 2 and the curve levels off at height 1: the reciprocal shape moved 2 right and 1 up.
Show the steps and the answer
  1. Find the break: the dashed vertical line at x=2. The curve has no point there.At x = 2 the bottom of the fraction is 2 − 2 = 0, and 1 ÷ 0 has no value.
  2. Start on the branch to the right of the line and slide left toward x=2. The curve climbs off the top of the picture. Write: as x→2+,g(x)→∞.Coming from the right is marked 2+, and climbing past every height is written → ∞.
  3. Start on the branch to the left of the line and slide right toward x=2. The curve drops off the bottom of the picture. Write: as x→2−,g(x)→−∞.Coming from the left is marked 2−, and falling below every height is written → −∞.
  4. Follow the right branch far to the right. It flattens toward the dashed level line at height 1. Write: as x→∞,g(x)→1.The heights close in on 1, not 0, because the whole graph was lifted by 1.
  5. Follow the left branch far to the left. It flattens toward the same level line from underneath. Write: as x→−∞,g(x)→1.The heights close in on 1 again, this time from below.
Answer
  • As x → 2+, g(x) → ∞.
  • As x → 2−, g(x) → −∞.
  • As x → ∞, g(x) → 1.
  • As x → −∞, g(x) → 1.
Double-check Check each reading with a number. Next to 2 on the right: g(2.01) = 10.01 + 1 = 100 + 1 = 101, far up. Next to 2 on the left: g(1.99) = 1−0.01 + 1 = −100 + 1 = −99, far down. Far right: g(1002) = 11000 + 1 = 1.001, a little above 1. Far left: g(−998) = 1−1000 + 1 = 0.999, a little below 1. All four match the picture. The gotcha: the break is at 2 and the level is 1, so do not write 0 out of habit.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: f(0) = 0, because 1 divided by nothing is nothing.
1 ÷ 0 asks for a number that gives 1 when multiplied by 0. Every number times 0 is 0, so no such number exists.
✓ Instead: f(0) has no value. The graph has no point at x = 0 and breaks into two branches there.
✗ Not this: As x → ∞, f(x) → 0 means the output equals 0 once x is big enough.
If 1x were 0, then 1 would equal 0 × x, which is 0. That is false. At x = 1,000,000 the output is 0.000001: small, and still positive.
✓ Instead: The outputs come as close to 0 as you like and never reach it. The arrow means approaches, not equals.
✗ Not this: Writing "as x → 0, f(x) → ∞" with no side named.
The two sides disagree. From the right, f(0.001) = 1000. From the left, f(−0.001) = −1000.
✓ Instead: Name the side every time: as x → 0+, f(x) → ∞, and as x → 0−, f(x) → −∞.
✗ Not this: Reading 0− as "negative zero" or as 0 raised to a power, or reading x → 0− as "x goes far into the negatives".
The raised sign is a direction marker, not a sign on the number and not an exponent. Going far into the negatives is written x → −∞.
✓ Instead: x → 0− means the inputs come toward 0 through numbers less than 0, such as −0.1, −0.01, −0.001.
✗ Not this: Every function with x in the bottom goes up on one side of 0 and down on the other.
This is a case where the pattern of 1x does not carry over. For 1x2, a square is positive on both sides: at x = 0.1 the output is 10.01 = 100, and at x = −0.1 the output is also 10.01 = 100.
✓ Instead: The opposite directions belong to 1x because its output takes the sign of its input. For any other function, read the signs of its factors on each side; a test number on each side, closer than any other split point, shows the same.

Tips and tricks

  • Small bottom, big answer. Big bottom, small answer. Zero bottom, no answer.
  • The sign tags along: the output of 1x has the same sign as the input.
  • Check any point on the graph by multiplying: the input times the output must be 1.
  • Unsure which way an arrow goes? Plug in a test number: 0.01 for 0+, −0.01 for 0−, 1000 for ∞, −1000 for −∞.
  • An arrow statement has two halves, where x heads and where f(x) heads. If you wrote only one half, the statement is not finished.
  • ∞ is not a number you can reach or plug in. It is a direction: growing past every number.
  • The reciprocal function is the simplest rational function, which means one polynomial divided by another: the top is 1 and the bottom is x. Many graphs later in this unit share its pattern, a wall where the bottom is 0 and a level line far away; others add holes, walls with both sides going the same way, or slanted and curved far ends.

7 The trap

The most common mistake is running the two behaviors together: thinking a small input gives a small output, or writing "as x → 0, f(x) → 0". It is the reverse. Inputs near 0 give outputs far from 0, and inputs far from 0 give outputs near 0. Before you write any arrow statement, plug in one test number, such as 0.01 or 1000, and look at both the size and the sign of the answer.

Flash cards

Say the answer out loud, then flip.

On a 1 mile trip at x miles per hour, the time is 1x hours. What happens to the time as the speed shrinks toward 0 from the positive side?
  • The time grows without end.
  • At 12 mile per hour the trip takes 2 hours. At 1100 mile per hour it takes 100 hours.
  • In arrow notation: as x → 0+, f(x) → ∞.
Why does the reciprocal function f(x) = 1x have no point at x = 0?
  • Because 1 ÷ 0 has no value.
  • No number times 0 gives 1, so there is no output to plot.
  • The graph never touches the y-axis, and its two branches stay separate.
In arrow notation, what do x → 0+ and x → 0− say out loud?
  • x → 0+ says "x approaches 0 from the right", through inputs a little larger than 0.
  • x → 0− says "x approaches 0 from the left", through inputs a little smaller than 0.
  • The arrow reads "approaches" or "goes to".
For f(x) = 1x, what do the outputs do as x → ∞ and as x → −∞? Test x = 1000 and x = −1000.
  • They close in on 0 and never reach it.
  • f(1000) = 11000, a little above 0.
  • f(−1000) = −11000, a little below 0.
  • In arrow notation: as x → ∞, f(x) → 0, and as x → −∞, f(x) → 0.

Lesson 2 of 7

The domain of a rational function

Subject: MathematicsLeans on: DomainLeans on: Dividing by zeroLeans on: Solving a linear equationLeans on: A product equal to zeroLeans on: Factoring x² + bx + cLeans on: A square is never negativeLeans on: Interval notationOpen this lesson
Leans on 1Comes back in 1

1 In plain words

Picture a vending machine with one broken button. Every other button drops a snack. Press the broken one and nothing comes out. A rational function is a fraction machine: one polynomial on top, another polynomial on the bottom. You feed it a number for x. It works out the top, works out the bottom, then divides. Almost every number goes through. The only numbers that fail are the ones that turn the bottom into 0, because no number can be divided by 0. The domain is the list of buttons that work: every real number except the ones that make the bottom zero. Finding the domain means finding the broken buttons and taping over them.

2 Picture it

domain−22468−6−4−2246domain−2−112345678−6−4−2246
The graph of y = 1x−3 has no point above or below x = 3, so its shadow on the x-axis has a gap at 3.

Reminder

Reminder: Domain, Dividing by zero, Solving a linear equation, A product equal to zero, Factoring x2 + bx + c, A square is never negative, Interval notation
  • Domain. The domain is the set of all inputs a function accepts. For f(x) = 1x, the domain is every real number except 0.
  • Dividing by zero. No number can be divided by 0. 8 ÷ 0 asks what number times 0 gives 8, and nothing does. But 0 ÷ 8 = 0, because 0 × 8 = 0.
  • Solving a linear equation. Undo the adding first, then the multiplying. 2x − 6 = 0: add 6 to get 2x = 6, then divide by 2 to get x = 3.
  • A product equal to zero. If two things multiply to 0, one of them is 0. (x − 4)(x + 3) = 0 means x − 4 = 0 or x + 3 = 0, so x = 4 or x = −3.
  • Factoring x2 + bx + c. Find two numbers that multiply to c and add to b. For x2 − x − 12, the numbers are −4 and 3, so it factors as (x − 4)(x + 3).
  • A square is never negative. x2 ≥ 0 for every real number x: 32 = 9 and (−3)2 = 9. So x2 plus a positive number is never 0.
  • Interval notation. A round parenthesis leaves the end out, and ∪ means 'together with'. (−∞, 3) ∪ (3, ∞) reads: everything below 3, together with everything above 3.

3 Why

Division is multiplication run backward. 12 ÷ 3 = 4 because 4 × 3 = 12. So 12 ÷ 0 asks: what number times 0 gives 12? No number does, since anything times 0 is 0. An input that makes the bottom 0 therefore has no output, so it cannot be in the domain. Nothing else can go wrong. A polynomial only adds, subtracts and multiplies, and those work for every real number. So the top never causes trouble, and the bottom causes trouble only where it equals 0. That is why you look at the bottom and nowhere else.

4 The rule

A rational function has the form f(x)=P(x)Q(x), where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.

Domain of f: every real number x with Q(x)≠0. Solve Q(x)=0 on the original formula, before any canceling, and leave out each solution.

The same idea, five ways

Say it

'x can be any real number except 3.' Or: 'all reals but 3.'

Write it

The domain of f(x) = 5x−3 is every real number other than 3, because 3 is the one input that makes the bottom zero.

In math
  • x ≠ 3
  • (−∞,3)∪(3,∞)
  • {x | x ≠ 3}
  • Graph words: the graph has no point straight above or below x = 3
Like

A road that runs forever in both directions with one bridge out at mile 3. You can stand anywhere on the road except on that one spot.

See it
3(−∞, 3) ∪ (3, ∞)
The open dot at 3 is the one input left out; everything on both sides of it is in the domain.

The same idea, other ways

As a picture

Draw the number line. For f(x) = xx2−4, the bottom is 0 at x = −2 and at x = 2, since (−2)2 − 4 = 0 and 22 − 4 = 0. Erase those two dots. Everything that is still drawn is the domain: three stretches of line with two tiny gaps.

−22(−∞, −2) ∪ (−2, 2) ∪ (2, ∞)
Two open dots, at −2 and at 2, mark the only inputs that the function refuses.
As a story

The machine for f(x) = 5x−3 has two jobs: subtract 3 from your number, then divide 5 by the result. Feed it 4 and it computes 5 ÷ 1 = 5. Feed it 8 and it computes 5 ÷ 5 = 1. Feed it 3 and it reaches 5 ÷ 0 and jams. The number 3 is the broken button. Every other button works.

x = 35 ÷ (x − 3)inputoutputno output
The input 3 makes the rule ask for 5 ÷ 0, so nothing comes out.
With small numbers

Take f(x) = 6x−2 and try whole numbers. In the table, the columns under 0, 1, 3, 4 and 5 each hold an output. There is no column under 2, because f(2) would be 6 ÷ 0. Look at the columns under 1 and 3, the neighbors of 2: both hold ordinary numbers. The trouble sits at 2 alone, not near it.

input xoutput f(x)0−31−6364352
Every input shown has an output; the input 2 is missing because it makes the bottom zero.
Why it must be true

Sharing 12 cookies among 3 plates puts 4 on each. Among 2 plates, 6 each. Among 1 plate, all 12. Among 0 plates, there is nowhere to put a cookie, and no count per plate makes sense. A fraction is a sharing problem, with the bottom as the number of plates. When the bottom is 0, the question has no answer, so that input has no output.

12 ÷ 3 = 412 ÷ 2 = 612 ÷ 1 = 1212 ÷ 0 = ?0 groups: nowhere to put them, so no answer
Sharing among 3, 2 and 1 groups works; sharing among 0 groups has no answer.
As a rule of thumb

The top can be zero. The bottom cannot. Cover the top with your thumb, ask 'when is the bottom 0?', and throw those numbers out. Everything else stays.

5 How

  1. Say what is asked. 'Find the domain' means: list every input x that gives an output.
  2. Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.
  3. Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.
  4. Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has x2 or higher, factor it and set each factor equal to 0.
  5. Plug each solution back into the original bottom and confirm that you get 0.
  6. Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.

Finding the domain of a rational function

1
Is there an x anywhere in the bottom?
YesGo on to the next question.
NoThe bottom is a fixed nonzero number, so it can never be 0. Domain: (−∞, ∞).
↓
2
Is the bottom a square plus a positive number, such as x2 + 9?
YesA square is never negative, so the bottom is never 0. Exclude nothing. Domain: (−∞, ∞).
NoGo on to the next question.
↓
3
Is the bottom a line, such as 3x + 2?
YesSet it equal to 0 and solve for x. Exclude that one number.
NoFactor the bottom completely, set every factor that contains x equal to 0, and exclude every solution.
↓
4
Did you cancel a common factor before solving bottom = 0?
YesGo back to the original formula. A canceled factor still excludes its input.
NoWrite the domain in interval notation with a gap at each excluded number.
  1. Work from the formula exactly as it was given. Do not simplify or cancel yet.
  2. Ignore the top. Write the bottom by itself.
  3. Set the bottom equal to 0. The solutions are the inputs to throw out, not the domain itself.
  4. Solve. A bottom like 2x − 6 takes two moves: add 6, then divide by 2. A bottom with x2 or x3 needs factoring first, then each factor is set equal to 0.
  5. Plug every solution back into the original bottom to see the 0 with your own eyes.
  6. Line the excluded numbers up from smallest to largest. They cut the number line into pieces. Write each piece with round parentheses and join the pieces with ∪.
  7. Count: one excluded number makes two pieces, two make three, three make four. If nothing is excluded, the domain is (−∞, ∞).

6 Worked example

Worked example

A quadratic bottom with two excluded inputs

Find the domain of f(x) = 2x+1x2−x−12. In plain words: list every input x that gives an output, by first finding the inputs that do not.

Show the steps and the answer
−34(−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
Open dots at −3 and 4 cut the line into the three pieces of the domain.
  1. Cover the top, 2x+1. Write down only the bottom: x2−x−12.The top is a polynomial, and a polynomial accepts every real number. Only the bottom can stop the division.
  2. Set the bottom equal to 0: x2−x−12=0.This step hunts for the inputs that would make the machine divide by 0, so they can be thrown out. It is not solving f(x) = 0.
  3. Factor the bottom. Find two numbers that multiply to −12 and add to −1. They are −4 and 3, so x2−x−12=(x−4)(x+3).(−4) × 3 = −12 and −4 + 3 = −1. A factored bottom shows its zeros one factor at a time.
  4. Set each factor equal to 0. x−4=0 gives x=4. x+3=0 gives x=−3.A product is 0 only when one of its factors is 0, so these two small equations find every zero of the bottom.
  5. Plug each value back into the original bottom. At x=4: 42−4−12=16−4−12=0. At x=−3: (−3)2−(−3)−12=9+3−12=0.Both make the bottom 0. The top is 9 at x = 4 and −5 at x = −3, so f(4) would be 9 ÷ 0 and f(−3) would be −5 ÷ 0. Neither has an answer.
  6. Throw out −3 and 4 and keep everything else. On the number line, put an open dot at −3 and an open dot at 4, then shade the three stretches around them.Two excluded numbers cut the line into three pieces: left of −3, between −3 and 4, and right of 4.
  7. Write the pieces in interval notation from left to right: (−∞,−3)∪(−3,4)∪(4,∞).A round parenthesis means that end is left out, and ∪ joins the pieces into one set.
Answer
  • Excluded inputs: x = −3 and x = 4
  • Domain: (−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
  • In words: all real numbers except −3 and 4
Double-check A second way, in two parts. First, multiply the factors back out: (x − 4)(x + 3) = x2 + 3x − 4x − 12 = x2 − x − 12, which matches the bottom, so the factoring is right. Second, test one number from each piece in the bottom: x = −4 gives 16 + 4 − 12 = 8, x = 0 gives −12, and x = 5 gives 25 − 5 − 12 = 8. None is 0, so all three pieces belong to the domain, and f(0) = 1−12 = −112 is a real output.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 6

One number to leave out

Find the domain of f(x) = 4x−6. In plain words: which inputs give an output?

Show the steps and the answer
6(−∞, 6) ∪ (6, ∞)
One open dot at 6 splits the domain into two pieces.
  1. Look at the bottom only: x−6.The top is the number 4. It never causes trouble.
  2. Set the bottom equal to 0 and solve: x−6=0, so x=6.This finds the one input that would make the bottom zero, so it can be thrown out. Adding 6 to both sides leaves x alone.
  3. Plug it back in: 6−6=0, so f(6) would be 4÷0.Division by 0 has no answer, so 6 is not in the domain.
  4. Write everything else: (−∞,6)∪(6,∞).One excluded number cuts the number line into two pieces.
Answer
  • Excluded input: x = 6
  • Domain: (−∞, 6) ∪ (6, ∞)
Double-check Try a number on each side of 6. f(5) = 45−6 = 4−1 = −4 and f(7) = 47−6 = 41 = 4. Both work. Only 6 fails.

Rung 2 of 6

A line on the bottom, a fraction to leave out

Find the domain of g(x) = x+13x+2. In plain words: find the input that breaks the division, then keep all the others.

Show the steps and the answer
  1. Write the bottom and set it equal to 0: 3x+2=0.This finds the input that makes the bottom zero. The top, x + 1, is ignored.
  2. Subtract 2 from both sides: 3x=−2.Subtracting 2 undoes the + 2 and keeps the equation balanced.
  3. Divide both sides by 3: x=−23.Dividing by 3 undoes the multiplying by 3. The answer is a fraction. Leave it exact.
  4. Plug it back in: 3×(−23)+2=−2+2=0.The bottom really is 0 there, so −23 must be left out.
  5. Write the domain: (−∞,−23)∪(−23,∞).One excluded number, two pieces.
Answer
  • Excluded input: x = −23
  • Domain: (−∞, −23) ∪ (−23, ∞)
Double-check g(0) = 0+13×0+2 = 12, so 0 is allowed. g(−1) = −1+13×(−1)+2 = 0−1 = 0, so −1 is allowed too, even though it makes the top 0. Only −23 gives a zero bottom.

Rung 3 of 6

A bottom that is never zero

Find the domain of h(x) = x−3x2+9. In plain words: is there any input that makes the bottom 0?

Show the steps and the answer
no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The graph of y = x2 never dips below the x-axis, so x2 plus a positive number can never be 0.
  1. Write the bottom and set it equal to 0: x2+9=0.Same hunt as always: look for inputs that make the bottom zero.
  2. Subtract 9 from both sides: x2=−9.This asks which number, multiplied by itself, gives −9.
  3. Stop. No real number squared is negative, so this equation has no solution.x2 is 0 or more for every real x, so x2 + 9 is 9 or more. The bottom never reaches 0.
  4. Exclude nothing. Domain: (−∞,∞).With no input that breaks the division, every real number is allowed.
Answer
  • Excluded inputs: none
  • Domain: (−∞, ∞), all real numbers
Double-check Test the tempting numbers. At x = 3 the bottom is 32 + 9 = 18. At x = −3 it is (−3)2 + 9 = 18. At x = 0 it is 9, the smallest value it ever takes. It is never 0. The gotcha: x2 + 9 is not (x − 3)(x + 3). That product is x2 − 9. Also, x = 3 makes the top 0, which gives h(3) = 018 = 0, an ordinary output.

Rung 4 of 6

Pull out a number, then a difference of squares

Find the domain of k(x) = x2x2−18. In plain words: find every input that makes 2x2 − 18 equal 0 and leave those out.

Show the steps and the answer
−33(−∞, −3) ∪ (−3, 3) ∪ (3, ∞)
Both −3 and 3 are left out, because squaring either one gives 9.
  1. Set the bottom equal to 0: 2x2−18=0.This finds the inputs that would force a division by 0.
  2. Factor out the 2: 2(x2−9)=0.Both terms share a factor of 2, since 18 = 2 × 9.
  3. Factor x2−9 as (x−3)(x+3), giving 2(x−3)(x+3)=0.(x − 3)(x + 3) = x2 + 3x − 3x − 9 = x2 − 9. The middle terms cancel.
  4. Set each factor that contains x equal to 0: x−3=0 gives x=3, and x+3=0 gives x=−3.A product is 0 only when a factor is 0. The factor 2 is never 0, so it adds nothing.
  5. Plug both back in: 2×32−18=18−18=0, and 2×(−3)2−18=18−18=0.Both inputs make the bottom zero, so both are thrown out.
  6. Write the domain: (−∞,−3)∪(−3,3)∪(3,∞).Two excluded numbers cut the line into three pieces.
Answer
  • Excluded inputs: x = −3 and x = 3
  • Domain: (−∞, −3) ∪ (−3, 3) ∪ (3, ∞)
Double-check A second route to the same zeros: 2x2 = 18, so x2 = 9, and the two numbers whose square is 9 are 3 and −3. Also test allowed inputs: k(0) = 0−18 = 0, so 0 stays in the domain even though it makes the top 0, and k(1) = 12−18 = −116 works. The gotcha is forgetting −3.

Rung 5 of 6

A common factor that tempts you to cancel

Find the domain of m(x) = x2−4x2−7x+10. In plain words: which inputs does the formula, as written, accept?

Show the steps and the answer
25(−∞, 2) ∪ (2, 5) ∪ (5, ∞)
The input 2 stays excluded even though its factor cancels.
  1. Do not cancel anything yet. Write the original bottom and set it equal to 0: x2−7x+10=0.The domain belongs to the formula as it was given, before any simplifying.
  2. Factor: two numbers that multiply to 10 and add to −7 are −2 and −5, so (x−2)(x−5)=0.(−2) × (−5) = 10 and −2 + (−5) = −7.
  3. Set each factor equal to 0: x=2 and x=5.These are the inputs that make the bottom zero, so they are the ones to throw out.
  4. Plug both back in: 22−7×2+10=4−14+10=0, and 52−7×5+10=25−35+10=0.Both make the original bottom 0.
  5. Notice the top: x2−4=(x−2)(x+2). It shares the factor (x−2) with the bottom. Keep 2 excluded anyway.At x = 2 the original formula is 0 ÷ 0. That asks what number times 0 gives 0, and every number does, so there is no single answer. The canceled form x+2x−5 matches m only at inputs m already accepts.
  6. Write the domain: (−∞,2)∪(2,5)∪(5,∞).Two excluded numbers, three pieces.
Answer
  • Excluded inputs: x = 2 and x = 5
  • Domain: (−∞, 2) ∪ (2, 5) ∪ (5, ∞)
Double-check Plug into the original, not the canceled form. At x = 2: top 22 − 4 = 0, bottom 0, so 0 ÷ 0, no answer. At x = 5: top 25 − 4 = 21, bottom 0, so 21 ÷ 0, no answer. At x = 0: m(0) = −410 = −25, which works. Two excluded numbers and three pieces, as expected.

Rung 6 of 6

A cubic bottom with three excluded inputs

Find the domain of p(x) = x+2x3−4x2−5x. In plain words: find every input that makes the bottom 0, then keep all the rest.

Show the steps and the answer
−105(−∞, −1) ∪ (−1, 0) ∪ (0, 5) ∪ (5, ∞)
Three open dots, at −1, 0 and 5, leave four pieces of domain.
  1. Set the bottom equal to 0: x3−4x2−5x=0.This finds every input that would force a division by 0.
  2. Factor out x: x(x2−4x−5)=0.Every term of the bottom contains at least one x.
  3. Factor the part in parentheses: two numbers that multiply to −5 and add to −4 are −5 and 1. So x(x−5)(x+1)=0.(−5) × 1 = −5 and −5 + 1 = −4.
  4. Set each of the three factors equal to 0: x=0,x−5=0 gives x=5, and x+1=0 gives x=−1.A product is 0 only when a factor is 0. The lone x out front is a factor too, and it is the one people forget.
  5. Plug each back into the original bottom. At 0: 0−0−0=0. At 5: 125−100−25=0. At −1: (−1)3−4×(−1)2−5×(−1)=−1−4+5=0.All three make the bottom zero, so all three are thrown out.
  6. Put them in order, −1, 0, 5, and write the domain: (−∞,−1)∪(−1,0)∪(0,5)∪(5,∞).Three excluded numbers cut the line into four pieces.
Answer
  • Excluded inputs: x = −1, x = 0 and x = 5
  • Domain: (−∞, −1) ∪ (−1, 0) ∪ (0, 5) ∪ (5, ∞)
Double-check Test one number from each of the four pieces in the original bottom. At x = −2: −8 − 16 + 10 = −14. At x = −12: −18 − 1 + 52 = 118. At x = 1: 1 − 4 − 5 = −8. At x = 6: 216 − 144 − 30 = 42. None is 0, so all four pieces belong. Also, x = −2 makes the top 0, and p(−2) = 0−14 = 0 is an ordinary output, so −2 stays in the domain.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: For f(x) = x−2x+5, leaving out x = 2 because it makes the top 0.
Zero divided by a nonzero number is 0, which is a perfectly good output: f(2) = 07 = 0. A zero on top never breaks a fraction.
✓ Instead: Only the bottom matters. x + 5 = 0 gives x = −5, so the domain is (−∞, −5) ∪ (−5, ∞), and 2 stays in.
✗ Not this: For g(x) = 3x2+16, leaving out x = 4 and x = −4 because 16 is 42.
That would be right for x2 − 16. Here the bottom is x2 + 16. At x = 4 it is 16 + 16 = 32, and at x = −4 it is also 32. A square is never negative, so x2 + 16 is always 16 or more.
✓ Instead: Nothing is excluded. The domain is (−∞, ∞).
✗ Not this: For f(x) = 1x−4, solving x − 4 = 0 and answering 'the domain is x = 4'.
Solving bottom = 0 finds the broken input, not the working ones. 4 is the one number that is not in the domain.
✓ Instead: The domain is everything except 4: (−∞, 4) ∪ (4, ∞).
✗ Not this: For f(x) = 1x+7, leaving out x = 7 because a 7 is sitting in the bottom.
7 + 7 = 14, not 0. The excluded number is the one that makes the whole bottom zero, and that usually has the opposite sign from the number you see.
✓ Instead: Solve x + 7 = 0 to get x = −7. Check: −7 + 7 = 0. Domain: (−∞, −7) ∪ (−7, ∞).
✗ Not this: For h(x) = x2−94, leaving out x = 3 and x = −3. This is a case where the rule has nothing to do.
The x2 − 9 is on top. The bottom is the fixed number 4, which is never 0. h(3) = 04 = 0 is an ordinary output.
✓ Instead: No x in the bottom means nothing to exclude. The domain is (−∞, ∞).

Tips and tricks

  • Memory device: 'The top can be zero. The bottom cannot.' Cover the top with your thumb before you start.
  • Check in two directions. Each excluded number, plugged into the original bottom, must give exactly 0. One allowed number from each piece must give a bottom that is not 0.
  • Count your pieces. One excluded number gives two intervals, two give three, three give four. If the count is off, a zero of the bottom is missing or an extra one slipped in.
  • Count your zeros. A bottom whose highest power is x2 has at most two zeros, and one with x3 has at most three, because each zero uses up one factor containing x.
  • Use round parentheses at every excluded number and at −∞ and ∞. A square bracket would say the number is included, and it is not.
  • Watch the sign. The factor (x − 4) excludes 4, and the factor (x + 3) excludes −3. When unsure, plug the number in and see whether the factor becomes 0.
  • Find the domain first, simplify second. Write the excluded numbers at the top of your page so they survive any canceling later.

7 The trap

Canceling before you find the domain. f(x) = x2−1x−1 factors to (x−1)(x+1)x−1 and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.

Flash cards

Say the answer out loud, then flip.

In the vending machine picture, which buttons are the broken ones for a rational function?
  • The inputs that turn the bottom of the fraction into 0.
  • Every other real number works, so the domain is all real numbers except those.
Why do you check only the bottom of a rational function when finding the domain, and never the top?
  • The top is a polynomial. It only adds, subtracts and multiplies, and those work for every real number.
  • The one step that can fail is the division, and it fails only when the bottom equals 0.
Find the domain of f(x) = x+1x2−5x+6.
  • Set the bottom equal to 0: x2 − 5x + 6 = 0.
  • Factor: (x − 2)(x − 3) = 0, so x = 2 or x = 3.
  • Check: 22 − 5 · 2 + 6 = 0 and 32 − 5 · 3 + 6 = 0.
  • Domain: (−∞, 2) ∪ (2, 3) ∪ (3, ∞).
f(x) = x2−9x−3 cancels to x + 3. Is x = 3 in the domain?
  • No. In the formula as it was given, x = 3 makes the bottom 0, and the machine tries 0 ÷ 0, which has no answer.
  • Domain: (−∞, 3) ∪ (3, ∞).
  • Solve bottom = 0 first. Cancel only after that.

Lesson 3 of 7

Vertical asymptotes and holes

Subject: MathematicsLeans on: Factoring a trinomialLeans on: Difference of squaresLeans on: A product equal to zeroLeans on: CancelingLeans on: The domain comes from the original bottomLeans on: Dividing by a small numberLeans on: Signs when dividingLeans on: Dividing by zeroLeans on: Arrow notationOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Picture a long sidewalk. In the last lesson you found the inputs where the bottom of a rational function is zero: places where the sidewalk has no pavement. This lesson sorts those places into two kinds. One kind is a wall. Near it the graph shoots straight up or straight down, hugging an invisible vertical line it never touches. That line is called a vertical asymptote. The other kind is a missing paving stone: one single point is gone, and the path carries on at the same height on the other side. That is called a hole. To tell which one you have, factor the top and the bottom. A factor (x − a) that cancels away, with no copy of it left in the bottom, leaves a hole at x = a. A factor (x − a) that stays in the bottom builds a wall at x = a.

2 Picture it

hole (4, 1/2)−2246−4−224hole (4, 1/2)−2−1123456−4−224
The graph of f(x) = x−4x2−6x+8 has a wall at x = 2, where the curve runs off the page.

Reminder

Reminder: Factoring a trinomial, Difference of squares, A product equal to zero, Canceling, The domain comes from the original bottom, Dividing by a small number, Signs when dividing, Dividing by zero, Arrow notation
  • Factoring a trinomial. For x2 + bx + c, find two numbers that multiply to c and add to b: x2 − 4x + 3 = (x − 1)(x − 3), since (−1)(−3) = 3 and −1 + (−3) = −4.
  • Difference of squares. a2 − b2 = (a − b)(a + b), so x2 − 9 = (x − 3)(x + 3).
  • A product equal to zero. A product is zero only when one of its factors is zero: (x − 1)(x − 3) = 0 gives x = 1 or x = 3.
  • Canceling. Only factors cancel, meaning pieces joined by multiplication: 2(x−3)(x−1)(x−3) = 2x−1. Pieces joined by + or − do not cancel.
  • The domain comes from the original bottom. Find the excluded inputs before you cancel: x−3(x−1)(x−3) excludes both 1 and 3, even though it simplifies to 1x−1.
  • Dividing by a small number. With a positive top, the smaller a positive bottom, the bigger the result: 2 ÷ 0.1 = 20 and 2 ÷ 0.01 = 200.
  • Signs when dividing. A positive divided by a negative is negative: 2 ÷ (−0.01) = −200.
  • Dividing by zero. No number divided by 0 has a value, and 0 ÷ 0 has no value either.
  • Arrow notation. x → 1+ means x moves toward 1 through numbers a little bigger, such as 1.1 and 1.01. x → 1− means through numbers a little smaller, such as 0.9 and 0.99.

3 Why

Near a zero of the bottom that survives canceling, the top is close to some number that is not zero, while the bottom is close to zero. A fixed number divided by a tiny number is huge: 2 ÷ 0.1 = 20, 2 ÷ 0.01 = 200. So the outputs grow without limit. A factor that cancels with no copy of it left in the bottom acts differently. The fraction x−3x−3 equals exactly 1 for every x except 3, so removing it changes nothing anywhere else. Only at x = 3 does the original formula read 0 ÷ 0, which has no value. One point is missing.

4 The rule

Factor the top and the bottom and cancel every common factor.

If x = a still makes the bottom zero after canceling, the line x = a is a vertical asymptote. If x = a makes the original bottom zero but no longer makes the simplified bottom zero, the graph has a hole (a removable discontinuity) at x = a, and the height of the hole is the value of the simplified formula at a.

The same idea, five ways

Say it

the line x equals 1 is a vertical asymptote. Say it: there is a hole at the point 3 comma 1. For the wall you can also say: as x approaches 1 from the right, f of x goes to infinity.

Write it

Near a vertical asymptote the outputs grow without limit, positive or negative, and the graph never touches the line. At a hole the graph is missing exactly one point and is unbroken on both sides of it.

In math
  • vertical asymptote: x = 1
  • as x → 1+, f(x) → ∞
  • as x → 1−, f(x) → −∞
  • hole at (3, 1)
  • f(x)=2x−1,x≠3
Like

A vertical asymptote is a cliff face the path climbs beside and never crosses. A hole is one missing paving stone in a sidewalk that otherwise carries on at the same level.

See it
hole (3, 1)−224−6−4−2246
This is f(x) = 2x−6x2−4x+3.

The same idea, other ways

As a picture

Look at the graph of f(x) = x−4x2−6x+8. The bottom factors as (x − 2)(x − 4), so it is zero at 2 and at 4. At x = 2 the curve runs up on one side and down on the other beside a dashed vertical line: a wall. At x = 4 the curve passes straight through with one dot removed at height 12: a hole. Two zeros of the bottom, two different pictures.

hole (4, 1/2)−2246−4−224
The wall stands at x = 2, where the curve runs off the page.
As a story

You are walking a sidewalk, and the map says the pavement is missing at two addresses. At the first address a cliff face blocks the way. The path bends up the cliff and you cannot follow it across. At the second address one paving stone is gone. You step over the gap and keep walking at the same level. A vertical asymptote is the cliff. A hole is the missing stone.

With small numbers, at the wall

Take 1x−2 and feed it inputs closer and closer to 2. In the table, read the outputs from the outside columns toward the middle: 10, 100, 1000 on the right side and −10, −100, −1000 on the left side. Each step ten times closer to 2 makes the output ten times farther from 0. The outputs never settle on a number. That is what a vertical asymptote looks like in numbers.

input xoutput 1/(x − 2)1.9−101.99−1001.999−10002.00110002.011002.110
Read from the outside columns toward the middle.
With small numbers, at the hole

Now take f(x) = x−4x2−6x+8 and feed it inputs near 4. In the table, the outputs on both sides settle toward 0.5. The column under 4 has no output at all, because the formula reads 0 ÷ 0 there. Outputs that settle toward one number, with one input left out: that is what a hole looks like in numbers.

input xoutput f(x)3.90.5263.990.5034none4.010.4984.10.476
The outputs, rounded to three decimal places, close in on 0.5 from both sides.
As a rule of thumb

Cancels out: hole. Stays down: wall. If the factor that makes the bottom zero cancels completely out of the bottom, you get a hole. If any copy of it stays down in the bottom, you get a vertical asymptote.

QuestionVertical asymptote (wall)Hole (missing point)
What happened to the factor (x − a)?At least one copy stays in the bottom after cancelingIt cancels completely out of the bottom
What do outputs do near a?They grow without limit, toward ∞ or toward −∞They settle toward one number from both sides
What does the graph look like?The curve climbs or dives beside a dashed vertical lineAn unbroken curve with one open circle
How do you write it?As a line: x = aAs a point: (a, b)
Formal namevertical asymptoteremovable discontinuity

Part 1: The vertical asymptote: a wall

A vertical asymptote is an invisible up-and-down line that the graph runs beside and never touches. Think of a cliff face next to a trail. As you walk toward the cliff, the trail turns steeper and steeper until it is climbing almost straight up, or dropping almost straight down. The graph cannot touch the line, because the function has no output at that input.

  • Where: at x = a when the factor (x − a) is still in the bottom after canceling.
  • Written as: the equation x = a. It is a line, so it gets an equation, not a point.
  • Outputs near a: grow without limit, toward ∞ or toward −∞.
  • The two sides may go opposite ways, as in 1x−2, or the same way, as in 1(x−2)2.
  • Arrow notation: as x → a+ or x → a−, f(x) → ∞ or f(x) → −∞.
  • The graph never touches it, because a is not in the domain.
  • A rational function may have none, one or several.
−2246−4−224
The graph of 1x−2 climbs on the right of the dashed vertical line x = 2 and dives on the left of it.

Worked example

A wall with nothing to cancel

Find the vertical asymptote of g(x) = x+1x−4 and describe each side of it in arrow notation. In plain words: find the input where the outputs run away without limit, then say which way they run on each side.

Show the steps and the answer
input xoutput g(x)3.9−493.99−4993.999−49994.00150014.015014.151
On both sides of 4 the outputs grow about ten times larger with each step closer.
  1. Set the bottom equal to 0: x−4=0, so x=4.This finds the one input that makes the bottom zero, the only place the graph can break. Plug back in: 4 − 4 = 0.
  2. Evaluate the top at x = 4: 4+1=5.The top is not zero at 4, so (x − 4) is not a factor of the top and nothing cancels.
  3. State the vertical asymptote: x=4.The factor (x − 4) stays in the bottom. Near 4 the top is about 5 and the bottom is tiny, so the outputs are huge.
  4. Right side: try x=4.01. g(4.01)=5.010.01=501. So as x→4+,g(x)→∞.A little right of 4 the bottom is a small positive number, and a positive top over a small positive bottom is large and positive.
  5. Left side: try x=3.99. g(3.99)=4.99−0.01=−499. So as x→4−,g(x)→−∞.A little left of 4 the bottom is a small negative number, and a positive divided by a negative is negative.
Answer
  • Vertical asymptote: x = 4
  • As x → 4+, g(x) → ∞
  • As x → 4−, g(x) → −∞
Double-check Look at the table. Reading toward the middle from the right, the outputs are 51, 501, 5001: growing and positive. Reading toward the middle from the left, they are −49, −499, −4999: growing and negative. Nothing settles, so x = 4 is a wall, and the signs match the arrows.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The asymptote of g(x) = x+1x−4 is at x = −1, because that is where the top is zero.
A zero of the top gives the output 0, which is an ordinary value: g(−1) = 0−5 = 0. Walls come from zeros of the bottom, not zeros of the top.
✓ Instead: The bottom is zero at x = 4 and nothing cancels, so the vertical asymptote is x = 4.
Tips and tricks
  • Draw a vertical asymptote as a dashed line, so nobody mistakes it for part of the graph.
  • To find which way each side goes, plug in one input to the right of a and one to the left, each closer to a than any other zero of the top or bottom, and read the sign of each output.

Part 2: The hole: one missing point

A hole is a single point removed from an otherwise unbroken graph. Think of one paving stone lifted out of a sidewalk: the path on both sides is at the same level, and only that one spot is gone. Its formal name is removable discontinuity. A discontinuity is a break in a graph. This one is called removable because filling in that one point would repair the break completely.

  • Where: at x = a when the factor (x − a) cancels completely out of the bottom.
  • Written as: the point (a, b), where b is the value of the simplified formula at a.
  • Outputs near a: settle toward the single number b from both sides.
  • At a itself: no output. The original formula reads 0 ÷ 0.
  • On paper: a small open circle on the curve.
  • Formal name: removable discontinuity.
hole (−3, −6)−8−6−4−224−10−8−6−4−22
The graph of x2−9x+3 is the line y = x − 3 with the single point (−3, −6) removed.

Worked example

A line with one point missing

Find the hole of h(x) = x2−9x+3 and say what the rest of the graph looks like. In plain words: find the one input where the formula reads 0 ÷ 0, and the height the graph would have had there.

input xoutput h(x)−3.1−6.1−3.01−6.01−3none−2.99−5.99−2.9−5.9
A table of 5 values of h(x), for x from −3.1 to −2.9.
Show the steps and the answer
input xoutput h(x)−3.1−6.1−3.01−6.01−3none−2.99−5.99−2.9−5.9
The outputs close in on −6 from both sides, and the column under −3 is empty.
  1. Set the bottom equal to 0: x+3=0, so x=−3.This finds the one input the function cannot take. Plug back in: −3 + 3 = 0.
  2. Evaluate the top at x = −3: (−3)2−9=9−9=0.The top and the bottom are both zero, so the formula reads 0 ÷ 0. That signals a shared factor.
  3. Factor the top: x2−9=(x−3)(x+3).It is a difference of squares, x2 − 32.
  4. Cancel (x+3): h(x)=(x−3)(x+3)x+3=x−3, for x≠−3.x+3x+3 is 1 for every x except −3. The note x ≠ −3 records that −3 is still not allowed.
  5. Look at the simplified formula x−3. Its bottom is 1, which is never zero. So x=−3 is a hole, not a wall.The factor that made the bottom zero left the bottom completely.
  6. Find the height: −3−3=−6. The hole is at (−3,−6).The graph follows y = x − 3 everywhere else, so the missing point is where that line would be at x = −3.
Answer
  • Hole: (−3, −6)
  • The graph is the line y = x − 3 with that one point removed
  • Vertical asymptotes: none
Double-check Use the original formula on both sides of −3. h(−2.9) = 8.41−90.1 = −0.590.1 = −5.9 and h(−3.1) = 9.61−9−0.1 = 0.61−0.1 = −6.1. The outputs close in on −6 from both sides and do not blow up. The table shows the same thing even closer in.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: h(−3) = −6, because the simplified formula x − 3 gives −6.
The function h has no value at −3: the original formula reads 0 ÷ 0 there. The number −6 is the height where the point would have been.
✓ Instead: h(−3) is undefined. The hole is at the point (−3, −6).
Tips and tricks
  • The height of a hole always comes from the simplified formula. The original formula can only give you 0 ÷ 0.
  • Draw a hole as a small open circle sitting on the curve.

5 How

  1. Factor the top and the bottom completely.
  2. Set the original bottom equal to 0 and solve. These are the inputs the function cannot take. Every break in the graph sits at one of them.
  3. Cancel every factor that appears in both the top and the bottom. Write the simplified formula, and keep a note of every input you excluded in step 2.
  4. Test each excluded input in the simplified bottom. If the bottom is still zero there, the line x = a is a vertical asymptote.
  5. If the simplified bottom is no longer zero there, the graph has a hole at x = a. Plug a into the simplified formula to get the height b, and write the hole as the point (a, b).
  6. Count. The vertical asymptotes and the holes together must account for every excluded input from step 2.

Sorting each zero of the bottom into a wall or a hole

1
Does x = a make the original bottom zero?
YesThen a is not in the domain and the graph breaks there. Go on.
NoNothing breaks at a. The graph passes through as usual.
↓
2
Does x = a also make the top zero?
YesYou have 0 ÷ 0. Factor the top and the bottom, cancel the common factor, and go on.
NoThe factor that makes the bottom 0 here cannot cancel. Vertical asymptote: the line x = a.
↓
3
After canceling, does x = a still make the bottom zero?
YesVertical asymptote: the line x = a.
NoHole at x = a. Plug a into the simplified formula to get its height.
  1. Factor the top and the bottom completely.
  2. Set the original bottom equal to 0 and list every solution. These inputs are out of the domain.
  3. Cancel the factors shared by the top and the bottom, and write the simplified formula with a note of the excluded inputs.
  4. For each excluded input a, check the simplified bottom. Still zero: vertical asymptote x = a.
  5. Not zero any more: hole at x = a. Plug a into the simplified formula for the height.
  6. Count: walls plus holes must equal the number of excluded inputs.

6 Worked example

Worked example

One wall and one hole in the same function

Find every vertical asymptote and every hole of f(x) = 2x−6x2−4x+3. In plain words: find each input where the graph breaks, and say whether the break is a wall or a single missing point.

hole (3, 1)−224−6−4−2246
The curve is y = 2x−1.
Show the steps and the answer
  1. Factor the top: 2x−6=2(x−3).Both terms share a 2. Pulling it out shows the factor (x − 3).
  2. Factor the bottom: x2−4x+3=(x−1)(x−3).You need two numbers that multiply to 3 and add to −4. Those are −1 and −3.
  3. Set the original bottom equal to 0: (x−1)(x−3)=0, so x=1 or x=3.This finds the inputs that make the bottom zero, the only places the graph can break. Plug back in: 12 − 4(1) + 3 = 0 and 32 − 4(3) + 3 = 9 − 12 + 3 = 0.
  4. Cancel the common factor (x−3): f(x)=2(x−3)(x−1)(x−3)=2x−1, for x≠3.x−3x−3 is 1 for every x except 3. The note x ≠ 3 keeps the record that 3 is still not allowed.
  5. Test x=1 in the simplified bottom: 1−1=0. Still zero, so x=1 is a vertical asymptote.The factor (x − 1) did not cancel. Near 1 the top is 2 and the bottom is tiny, so the outputs are huge.
  6. Test x=3 in the simplified bottom: 3−1=2. Not zero, so there is a hole at x=3.The factor that made the bottom zero at 3 canceled away, so the simplified formula has an ordinary value there.
  7. Find the height of the hole: 23−1=22=1. The hole is at (3, 1).The graph follows the simplified formula everywhere else, so the missing point sits where that formula would have put it.
  8. Describe the wall in arrow notation: as x→1+,f(x)→∞, and as x→1−,f(x)→−∞.A little right of 1 the bottom x − 1 is a small positive number, and 2 over a small positive number is large and positive. A little left of 1 the bottom is a small negative number, so the output is large and negative.
Answer
  • Vertical asymptote: x = 1
  • Hole: (3, 1)
Double-check Use the original formula on a calculator. Near 1: f(1.01) = 2(1.01)−61.012−4(1.01)+3 = −3.98−0.0199 = 200 and f(0.99) = −4.020.0201 = −200. Huge outputs with opposite signs: a wall, with the signs the arrows predicted. Near 3: f(2.9) = −0.2−0.19 ≈ 1.053 and f(3.1) = 0.20.21 ≈ 0.952. Both sit close to 1: a hole at height 1. Two excluded inputs, one wall and one hole, so every one is accounted for.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 6

Nothing to cancel

Find the vertical asymptotes and holes of f(x) = 3x−5. In plain words: where does the bottom hit zero, and is that spot a wall or a missing point?

Show the steps and the answer
246810−8−448
The curve climbs on the right of the dashed vertical line x = 5 and dives on the left of it.
  1. Set the bottom equal to 0: x−5=0, so x=5.This finds the only input that can break the graph. Plug back in: 5 − 5 = 0.
  2. Look for a common factor. The top is the number 3, which has no factor (x−5).Nothing can cancel, so the factor (x − 5) stays in the bottom.
  3. Conclude: x=5 is a vertical asymptote, and there are no holes.A zero of the bottom that survives canceling is a wall.
Answer
  • Vertical asymptote: x = 5
  • Holes: none
Double-check f(5.1) = 30.1 = 30 and f(5.01) = 30.01 = 300. On the other side, f(4.9) = 3−0.1 = −30. The outputs get huge as x closes in on 5: a wall.

Rung 2 of 6

Only a hole

Find the vertical asymptotes and holes of f(x) = x2+2xx. In plain words: find where the bottom is zero, then decide whether the graph blows up there or only loses one point.

hole (0, 2)−4−224−2246
The graph is the line y = x + 2 with the single point (0, 2) removed, shown by the open circle there.
Show the steps and the answer
  1. Set the bottom equal to 0: x=0.The bottom is x itself, so it is zero exactly when x is 0. That is the only excluded input.
  2. Factor the top: x2+2x=x(x+2).Both terms contain an x, so x comes out front. Multiply back to confirm: x · x + x · 2 = x2 + 2x.
  3. Cancel the common factor x: f(x)=x(x+2)x=x+2, for x≠0.xx is 1 for every x except 0.
  4. Look at the simplified formula x+2. Its bottom is 1, not zero, so x=0 is a hole.The factor that made the bottom zero left the bottom completely.
  5. Find the height: 0+2=2. The hole is at (0, 2).The hole sits where the simplified formula would have put the point.
Answer
  • Vertical asymptotes: none
  • Hole: (0, 2)
Double-check From the original formula, f(0.1) = 0.01+0.20.1 = 0.210.1 = 2.1 and f(−0.1) = 0.01−0.2−0.1 = −0.19−0.1 = 1.9. Both sides close in on 2 and nothing blows up: a hole at height 2.

Rung 3 of 6

One wall and one hole

Find the vertical asymptotes and holes of f(x) = x+3x2+x−6. In plain words: find the two inputs that make the bottom zero and sort each one into wall or hole.

Show the steps and the answer
hole−4−2246−4−224
The wall stands at x = 2, and the open circle at (−3, −15), a little below the x-axis.
  1. Factor the bottom: x2+x−6=(x+3)(x−2).You need two numbers that multiply to −6 and add to 1. Those are 3 and −2.
  2. Set the bottom equal to 0: (x+3)(x−2)=0, so x=−3 or x=2.This finds the excluded inputs. Plug back in: (−3)2 + (−3) − 6 = 9 − 3 − 6 = 0 and 22 + 2 − 6 = 0.
  3. Cancel (x+3): f(x)=x+3(x+3)(x−2)=1x−2, for x≠−3.When the whole top cancels, a 1 is left on top, not a 0, because x+3x+3 is 1.
  4. Test x=2 in the simplified bottom: 2−2=0. Still zero, so x=2 is a vertical asymptote.The factor (x − 2) stayed in the bottom.
  5. Test x=−3 in the simplified bottom: −3−2=−5. Not zero, so there is a hole at x=−3.The factor (x + 3) canceled completely.
  6. Find the height: 1−3−2=1−5=−15. The hole is at (−3,−15).Plug the excluded input into the simplified formula, never into the original.
Answer
  • Vertical asymptote: x = 2
  • Hole: (−3, −15)
Double-check Original formula near −3: f(−2.9) = 0.18.41−2.9−6 = 0.1−0.49 ≈ −0.204, close to −15 = −0.2. Near 2: f(2.1) = 5.14.41+2.1−6 = 5.10.51 = 10 and f(2.01) = 5.010.0501 = 100. The outputs settle near −3 and blow up near 2.

Rung 4 of 6

Factor both the top and the bottom

Find the vertical asymptotes and holes of f(x) = x2−5x+4x2−1. In plain words: factor both parts, find the inputs that make the bottom zero, and sort each one.

Show the steps and the answer
−11wallhole(−∞, −1) ∪ (−1, 1) ∪ (1, ∞)
Both −1 and 1 are left out of the domain, but for different reasons.
  1. Factor the top: x2−5x+4=(x−1)(x−4).Two numbers that multiply to 4 and add to −5 are −1 and −4.
  2. Factor the bottom: x2−1=(x−1)(x+1).It is a difference of squares, x2 − 12.
  3. Set the bottom equal to 0: (x−1)(x+1)=0, so x=1 or x=−1.This finds the excluded inputs. Plug back in: 12 − 1 = 0 and (−1)2 − 1 = 0.
  4. Cancel (x−1): f(x)=(x−1)(x−4)(x−1)(x+1)=x−4x+1, for x≠1.x−1x−1 is 1 for every x except 1.
  5. Test x=−1 in the simplified bottom: −1+1=0. Still zero, so x=−1 is a vertical asymptote.The factor (x + 1) stayed in the bottom.
  6. Test x=1 in the simplified bottom: 1+1=2. Not zero, so there is a hole at x=1.The factor (x − 1) canceled completely.
  7. Find the height: 1−41+1=−32=−32. The hole is at (1,−32).The simplified formula gives the height the graph would have had.
Answer
  • Vertical asymptote: x = −1
  • Hole: (1, −32)
Double-check Original formula near 1: f(1.01) = 1.0201−5.05+41.0201−1 = −0.02990.0201 ≈ −1.488 and f(0.99) = 0.9801−4.95+40.9801−1 = 0.0301−0.0199 ≈ −1.513. Both are close to −1.5 = −32. Near −1: f(−0.9) = 0.81+4.5+40.81−1 = 9.31−0.19 = −49 and f(−1.1) = 1.21+5.5+41.21−1 = 10.710.21 = 51. Large outputs with opposite signs: a wall.

Rung 5 of 6

The gotcha, a factor that cancels only partly

Find the vertical asymptotes and holes of f(x) = x−3x2−6x+9. In plain words: a factor will cancel here, so decide carefully whether that makes a hole.

Show the steps and the answer
−22468−4−224
After one copy of the factor cancels.
  1. Factor the bottom: x2−6x+9=(x−3)(x−3)=(x−3)2.Two numbers that multiply to 9 and add to −6 are −3 and −3.
  2. Set the bottom equal to 0: (x−3)2=0, so x=3.This finds the only excluded input. Plug back in: 32 − 6(3) + 9 = 9 − 18 + 9 = 0.
  3. Cancel one copy of (x − 3): f(x)=x−3(x−3)(x−3)=1x−3.One factor on top can cancel only one factor on the bottom. The second copy stays.
  4. Test x=3 in the simplified bottom: 3−3=0. Still zero, so x=3 is a vertical asymptote and there is no hole.A hole needs the factor to leave the bottom completely. Here one copy is still down there.
Answer
  • Vertical asymptote: x = 3
  • Holes: none
Double-check Original formula: f(3.1) = 0.19.61−18.6+9 = 0.10.01 = 10 and f(3.01) = 0.019.0601−18.06+9 = 0.010.0001 = 100. On the left, f(2.9) = −0.18.41−17.4+9 = −0.10.01 = −10. The outputs blow up, so this is a wall even though a factor canceled.

Rung 6 of 6

Three zeros of the bottom

Find the vertical asymptotes and holes of f(x) = 2x2−8x3−x2−6x. In plain words: the bottom is zero at three inputs, so find all three and sort each one into wall or hole.

Show the steps and the answer
−203holewallwall(−∞, −2) ∪ (−2, 0) ∪ (0, 3) ∪ (3, ∞)
Three inputs are left out of the domain.
  1. Factor the top: 2x2−8=2(x2−4)=2(x−2)(x+2).Both terms share a 2. What is left, x2 − 4, is a difference of squares.
  2. Factor the bottom: x3−x2−6x=x(x2−x−6)=x(x−3)(x+2).Every term contains an x, so x comes out front. Then two numbers that multiply to −6 and add to −1 are −3 and 2.
  3. Set the bottom equal to 0: x(x−3)(x+2)=0, so x=0,x=3 or x=−2.This finds the three excluded inputs. Plug back in: 0 − 0 − 0 = 0, then 27 − 9 − 18 = 0, then −8 − 4 + 12 = 0.
  4. Cancel (x+2): f(x)=2(x−2)(x+2)x(x−3)(x+2)=2(x−2)x(x−3), for x≠−2.(x + 2) is the only factor in both the top and the bottom.
  5. Test x=0 in the simplified bottom: 0·(0−3)=0. Still zero, so x=0 is a vertical asymptote.The factor x stayed in the bottom.
  6. Test x=3 in the simplified bottom: 3·(3−3)=0. Still zero, so x=3 is a vertical asymptote.The factor (x − 3) stayed in the bottom.
  7. Test x=−2 in the simplified bottom: (−2)(−2−3)=(−2)(−5)=10. Not zero, so there is a hole at x=−2.The factor (x + 2) canceled completely.
  8. Find the height: 2(−2−2)10=−810=−45. The hole is at (−2,−45).Plug −2 into the simplified formula. The bottom was already worked out as 10.
  9. Count: three excluded inputs, two walls and one hole.Every excluded input must be one or the other, so the count confirms nothing was missed.
Answer
  • Vertical asymptotes: x = 0 and x = 3
  • Hole: (−2, −45)
Double-check Use the original formula. Near −2: f(−2.1) = 2(4.41)−8−9.261−4.41+12.6 = 0.82−1.071 ≈ −0.766 and f(−1.9) = 2(3.61)−8−6.859−3.61+11.4 = −0.780.931 ≈ −0.838. The height −0.8 = −45 lies between them, and nothing blows up. Near 0: f(0.1) = −7.98−0.609 ≈ 13.1 and f(0.01) = −7.9998−0.060099 ≈ 133.1. Near 3: f(3.1) = 11.221.581 ≈ 7.1 and f(3.01) = 10.12020.150801 ≈ 67.1. At both walls, ten times closer gives an output about ten times bigger.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The bottom of f(x) = x−4(x−2)(x−4) is zero at 2 and at 4, so there are vertical asymptotes at x = 2 and x = 4.
The factor (x − 4) is also in the top and cancels. Near 4 the outputs do not blow up: f(3.9) ≈ 0.526 and f(4.1) ≈ 0.476, both close to 12.
✓ Instead: There is a vertical asymptote at x = 2 only. At x = 4 there is a hole, at the point (4, 12).
✗ Not this: x2−4x−2 simplifies to x + 2, so the graph is the full line y = x + 2 and nothing happens at x = 2.
The original formula reads 0 ÷ 0 at x = 2, so 2 is not an input. Canceling changes the look of the formula, not the list of allowed inputs.
✓ Instead: f(x) = x + 2 for x ≠ 2. The graph is the line y = x + 2 with a hole at (2, 4).
✗ Not this: In f(x) = x−3(x−3)2 the factor (x − 3) cancels, so x = 3 is a hole.
The bottom holds two copies of (x − 3) and the top holds one. After canceling, one copy is still in the bottom: f(x) = 1x−3. At x = 3 the simplified bottom is still zero.
✓ Instead: x = 3 is a vertical asymptote. A hole needs the factor to leave the bottom completely.
✗ Not this: To find the height of the hole of f(x) = 2x−6x2−4x+3 at x = 3, plug 3 into the original formula: 00, so the hole is at height 0.
0 ÷ 0 is not 0. It has no value, which is the reason the point is missing in the first place.
✓ Instead: Plug 3 into the simplified formula 2x−1: 22 = 1. The hole is at (3, 1).
✗ Not this: The vertical asymptote of 2x−1 is y = 1.
A vertical line is made of all the points that share one x value, so its equation starts with x. The equation y = 1 describes a flat line.
✓ Instead: The vertical asymptote is the line x = 1.
✗ Not this: In x+2x+5 the x on top cancels the x on the bottom, leaving 25, so the function has a hole.
Only factors cancel, meaning pieces that are multiplied. Here x is added to 2 and added to 5, so nothing cancels.
✓ Instead: The bottom is zero at x = −5 and the top is −3 there, so x = −5 is a vertical asymptote and there is no hole.

Tips and tricks

  • Memory device for a factor (x − a): cancels out of the bottom completely, hole. Any copy stays down, wall.
  • Fast pre-test: plug the excluded input into the top. If the top is not zero there, the bottom's factor for that input cannot cancel and you have a vertical asymptote for certain. If the top is zero too, you have 0 ÷ 0, so factor and cancel before you decide.
  • Check the factoring with numbers. Put inputs closer and closer to a into the original formula, on each side. Outputs that keep growing in size point to a wall. Outputs that settle near one number point to a hole at that height. The factoring decides; the numbers confirm it.
  • Write a vertical asymptote as an equation, x = a, because it is a line. Write a hole as a point, (a, b), because it is one missing dot.
  • Count at the end. Every excluded input is either a wall or a hole. If you excluded three inputs, your walls and holes must add up to three.
  • A graphing calculator often draws straight through a hole, because one missing dot is thinner than a pixel. Trust the algebra over the screen.
  • On paper, draw a vertical asymptote as a dashed line and a hole as a small open circle.

7 The trap

The most common mistake is to stop at the domain: you find the zeros of the bottom and call every one of them a vertical asymptote. Some of them may be holes. Always factor and cancel first, then sort each excluded input by whether it still makes the simplified bottom zero. Still zero means a wall. No longer zero means a hole, with its height taken from the simplified formula.

Flash cards

Say the answer out loud, then flip.

You factored and canceled. How do you tell whether an excluded input x = a is a wall or a missing paving stone?
  • Test a in the simplified bottom.
  • Still zero: a vertical asymptote, the wall.
  • No longer zero: a hole, the missing paving stone.
The graph has a hole at x = a. How do you find the height of the hole?
Plug a into the simplified formula, the one left after canceling. The result is the height b, and the hole is the point (a, b).
Why does the graph shoot up or down near a vertical asymptote?
Near that input the top, after every common factor is canceled, is close to a number that is not zero, and the bottom is close to zero. A fixed number divided by a tiny number is huge: 2 ÷ 0.1 = 20, 2 ÷ 0.01 = 200.
Sort the breaks in f(x) = (x−3)(x+1)(x−3)(x−2).
  • The bottom is zero at x = 3 and x = 2.
  • The factor x − 3 cancels, leaving x+1x−2.
  • x = 2 still makes the bottom zero: vertical asymptote at x = 2.
  • x = 3 no longer does: hole at height 3+13−2 = 4, the point (3, 4).

Lesson 4 of 7

Horizontal and slant asymptotes

Subject: MathematicsLeans on: Degree of a polynomialLeans on: Leading coefficientLeans on: Arrow notationLeans on: Polynomial divisionLeans on: Subtracting a negativeLeans on: Dividing signed numbersLeans on: Reducing a fractionOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Picture a tug of war between the top and the bottom of the fraction while x grows huge. Each side's strength is its highest power of x. If the bottom is stronger, the fraction shrinks toward 0. If the two are equally strong, neither wins, and the outputs settle at one steady number. That steady height is a flat line the graph leans toward far to the left and far to the right: a horizontal asymptote. If the top is stronger by exactly one power, the graph keeps rising or falling, but it leans toward a tilted straight line: a slant asymptote. You can find either line from the formula alone, without plotting a single point.

2 Picture it

(−5, 1.5)(7, 2.5)−8−448−448(−5, 1.5)(7, 2.5)−8−6−4−2246810−448
The graph of y = 2x+1x−1.

Reminder

Reminder: Degree of a polynomial, Leading coefficient, Arrow notation, Polynomial division, Subtracting a negative, Dividing signed numbers, Reducing a fraction
  • Degree of a polynomial. The degree is the highest power of x. 4x3 − x + 7 has degree 3. A nonzero number alone, such as 5, has degree 0.
  • Leading coefficient. The number in front of the highest power of x, with its sign, wherever that term is written. 5 + 2x − 6x2 has leading coefficient −6.
  • Arrow notation. x → ∞ reads x grows without bound, and f(x) → 4 reads the outputs approach 4. Example: as x → ∞, 1x → 0, because 11000 = 0.001.
  • Polynomial division. Divide the leading terms, multiply back, subtract, repeat. (x2 + 5x + 6) ÷ (x + 2): x2 ÷ x = x, subtract x2 + 2x to leave 3x + 6, then 3x ÷ x = 3 and nothing is left. The quotient is x + 3.
  • Subtracting a negative. Subtracting a negative number adds: −5 − (−18) = −5 + 18 = 13.
  • Dividing signed numbers. Different signs give a negative answer and same signs give a positive one: −6 ÷ 3 = −2 and −6 ÷ (−3) = 2.
  • Reducing a fraction. Divide the top and the bottom by the same number: 24 = 12, dividing both by 2.

3 Why

Divide every term on the top and on the bottom by the highest power of x in the bottom. The value of the fraction does not change. For 2x+1x−1 this gives (2 + 1x) ÷ (1 − 1x). You saw with the reciprocal function that 1x goes to 0 when x is huge, so the fraction goes to 2 ÷ 1 = 2. Only the leading terms survive. For a slant asymptote, division rewrites the function as a line plus a leftover fraction with a stronger bottom. The leftover fades to 0, so the graph closes in on the line.

4 The rule

For a top that is not the constant 0, compare the degree of the top with the degree of the bottom.

Top degree < bottom degree: horizontal asymptote y=0. Degrees equal: horizontal asymptote y=leadingcoefficientofthetopleadingcoefficientofthebottom. Top degree = bottom degree +1: no horizontal asymptote, and the slant asymptote is y= the quotient of top ÷ bottom with the remainder dropped. Top degree bigger by 2 or more: neither.

The same idea, five ways

Say it

f of x approaches 2 as x goes to infinity, and also as x goes to negative infinity. For a slant asymptote say: far out, the graph follows the line y equals x plus 2.

Write it

The line y = 2 is a horizontal asymptote of f when the outputs get as close to 2 as you like far to the right and far to the left. A slant asymptote is a tilted line that the graph gets as close to as you like at both far ends.

In math
  • as x → ∞, f(x) → 2
  • as x → −∞, f(x) → 2
  • horizontal asymptote: y = 2
  • slant asymptote: y = mx + b with m ≠ 0, where f(x) − (mx + b) → 0 as x → ∞ and as x → −∞
Like

A plane that levels off at cruising height is following a horizontal asymptote. A plane that settles onto a steady climb path is following a slant asymptote.

See it
input xoutput f(x)−10001.997−1001.97102.3331002.0310002.003
Outputs of f(x) = 2x+1x−1, rounded to three decimals: at both far ends they close in on 2.

The same idea, other ways

As a picture

Look at the far left and the far right edges of the graph of y = 2x+1x−1. The curve does wild things near x = 1, where there is a vertical asymptote. Far away from there it calms down and flattens toward the dashed line y = 2. At x = 100 the height is 20199 ≈ 2.03 (rounded). A horizontal asymptote is a statement about the edges of the picture, not the middle.

(−5, 1.5)(7, 2.5)−8−448−448
Follow the curve to either edge: it settles toward the horizontal line y = 2.
As a story

A hall costs 300 dollars to rent, plus 20 dollars of food per guest. With x guests the total is 20x + 300, so the cost per guest is c(x) = 20x+300x. With 10 guests each person pays 50 dollars. With 100 guests, 23 dollars. With 1000 guests, 20.30 dollars. The 300 dollar rental is spread thinner and thinner, so the cost per guest settles toward 20 dollars. That is the horizontal asymptote y = 20, and it is exactly 20 ÷ 1, the two leading coefficients.

input guests xoutput cost per guest c(x)105010023100020.31000020.03
Read the output row from left to right: the cost per guest drops toward 20 and never goes below it.
A rule of thumb: cover up the small terms

Cover every term except the leading one on the top and on the bottom, then simplify what you see. 8x2−3x+12x2+7 becomes 8x22x2 = 4, so y = 4. 5xx2+4 becomes 5xx2 = 5x, a number over a growing x, so y = 0. x2+3x+5x+1 becomes x2x = x, a tilted line, so the asymptote is slant. Warning: the cover-up shows only the slope of a slant asymptote. The full line here is y = x + 2, and division finds the + 2.

A memory device

BOBO BOTN EATS DC. Bigger On Bottom: y = 0. Bigger On Top: No horizontal asymptote. Exponents Are The Same: Divide Coefficients. Bigger means the higher degree, not the larger numbers. Add one line of your own to finish it: bigger on top by exactly one means divide for the slant asymptote.

BOBO: Bigger On Bottom, y = 0

BOTN: Bigger On Top, No horizontal asymptote

EATS DC: Exponents Are The Same, Divide Coefficients

Bigger on top by exactly 1: divide, slant asymptote y = quotient

Why it must be true

Division rewrites x2+3x+5x+1 as x + 2 + 3x+1. The first part, x + 2, is a line. The second part, 3x+1, is how far the curve sits above that line, a negative number where the curve is below it. At x = 100 that difference is 3101 ≈ 0.03. At x = 1000 it is 31001 ≈ 0.003. The difference never reaches 0, but its size shrinks below any size you name. That shrinking difference is what the word asymptote means. A horizontal asymptote works the same way with a flat line: 2x+1x−1 = 2 + 3x−1, and the difference 3x−1 fades away.

Compare the degreesFar out, the graphAsymptoteSmall example
Top degree < bottom degreesinks toward 0Horizontal: y = 03xx2+1 has y = 0
Top degree = bottom degreelevels off at a numberHorizontal: y = leading coefficient of the top ÷ leading coefficient of the bottom6x2+12x2−5 has y = 3
Top degree = bottom degree + 1follows a tilted lineSlant: y = the quotient of top ÷ bottomx2+1x has y = x
Top degree bigger by 2 or morefollows a curve, not a lineNeitherx3+1x has no horizontal or slant asymptote

Part 1: Bottom-heavy: the top's degree is smaller

When the bottom has the higher power, it outgrows the top. You are sharing a small pile among a crowd that grows faster than the pile. Each share shrinks toward nothing, so the graph sinks onto the x-axis at both far ends.

  • Test: top degree < bottom degree.
  • Asymptote: horizontal, y = 0 (the x-axis).
  • No division and no coefficients are needed.
  • A top that is a nonzero number, such as 5, has degree 0.
(−3, −0.5)(5, 0.5)−448−6−4−2246
The graph of y = 2x−1: degree 0 over degree 1, so both far ends flatten onto the line y = 0.

Worked example

A bottom-heavy function

Find the horizontal asymptote of p(x) = 5xx2+4. In plain words: when x is huge, what height do the outputs settle toward?

Show the steps and the answer
  1. Degree of the top: 5x has x to the first power, so the degree is 1.The degree is the highest power of x, and it measures the top's strength far out.
  2. Degree of the bottom: x2+4 has highest power x2, so the degree is 2.The + 4 does not matter far out. The x2 term decides the strength.
  3. Compare: 1 < 2, so the bottom is stronger.A stronger bottom means dividing by something that outgrows the top.
  4. Write the horizontal asymptote: y=0.Far out the fraction behaves like 5xx2 = 5x, and 5 divided by a huge number is close to 0.
Answer
Horizontal asymptote: y = 0.
Double-check Plug in big inputs: p(100) = 50010004 ≈ 0.050 and p(1000) = 50001000004 ≈ 0.005 (both rounded). The outputs shrink toward 0.

Part 2: Balanced: the degrees are equal

When the top and the bottom have the same highest power, they grow at the same pace. Far out, the powers of x cancel each other, and what remains is the number in front of each. The graph levels off at that ratio.

  • Test: top degree = bottom degree.
  • Asymptote: horizontal, y = leading coefficient of the top ÷ leading coefficient of the bottom.
  • Keep the signs of both coefficients.
  • The height can be a fraction or a negative number. It is 0 only in the bottom-heavy case.
(−6, 3.2)(4, 2.8)−8−44−22468
The graph of y = 3x+2x+1: degree 1 over degree 1, so both far ends level off at y = 3 ÷ 1 = 3.

Worked example

A balanced function

Find the horizontal asymptote of q(x) = 3x+2x+1. In plain words: when x is huge, what steady number do the outputs approach?

Show the steps and the answer
  1. Degree of the top: 3x+2 has degree 1. Degree of the bottom: x+1 has degree 1.Each has x to the first power as its highest power.
  2. Compare: 1=1, so the degrees are equal.Equal strength means the outputs level off at a number that is not 0.
  3. Read the leading coefficients: 3 on the top, 1 on the bottom.A bare x means 1x, so its coefficient is 1.
  4. Divide: 3÷1=3. The horizontal asymptote is y=3.Far out the fraction behaves like 3xx, and the x cancels to leave 3.
Answer
Horizontal asymptote: y = 3.
Double-check Plug in big inputs: q(100) = 302101 ≈ 2.990 and q(1000) = 30021001 ≈ 2.999 (both rounded). The outputs close in on 3.

Part 3: Top-heavy by exactly one: a slant asymptote

When the top's highest power is exactly one above the bottom's, the powers do not fully cancel. One x is left over, so far out the function behaves like a line with a slope. Dividing the top by the bottom tells you exactly which line.

  • Test: top degree = bottom degree + 1.
  • Horizontal asymptote: none.
  • Slant asymptote: y = the quotient of top ÷ bottom. Drop the remainder.
  • The quotient is always a line y = mx + b with m ≠ 0.
(−5, −5.2)(−2, −2.5)(−1, −2)(1, 2)(2, 2.5)(5, 5.2)−8−448−8−448
The dots are points of y = x2+1x.

Worked example

A slant asymptote with a one-term bottom

Find the slant asymptote of r(x) = x2+1x. In plain words: far out, which tilted line does the graph follow?

Show the steps and the answer
  1. Degrees: the top has degree 2 and the bottom has degree 1.2 = 1 + 1, so the top is stronger by exactly one. That is the slant case.
  2. Divide each term of the top by x: x2x+1x=x+1x.When the bottom is a single term, a fraction with a sum on top splits into one fraction per term.
  3. Name the pieces: the quotient is x and the leftover fraction is 1x.The quotient is the part with no x in a bottom.
  4. Drop the leftover. The slant asymptote is y=x.1x goes to 0 when x is huge, so only the line remains.
Answer
  • Slant asymptote: y = x.
  • Horizontal asymptote: none.
Double-check Plug in x = 100: r(100) = 10001100 = 100.01, and the line y = x gives 100. The gap is 0.01, which is 1100, the leftover fraction.

Part 4: Top-heavy by two or more: neither

When the top's highest power beats the bottom's by two or more, the outputs race away faster than any straight line can follow. Far out the graph follows a curve, such as a parabola. There is no horizontal asymptote and no slant asymptote to report.

  • Test: top degree is at least bottom degree + 2.
  • Horizontal asymptote: none.
  • Slant asymptote: none.
  • The graph can still have a vertical asymptote. That comes from the bottom being zero, which is a separate question.
(−2.5, 5.85)(−2, 3.5)(1, 2)(2, 4.5)(2.5, 6.65)−4−2244812
The dots are points of y = x3+1x.

Worked example

A function with neither line

Does s(x) = x3+1x have a horizontal asymptote or a slant asymptote? In plain words: far out, does the graph level off, follow a tilted line, or do neither?

Show the steps and the answer
  1. Degrees: the top has degree 3 and the bottom has degree 1.The highest powers are x3 and x to the first power.
  2. Subtract the degrees: 3−1=2.The size of the gap between the degrees decides the case.
  3. The top is stronger by 2, so there is no horizontal asymptote and no slant asymptote.A horizontal asymptote needs a gap of 0 or a stronger bottom. A slant asymptote needs a gap of exactly 1.
Answer
  • Horizontal asymptote: none.
  • Slant asymptote: none.
Double-check Split the fraction: s(x) = x2 + 1x, so far out the graph follows the curve y = x2. With numbers: s(10) = 100110 = 100.1 and s(100) = 1000001100 = 10000.01. Going 10 times farther out made the output about 100 times larger. A tilted line would make it about 10 times larger, and a horizontal asymptote would hold it steady.

5 How

  1. Find the degree of the top and the degree of the bottom: the highest power of x in each. Write both numbers down. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.
  2. If the top's degree is smaller, the horizontal asymptote is y = 0. Stop.
  3. If the degrees are equal, divide the leading coefficient of the top by the leading coefficient of the bottom, keeping both signs. That number is the height of the horizontal asymptote. Stop.
  4. If the top's degree is exactly one more, divide the top by the bottom with polynomial division. The quotient, without the remainder, is the slant asymptote.
  5. If the top's degree is two or more above the bottom's, report that there is no horizontal asymptote and no slant asymptote.
  6. As a consistency check, try a big input such as x = 100 or x = 1000; the output is usually close to the line you found. The degrees or the division decide the asymptote; the number only checks it.

Finding the horizontal or slant asymptote

1
Is the top's degree smaller than the bottom's degree?
YesThe horizontal asymptote is y = 0. Stop.
NoGo on.
↓
2
Are the two degrees equal?
YesThe horizontal asymptote is y = leading coefficient of the top ÷ leading coefficient of the bottom. Stop.
NoThe top's degree is bigger, so there is no horizontal asymptote. Go on.
↓
3
Is the top's degree exactly one more than the bottom's degree?
YesDivide the top by the bottom. The slant asymptote is y = the quotient. Ignore the remainder.
NoThe top's degree is bigger by 2 or more: no horizontal asymptote and no slant asymptote.
  1. Write down two numbers: the degree of the top and the degree of the bottom. If the function is in factored form, multiply the leading terms of the brackets to find each. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.
  2. Top degree smaller: the horizontal asymptote is y = 0.
  3. Degrees equal: the horizontal asymptote is y = leading coefficient of the top ÷ leading coefficient of the bottom, signs included.
  4. Top degree exactly one more: divide the top by the bottom with polynomial division. The slant asymptote is y = the quotient, with the remainder dropped.
  5. Top degree two or more above: there is no horizontal asymptote and no slant asymptote.
  6. Consistency check: plug in x = 100 or x = 1000. The output is usually near the horizontal asymptote's height, or near the slant line's height at that x. The algebra decides; a single input only checks it.

6 Worked example

Worked example

Equal degrees: reading the horizontal asymptote

Find the horizontal asymptote of f(x) = 8x2−3x+12x2+7. In plain words: when x is huge, positive or negative, what height does the graph settle at?

input xoutput f(x)103.7251003.98410003.998
x: 10, 100, 1000; f(x): 3.725, 3.984, 3.998.
Show the steps and the answer
input xoutput f(x)103.7251003.98410003.998
Outputs of f rounded to three decimals: each step farther out lands closer to 4.
  1. Find the degree of the top: 8x2−3x+1 has highest power x2, so the degree is 2.The degree is the highest power of x. It measures how strong the top is when x is huge.
  2. Find the degree of the bottom: 2x2+7 has highest power x2, so the degree is 2.The same measurement for the other side of the tug of war.
  3. Compare the degrees: 2=2. They are equal.Equal degrees means neither side wins, so the graph levels off at a number that is not 0.
  4. Read the leading coefficients: 8 on the top and 2 on the bottom.Far out, −3x + 1 and + 7 are tiny next to the x2 terms, so the fraction behaves like 8x22x2.
  5. Divide: 8÷2=4. The horizontal asymptote is y=4.In 8x22x2 the x2 on the top and the bottom cancel, leaving 82 = 4.
  6. Say it in arrow notation: as x→∞,f(x)→4, and as x→−∞,f(x)→4.A horizontal asymptote describes both far ends of the graph, and a rational function settles at the same height on both.
Answer
The horizontal asymptote is the line y = 4.
Double-check Plug in big inputs, the columns of the table. f(100) = 7970120007 ≈ 3.984 and f(1000) = 79970012000007 ≈ 3.998 (both rounded). The outputs close in on 4. A third way: divide every term by x2 to get (8 − 3x + 1x2) ÷ (2 + 7x2). The small fractions go to 0, leaving 8 ÷ 2 = 4.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 7

A number over a line

Find the horizontal asymptote of g(x) = 5x+2. In plain words: the input x gets huge. What do the outputs settle toward?

Show the steps and the answer
  1. Degree of the top: 5 has no x at all, so its degree is 0.A plain number does not grow when x grows.
  2. Degree of the bottom: x+2 has x to the first power, so its degree is 1.The highest power of x in the bottom is the first power.
  3. Compare: 0 < 1, so the bottom is stronger.The bottom grows while the top stays at 5.
  4. Write the horizontal asymptote: y=0.A fixed number divided by a larger and larger number shrinks toward 0.
Answer
Horizontal asymptote: y = 0.
Double-check g(1000) = 51002 ≈ 0.005 and g(−1000) = 5−998 ≈ −0.005 (both rounded). Both far ends hug 0.

Rung 2 of 7

Equal degrees, read the two front numbers

Find the horizontal asymptote of h(x) = 9x+23x−4. In plain words: what steady height do the outputs approach when x is huge?

Show the steps and the answer
  1. Degrees: 9x+2 has degree 1 and 3x−4 has degree 1.Each has x to the first power as its highest power.
  2. Compare: the degrees are equal.Equal degrees means the answer is a ratio of leading coefficients.
  3. Leading coefficients: 9 on the top, 3 on the bottom.These are the numbers in front of the highest power on each side.
  4. Divide: 9÷3=3. The horizontal asymptote is y=3.Far out the fraction behaves like 9x3x = 3.
Answer
Horizontal asymptote: y = 3.
Double-check h(100) = 902296 ≈ 3.047 and h(1000) = 90022996 ≈ 3.005 (both rounded). The outputs close in on 3.

Rung 3 of 7

Leading terms that are not written first

Find the horizontal asymptote of k(x) = 5+2x−6x23x2+x+1. In plain words: what height does the graph settle at far out?

Show the steps and the answer
  1. Find the highest power on the top: it is x2, in the term −6x2. The degree is 2.The leading term is the one with the highest power, wherever it is written. Here it is written last.
  2. Find the highest power on the bottom: x2, in the term 3x2. The degree is 2.The bottom is already written with its highest power first.
  3. Compare: the degrees are equal.So the answer is the ratio of the leading coefficients.
  4. Leading coefficients: −6 on the top, with its sign, and 3 on the bottom.The sign belongs to the coefficient. Dropping it would put the asymptote on the wrong side of the x-axis.
  5. Divide: −6÷3=−2. The horizontal asymptote is y=−2.A negative divided by a positive is negative.
Answer
Horizontal asymptote: y = −2.
Double-check k(100) = −5979530101 ≈ −1.986 and k(1000) = −59979953001001 ≈ −1.999 (both rounded). The outputs close in on −2. The tempting answer 5 ÷ 3, from the first written numbers, is nowhere near these values.

Rung 4 of 7

Factored form

Find the horizontal asymptote of m(x) = (2x−1)(x+3)(x−2)(4x+5). In plain words: what height do the outputs settle at when x is huge?

Show the steps and the answer
  1. Leading term of the top: multiply the x terms of the two brackets, 2x·x=2x2. The degree is 2 and the leading coefficient is 2.When brackets are multiplied out, the highest power comes only from multiplying the highest terms together. You do not need the rest of the expansion.
  2. Leading term of the bottom: x·4x=4x2. The degree is 2 and the leading coefficient is 4.The same shortcut on the bottom.
  3. Compare: the degrees are equal.So divide the leading coefficients.
  4. Divide: 2÷4=12. The horizontal asymptote is y=12.24 reduces to 12. A fraction is a perfectly good height for a horizontal line.
Answer
Horizontal asymptote: y = 12.
Double-check Multiplying out fully gives 2x2+5x−34x2−3x−10, with the same leading coefficients 2 and 4. With numbers: m(100) = 2049739690 ≈ 0.516 and m(1000) = 20049973996990 ≈ 0.502 (both rounded). The outputs close in on 0.5.

Rung 5 of 7

A first slant asymptote

Find the slant asymptote of n(x) = x2+3x+5x+1. In plain words: far out, which tilted line does the graph follow?

(−9, −7.375)(−4, −3)(−2, −3)(0, 5)(2, 5)(7, 9.375)−8−448−8−44812
The dots are points of n(x).
Show the steps and the answer
  1. Degrees: the top has degree 2 and the bottom has degree 1. The top's degree is exactly one more.That is the slant case: there is no horizontal asymptote, and division gives the line.
  2. Divide the leading terms: x2÷x=x. Write x as the first piece of the quotient.Polynomial division starts by asking what times the bottom's leading term gives the top's leading term.
  3. Multiply back and subtract: x(x+1)=x2+x, and (x2+3x+5)−(x2+x)=2x+5.Subtracting removes the x2 term and shows what is still left to divide.
  4. Divide the leading terms again: 2x÷x=2. The quotient is now x+2.The same question, asked of what is left.
  5. Multiply back and subtract: 2(x+1)=2x+2, and (2x+5)−(2x+2)=3.3 has degree 0, lower than the bottom's degree 1, so the division stops. The remainder is 3.
  6. Rewrite the function: n(x)=x+2+3x+1.Top ÷ bottom equals the quotient plus the remainder over the bottom.
  7. Drop the leftover fraction. The slant asymptote is y=x+2.3x+1 has the stronger bottom, so it goes to 0 far out and only the line remains.
Answer
  • Slant asymptote: y = x + 2.
  • Horizontal asymptote: none.
Double-check Multiply back: (x + 2)(x + 1) + 3 = x2 + 3x + 2 + 3 = x2 + 3x + 5, the original top. With numbers: n(100) = 10305101 ≈ 102.03 (rounded), and the line gives 100 + 2 = 102. The gap is 3101 ≈ 0.03.

Rung 6 of 7

A missing term and a leading coefficient

Find the slant asymptote of t(x) = 2x2−5x−3. In plain words: far out, which tilted line does the graph follow?

Show the steps and the answer
  1. Degrees: top 2, bottom 1. The top's degree is exactly one more, so divide.A gap of exactly one means a slant asymptote.
  2. Rewrite the top with a placeholder: 2x2+0x−5.The top has no x term. Writing 0x keeps like terms lined up during the subtraction.
  3. Divide the leading terms: 2x2÷x=2x. Multiply back: 2x(x−3)=2x2−6x. Subtract: (2x2+0x−5)−(2x2−6x)=6x−5.0x − (−6x) = 6x. Subtracting a negative adds.
  4. Divide the leading terms again: 6x÷x=6. The quotient is now 2x+6. Multiply back: 6(x−3)=6x−18. Subtract: (6x−5)−(6x−18)=13.−5 − (−18) = −5 + 18 = 13. A plain number has lower degree than the bottom, so the division stops.
  5. Rewrite the function: t(x)=2x+6+13x−3.Quotient plus remainder over the bottom.
  6. Drop the leftover fraction. The slant asymptote is y=2x+6.13x−3 goes to 0 far out.
Answer
  • Slant asymptote: y = 2x + 6.
  • Horizontal asymptote: none.
Double-check Multiply back: (2x + 6)(x − 3) + 13 = 2x2 − 6x + 6x − 18 + 13 = 2x2 − 5, the original top. With numbers: t(100) = 1999597 ≈ 206.13 (rounded), and the line gives 2(100) + 6 = 206. The gap is 1397 ≈ 0.13.

Rung 7 of 7

A degree 3 top over a degree 2 bottom

Find the slant asymptote of w(x) = x3−2x2+4x2+1. In plain words: far out, which tilted line does the graph follow?

Show the steps and the answer
  1. Degrees: top 3, bottom 2. The top's degree is exactly one more, so divide.The slant case depends on the gap between the degrees being 1, not on the degrees being 2 and 1.
  2. Rewrite the top with a placeholder: x3−2x2+0x+4.The top has no x term, and the subtraction is safer with every power present.
  3. Divide the leading terms: x3÷x2=x. Multiply back: x(x2+1)=x3+x. Subtract: (x3−2x2+0x+4)−(x3+x)=−2x2−x+4.0x − x = −x. The x3 terms cancel, as they should.
  4. Divide the leading terms again: −2x2÷x2=−2. The quotient is now x−2. Multiply back: −2(x2+1)=−2x2−2. Subtract: (−2x2−x+4)−(−2x2−2)=−x+6.4 − (−2) = 6. The leftover −x + 6 has degree 1, lower than the bottom's degree 2, so the division stops here.
  5. Rewrite the function: w(x)=x−2+−x+6x2+1.Quotient plus remainder over the bottom. The remainder may contain x, as long as its degree is below the bottom's.
  6. Drop the leftover fraction. The slant asymptote is y=x−2.The leftover has degree 1 over degree 2, so its bottom is stronger and it goes to 0 far out.
Answer
  • Slant asymptote: y = x − 2.
  • Horizontal asymptote: none.
Double-check Multiply back: (x − 2)(x2 + 1) + (−x + 6) = x3 + x − 2x2 − 2 − x + 6 = x3 − 2x2 + 4, the original top. With numbers: w(100) = 98000410001 ≈ 97.99 (rounded), and the line gives 100 − 2 = 98. The curve sits about 0.01 below the line.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: For 3x+1x2−4, dividing the leading coefficients to get y = 3 ÷ 1 = 3.
The degrees are 1 and 2, not equal. The ratio of leading coefficients applies only when the degrees match. Here the bottom is stronger. A big input shows it: the value at x = 100 is 3019996 ≈ 0.030, nowhere near 3.
✓ Instead: Top degree < bottom degree, so the horizontal asymptote is y = 0.
✗ Not this: For 5+2x1−4x, dividing the first written numbers to get y = 5 ÷ 1 = 5.
The leading coefficient belongs to the highest power of x, not to whatever is written first. The leading terms are 2x and −4x. At x = 100 the value is 205−399 ≈ −0.514, nowhere near 5.
✓ Instead: y=2÷(−4)=−12.
✗ Not this: For x2+3x+5x+1, covering the small terms to get x2x = x and writing the slant asymptote as y = x.
The cover-up finds the slope but loses the constant. At x = 100 the function is about 102.03, while y = x gives 100. That gap of about 2 never closes, so y = x is not an asymptote.
✓ Instead: Divide fully: the quotient is x + 2, so the slant asymptote is y = x + 2.
✗ Not this: A graph can never touch or cross its horizontal asymptote.
A horizontal asymptote only describes the far ends. In the middle the graph is free. xx2+1 has horizontal asymptote y = 0, yet at x = 0 its value is 01 = 0, so the graph sits on that line there.
✓ Instead: Only a vertical asymptote can never be crossed, because the function has no output there. A horizontal asymptote or a slant asymptote may be crossed in the middle of the graph.
✗ Not this: x3+1x is top-heavy, so it has a slant asymptote.
A slant asymptote needs the top's degree to be exactly one more. Here the gap is 3 − 1 = 2, and far out the graph follows the parabola y = x2, which is a curve.
✓ Instead: No horizontal asymptote and no slant asymptote.
✗ Not this: Writing the slant asymptote of 2x2−5x−3 as y = 2x + 6 + 13x−3.
That whole expression is the function itself, rewritten. An asymptote is a straight line, and the leftover fraction is the part that fades to 0.
✓ Instead: Keep only the quotient: y = 2x + 6.

Tips and tricks

  • Memory device, BOBO BOTN EATS DC: Bigger On Bottom, y = 0. Bigger On Top, No horizontal asymptote. Exponents Are The Same, Divide Coefficients. Then add your own last line: bigger on top by exactly one, divide for the slant asymptote.
  • Check any answer for consistency with a big input. Plug in x = 100 or x = 1000. The output usually lands close to the horizontal asymptote's height, or close to the slant line's height at that x. If it does not, look again at the algebra, which is what decides.
  • Strength means degree, not the size of the numbers. 1000xx2 equals 1000x, which still sinks to 0.
  • A rational function has at most one of these two lines, never both, and the same line serves the far left and the far right.
  • Canceling a common factor does not change this answer, because it lowers both degrees by the same amount. (x−1)(x+2)(x−1)(x+5) and x+2x+5 both give y = 1.
  • Write the answer as an equation of a line, not as a bare number. A horizontal asymptote is y = a number, a vertical asymptote is x = a number, and a slant asymptote is y = mx + b.
  • If the division leaves remainder 0, the bottom canceled completely. The graph is then the quotient polynomial itself with a hole, a removable discontinuity, wherever the bottom was zero. For example, x2−4x−2 is the line y = x + 2 with a hole at x = 2.

7 The trap

Dividing the leading coefficients without first comparing the degrees. The ratio of leading coefficients is the horizontal asymptote only when the two degrees are equal. For 3x+1x2−4 the tempting answer y = 3 is wrong: the bottom is stronger, so the answer is y = 0. Write the two degrees down before you touch the coefficients.

Flash cards

Say the answer out loud, then flip.

Before you look for a horizontal or slant asymptote, what two numbers do you write down first?
  • The degree of the top and the degree of the bottom: the highest power of x in each.
  • Think of a tug of war. Each side's strength is its highest power of x, and the stronger side decides what the graph does when x is huge.
What is the horizontal asymptote of 6x2+12x2−5?
  • y = 3.
  • The degrees are equal (both 2), so the tug of war is a tie.
  • Divide the leading coefficients: 62 = 3.
For 7x+2x3−1, why is y = 7 the wrong horizontal asymptote, and what is the right one?
  • The right answer is y = 0.
  • The top has degree 1 and the bottom has degree 3, so the bottom is stronger and the fraction shrinks toward 0.
  • Dividing leading coefficients works only when the two degrees are equal.
When does a graph have a slant asymptote, and how do you find it?
  • When the top's degree is exactly one more than the bottom's degree.
  • Divide the top by the bottom and keep the quotient without the remainder.
  • For x2+3x+1x+1 the quotient is x + 2 with remainder −1, so the slant asymptote is y = x + 2.

Lesson 5 of 7

Intercepts of a rational function

Subject: MathematicsLeans on: Dividing with zeroLeans on: Zero product propertyLeans on: The domain of a rational functionLeans on: Holes and vertical asymptotesLeans on: Factoring x² + bx + cLeans on: Difference of squaresLeans on: Signs when dividingLeans on: Writing a pointOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Picture a map with two straight roads. One runs left to right: the x-axis. One runs up and down: the y-axis. The graph of a function is a hiking trail drawn on that map. An intercept is a spot where the trail meets a road, crossing it or touching it. The y-intercept is where the trail meets the up and down road. Every spot on that road has x equal to 0, so you find it by putting 0 in for x. An x-intercept is where the trail meets the left to right road. Every spot on that road has height 0, so you ask which inputs make the fraction equal 0. Those are the inputs that make the top 0, as long as the bottom is not 0 there too.

2 Picture it

(0, −2)(2, 0)−44−448(0, −2)(2, 0)−6−4−2246−448
The graph of f(x) = x−2x+1 crosses the y-axis at (0, −2), where x is 0, and the x-axis at (2, 0), where…

Reminder

Reminder: Dividing with zero, Zero product property, The domain of a rational function, Holes and vertical asymptotes, Factoring x2 + bx + c, Difference of squares, Signs when dividing, Writing a point
  • Dividing with zero. 0 ÷ 5 = 0, because 0 shared among 5 is 0 each. 5 ÷ 0 and 0 ÷ 0 are undefined: there is no answer.
  • Zero product property. If two things multiply to 0, at least one of them is 0. From (x − 3)(x + 2) = 0 you get x − 3 = 0 or x + 2 = 0, so x = 3 or x = −2.
  • The domain of a rational function. Every real number except the inputs that make the bottom 0. For 1x−4 the domain is every x except 4.
  • Holes and vertical asymptotes. A factor (x − a) that cancels from top and bottom with no copy of it left in the bottom leaves a hole at x = a, also called a removable discontinuity. A real zero of the bottom that remains after canceling gives a vertical asymptote.
  • Factoring x2 + bx + c. Find two numbers that multiply to c and add to b. For x2 − x − 6 they are −3 and 2, so x2 − x − 6 = (x − 3)(x + 2).
  • Difference of squares. a2 − b2 = (a − b)(a + b). So x2 − 4 = (x − 2)(x + 2).
  • Signs when dividing. A negative divided by a negative is positive: −6−4 = 64 = 32. A positive divided by a negative is negative: 8−2 = −4.
  • Writing a point. A point is (x, y): input first, output second. (3, 0) is on the x-axis. (0, 3) is on the y-axis.

3 Why

A fraction is a division: top ÷ bottom. Zero divided by any nonzero number is 0, and no other division gives 0. If the top is 5, no bottom can turn it into 0. So the output is 0 only where the top is 0. But if the bottom is 0 at that same input, the division has no answer, the input is not in the domain, and the graph has no point there. So the top finds the candidates and the bottom can strike them out. The y-intercept uses x = 0 because every point on the y-axis has x-coordinate 0.

4 The rule

Let f(x)=p(x)q(x) be a rational function, where p(x) is the top and q(x) is the bottom.

y-intercept: the point (0, f(0)), when q(0) ≠ 0. When q(0) = 0 there is no y-intercept.
x-intercepts: every point (a, 0) where p(a) = 0 and q(a) ≠ 0. A zero of the top that also makes the bottom 0 is never an x-intercept.

The same idea, five ways

Say it

the y-intercept is f of zero. The x-intercepts are where the top is zero and the bottom is not.

Write it

The graph crosses the y-axis at the point whose input is 0, if 0 is in the domain. The graph meets the x-axis at each input in the domain that makes the top equal to 0.

In math
  • y-intercept: (0, f(0)), when q(0) ≠ 0
  • x-intercepts: (a, 0), where p(a) = 0 and q(a) ≠ 0
  • p(x)q(x) = 0 exactly when p(x) = 0 and q(x) ≠ 0
Like

A trail on a map with two roads. The y-intercept is where the trail meets the up and down road. The x-intercepts are where it meets the left to right road.

See it

y-intercept: put x = 0

the point is (0, f(0))

x-intercepts: set the top = 0

keep a only if the bottom ≠ 0 at a

the point is (a, 0)

top 0 and bottom 0: no intercept

The same idea, other ways

In a table of values

Here is f(x) = x−2x+1 at four inputs. Look at the column under the input 0: the output is −2, so the y-intercept is (0, −2). Now look along the output row for a 0. It sits under the input 2, so the x-intercept is (2, 0). The input −1 is missing from the table on purpose: it makes the bottom 0, so f(−1) is undefined.

input xoutput f(x)−42−240−220↓ evaluate: input given, read the output below it↑ solve: output given, read every input above it
The column under input 0 gives the y-intercept, and the 0 in the output row points up to the x-intercept.
As a story

Think of the top as a pot of money and the bottom as the number of people sharing it. Each share is 0 dollars only when the pot is empty. A pot of 5 dollars never gives shares of 0, no matter how many people share. And if 0 people show up, there is no share to talk about at all, even when the pot is empty too. Empty pot with people present: an x-intercept. Nobody present: no point on the graph.

With small numbers

0 ÷ 5 = 0. That is the only kind of division that gives 0. 5 ÷ 2 = 2.5, not 0. 5 ÷ 0 is undefined. 0 ÷ 0 is undefined. Now use f(x) = x−2x+1. At x = 2 you get 03 = 0, so the graph is on the x-axis. At x = 5 you get 36 = 12, not 0. At x = −1 you get −30, which is undefined.

Why it must be true

Suppose pq = 0 and q is not 0. Multiply both sides by q. The left side becomes p and the right side becomes 0 · q = 0. So p = 0. Going the other way, if p = 0 and q is not 0, then 0q = 0. So a fraction equals 0 exactly when its top is 0 and its bottom is not.

Top at x = aBottom at x = af(a)What the graph does at x = a
0not 00x-intercept at (a, 0)
not 00undefinedvertical asymptote x = a
00undefineda hole or a vertical asymptote, never an intercept
not 0not 0a number that is not 0an ordinary point, off the x-axis

Part 1: The y-intercept

The y-intercept is the one spot where the graph crosses the y-axis. On the y-axis you have not moved left or right at all, so x is 0. Put 0 in for every x and work out the fraction. The answer is the height of the crossing.

  • How to find it: compute f(0).
  • How to write it: the point (0, f(0)).
  • How many: one at most, because the input 0 can give only one output.
  • When there is none: when x = 0 makes the bottom 0.
  • Shortcut: with top and bottom multiplied out, f(0) is the constant term of the top over the constant term of the bottom.
(0, 3)−8−44−448
The graph of f(x) = 2x+6x+2 crosses the y-axis at the one point (0, 3).

Worked example

A y-intercept from one substitution

Find the y-intercept of f(x) = 2x+6x+2. In plain words: the input is 0. Find the output and write the point.

Show the steps and the answer
  1. Check that 0 is allowed. The bottom at x=0 is 0+2=2.A y-intercept exists only when 0 is in the domain. The bottom is 2, and 2 ≠ 0, so 0 is in the domain.
  2. Put 0 in for every x: f(0)=2·0+60+2=62.Every point on the y-axis has x = 0, and 2 · 0 = 0.
  3. Divide: 62=3.6 ÷ 2 = 3.
  4. Write the point: (0, 3).An intercept is a point. The input 0 goes first and the output 3 goes second.
Answer
y-intercept: (0, 3)
Double-check Second way: factor the top first. 2x + 6 = 2(x + 3), so f(0) = 2(0+3)0+2 = 62 = 3. The picture agrees: the curve crosses the y-axis at height 3.
Tips and tricks
  • If the bottom has no constant term, as in x2 − x, then x = 0 makes the bottom 0 and there is no y-intercept.

Part 2: The x-intercepts

An x-intercept is a spot where the graph touches or crosses the x-axis. On the x-axis the height is 0, so the output of the function is 0. A fraction has the value 0 only when its top is 0. So you solve top = 0, then make sure the bottom is not 0 at each answer.

  • How to find them: set the top equal to 0 and solve, then test each answer in the original bottom.
  • How to write one: the point (a, 0).
  • How many: when the top is not the constant 0, none, one, or several, and never more than the degree of the top. A top that is the constant 0 puts an x-intercept at every input in the domain.
  • When there are none: when the top is never 0, or when every zero of the top also makes the bottom 0.
(−4, 0)−8−44−8−44812
The graph of g(x) = 2x+8x+1 crosses the x-axis at (−4, 0), the input where the top is 0.

Worked example

An x-intercept from the top

Find every x-intercept of g(x) = 2x+8x+1. In plain words: the output is 0. Find every input that gives it.

Show the steps and the answer
  1. Set the top equal to 0: 2x+8=0.A fraction is 0 only when its top is 0. This step finds the only inputs that could give an output of 0.
  2. Subtract 8 from both sides: 2x=−8. Then divide both sides by 2: x=−4.Undo the + 8 first, then undo the multiplying by 2. Plug back: 2(−4) + 8 = −8 + 8 = 0, so the top is 0 at x = −4.
  3. Test the bottom at x = −4: −4+1=−3.A candidate counts only when the bottom is not 0 there. The bottom is −3, and −3 ≠ 0, so x = −4 stays.
  4. Write the point: (−4,0).The input −4 goes first and the output 0 goes second.
Answer
x-intercept: (−4, 0)
Double-check Put −4 into the whole formula: g(−4) = 2(−4)+8−4+1 = 0−3 = 0. The output is 0, so the point is on the x-axis.
Tips and tricks
  • The bottom never creates an x-intercept. It can only remove one.

5 How

  1. Factor the top and the bottom. Use the original bottom to list the domain: every x except the ones that make the bottom 0.
  2. For the y-intercept, ask whether 0 is in the domain. If it is, compute f(0) and write the point (0, f(0)). If it is not, write: no y-intercept.
  3. For the x-intercepts, set the top equal to 0 and solve. These answers are the candidates.
  4. Test each candidate in the original bottom. Cross out any candidate that makes the bottom 0.
  5. Write each surviving candidate a as the point (a, 0).
  6. Check: put each surviving candidate into the original formula. You should get 0 over a number that is not 0.

Finding the intercepts of a rational function

1
Does x = 0 make the bottom 0?
YesThere is no y-intercept. The graph never touches the y-axis.
NoCompute f(0). The y-intercept is (0, f(0)).
↓
2
Does the top equal 0 for any real number x?
YesList every such x as a candidate and go on.
NoThere are no x-intercepts. Stop.
↓
3
Does this candidate also make the original bottom 0?
YesThrow it out. The input is not in the domain, so the graph has a hole or a vertical asymptote there, not an intercept.
NoKeep it. The point (candidate, 0) is an x-intercept.
  1. Factor the top and the bottom.
  2. Set the original bottom equal to 0 and solve. Those inputs are out of the domain. Keep the list beside you.
  3. y-intercept: if 0 is not on that list, compute f(0) and write (0, f(0)). If 0 is on the list, there is no y-intercept.
  4. x-intercepts: set the top equal to 0 and solve to get the candidates.
  5. Cross out every candidate that is on the list from step 2.
  6. Write each survivor a as (a, 0), then check it in the original formula.

6 Worked example

Worked example

Both intercepts when a factor cancels

Find the y-intercept and every x-intercept of f(x) = x2−x−6x2−4. In plain words: first, the input is 0, find the output. Second, the output is 0, find every input that gives it.

Show the steps and the answer
(0, 1.5)(3, 0)hole (−2, 5/4)−4−2246−4−2246
The curve crosses the y-axis at (0, 32) and the x-axis at (3, 0), and the open circle at (−2, 54) is the hole.
  1. Factor the top: x2−x−6=(x−3)(x+2).Two numbers that multiply to −6 and add to −1 are −3 and 2. Multiply back to be sure: x2 + 2x − 3x − 6 = x2 − x − 6.
  2. Factor the bottom: x2−4=(x−2)(x+2).It is a difference of squares: x2 − 22 = (x − 2)(x + 2).
  3. Set the bottom equal to 0: (x−2)(x+2)=0, so x=2 or x=−2. The domain is every real number except −2 and 2.This finds the inputs that would make the bottom zero, so we can throw them out. Plug back: 22 − 4 = 0 and (−2)2 − 4 = 0.
  4. y-intercept: 0 is in the domain, so compute f(0)=02−0−602−4=−6−4=32. The point is (0,32).Every point on the y-axis has x = 0. A negative divided by a negative is positive, and 64 reduces to 32 when top and bottom are both divided by 2.
  5. x-intercept candidates: set the top equal to 0. (x−3)(x+2)=0, so x=3 or x=−2.A fraction is 0 only when its top is 0. This step finds the only inputs that could give an output of 0.
  6. Test x=3 in the original bottom: 32−4=5. Keep x=3.5 ≠ 0, so 3 is in the domain and f(3) = 05 = 0.
  7. Test x=−2 in the original bottom: (−2)2−4=0. Throw out x=−2.The bottom is 0, so −2 is not in the domain. f(−2) would be 0 ÷ 0, which is undefined.
  8. See what the graph does at x=−2. Cancel the common factor: f(x)=x−3x−2 for x≠−2. Put −2 into this shorter form: −2−3−2−2=−5−4=54. The graph has a hole at (−2,54).This factor cancels with no copy of it left in the bottom, so it gives a hole, also called a removable discontinuity. The hole sits at height 54, above the x-axis, so the graph does not meet the x-axis there.
  9. Write the x-intercept: (3, 0).3 is the only candidate that survived the test.
Answer
  • y-intercept: (0, 32)
  • x-intercept: (3, 0)
  • Not an intercept: x = −2, where the graph has a hole at (−2, 54)
Double-check Second way for the y-intercept: use the shorter form x−3x−2 at x = 0. It gives −3−2 = 32, the same value. For the x-intercept, put 3 into the original formula: 9−3−69−4 = 05 = 0. For x = −2, the original formula gives 4+2−64−4 = 00, which is undefined, so there is no point there.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 6

One of each, nothing to cancel

Find the intercepts of f(x) = x−4x+2. In plain words: find the output when the input is 0, then find every input whose output is 0.

Show the steps and the answer
(0, −2)(4, 0)−8−448−8−448
The graph of f(x) = x−4x+2 crosses the y-axis at (0, −2) and the x-axis at (4, 0).
  1. Set the bottom equal to 0: x+2=0, so x=−2. The domain is every x except −2.This finds the one input that would make the bottom zero, so we can throw it out. Plug back: −2 + 2 = 0.
  2. y-intercept: f(0)=0−40+2=−42=−2. The point is (0,−2).0 is in the domain, and every point on the y-axis has x = 0.
  3. Set the top equal to 0: x−4=0, so x=4.The output is 0 only where the top is 0. Plug back: 4 − 4 = 0.
  4. Test the bottom at x=4: 4+2=6. Keep x=4. The point is (4, 0).6 ≠ 0, so 4 is in the domain.
Answer
  • y-intercept: (0, −2)
  • x-intercept: (4, 0)
Double-check Put 4 into the whole formula: 4−44+2 = 06 = 0. The picture shows the same two crossings.

Rung 2 of 6

A top that is never zero

Find the intercepts of f(x) = 8x−2. In plain words: find the output when the input is 0, then find every input whose output is 0.

Show the steps and the answer
(0, −4)−448−8−448
The graph of f(x) = 8x−2 crosses the y-axis at (0, −4) and never touches the x-axis.
  1. Set the bottom equal to 0: x−2=0, so x=2. The domain is every x except 2.This finds the input to throw out. Plug back: 2 − 2 = 0.
  2. y-intercept: f(0)=80−2=8−2=−4. The point is (0,−4).0 is in the domain. A positive divided by a negative is negative.
  3. Look at the top. It is the number 8. It has no x in it, so it is never 0.The output can be 0 only where the top is 0, and 8 is never 0.
  4. Write: no x-intercepts.There are no candidates to test.
Answer
  • y-intercept: (0, −4)
  • x-intercepts: none
Double-check Second way: try to solve 8x−2 = 0. Multiply both sides by (x − 2). You get 8 = 0, which is false, so no input works. This fits the horizontal asymptote y = 0: the curve gets close to the x-axis but never reaches it.

Rung 3 of 6

Two x-intercepts

Find the intercepts of f(x) = x2−4x+3x+3. In plain words: find the output when the input is 0, then find every input whose output is 0.

Show the steps and the answer
  1. Set the bottom equal to 0: x+3=0, so x=−3. The domain is every x except −3.This finds the input to throw out. Plug back: −3 + 3 = 0.
  2. y-intercept: f(0)=0−0+30+3=33=1. The point is (0, 1).0 is in the domain, and every term with x becomes 0.
  3. Factor the top: x2−4x+3=(x−1)(x−3).Two numbers that multiply to 3 and add to −4 are −1 and −3.
  4. Set the top equal to 0: (x−1)(x−3)=0, so x=1 or x=3.If a product is 0, one of its factors is 0. These are the candidates.
  5. Test the bottom. At x=1: 1+3=4. At x=3: 3+3=6. Keep both.Neither bottom is 0, so both inputs are in the domain.
Answer
  • y-intercept: (0, 1)
  • x-intercepts: (1, 0) and (3, 0)
Double-check f(1) = 1−4+31+3 = 04 = 0. f(3) = 9−12+33+3 = 06 = 0. Both outputs are 0.

Rung 4 of 6

No y-intercept

Find the intercepts of f(x) = x2−162x. In plain words: find the output when the input is 0, if there is one, then find every input whose output is 0.

Show the steps and the answer
  1. Set the bottom equal to 0: 2x=0, so x=0. The domain is every x except 0.This finds the input to throw out. Plug back: 2 · 0 = 0.
  2. y-intercept: 0 is not in the domain, so there is none.f(0) would be −160, and dividing by 0 has no answer. The top is not 0 there, so the y-axis itself is a vertical asymptote, x = 0.
  3. Factor the top: x2−16=(x−4)(x+4).It is a difference of squares: x2 − 42.
  4. Set the top equal to 0: (x−4)(x+4)=0, so x=4 or x=−4.These are the only inputs that could give an output of 0.
  5. Test the bottom. At x=4: 2·4=8. At x=−4: 2·(−4)=−8. Keep both.Neither bottom is 0.
Answer
  • y-intercept: none
  • x-intercepts: (4, 0) and (−4, 0)
Double-check f(4) = 16−168 = 08 = 0. f(−4) = 16−16−8 = 0−8 = 0. Both outputs are 0.

Rung 5 of 6

A hole on the y-axis

Find the intercepts of f(x) = x2+2xx2−x. In plain words: find the output when the input is 0, if there is one, then find every input whose output is 0.

Show the steps and the answer
  1. Factor the top: x2+2x=x(x+2). Factor the bottom: x2−x=x(x−1).Each term on top has a factor of x, and so does each term on the bottom.
  2. Set the bottom equal to 0: x(x−1)=0, so x=0 or x=1. The domain is every x except 0 and 1.This finds the inputs to throw out. Plug back: 02 − 0 = 0 and 12 − 1 = 0.
  3. y-intercept: 0 is not in the domain, so there is none.f(0) would be 00, which is undefined.
  4. See what happens at x=0. Cancel the common factor x: f(x)=x+2x−1 for x≠0. Put 0 into this shorter form: 0+20−1=2−1=−2. The graph has a hole at (0,−2).The factor cancels with no copy of it left in the bottom, so it gives a hole. The hole sits on the y-axis, so the curve is missing the exact point where it would have crossed.
  5. Set the top equal to 0: x(x+2)=0, so x=0 or x=−2.These are the candidates for x-intercepts.
  6. Test the original bottom. At x=0 it is 0, so throw out 0. At x=−2 it is (−2)2−(−2)=4+2=6, so keep −2.Only candidates in the domain count.
Answer
  • y-intercept: none (the graph has a hole at (0, −2))
  • x-intercept: (−2, 0)
Double-check f(−2) = 4−44+2 = 06 = 0, so (−2, 0) is on the graph. At x = 0 the original formula gives 0+00−0 = 00, undefined, so there is no point on the y-axis.

Rung 6 of 6

One point that is both intercepts, and a zero that is thrown out

Find the intercepts of f(x) = 2x2−6xx2−9. In plain words: find the output when the input is 0, then find every input whose output is 0.

Show the steps and the answer
  1. Factor the top: 2x2−6x=2x(x−3). Factor the bottom: x2−9=(x−3)(x+3).Both top terms share the factor 2x. The bottom is a difference of squares, x2 − 32.
  2. Set the bottom equal to 0: (x−3)(x+3)=0, so x=3 or x=−3. The domain is every x except −3 and 3.This finds the inputs to throw out. Plug back: 32 − 9 = 0 and (−3)2 − 9 = 0.
  3. y-intercept: f(0)=0−00−9=0−9=0. The point is (0, 0).0 is in the domain, and 0 divided by a nonzero number is 0.
  4. Set the top equal to 0: 2x(x−3)=0, so 2x=0 or x−3=0. That gives x=0 or x=3.If a product is 0, one of its factors is 0. These are the candidates.
  5. Test the original bottom. At x=0 it is −9, so keep 0. At x=3 it is 0, so throw out 3.3 is not in the domain.
  6. See what happens at x=3. Cancel (x−3): f(x)=2xx+3 for x≠3. Put 3 into this shorter form: 66=1. The graph has a hole at (3, 1).The factor cancels with no copy of it left in the bottom, so it gives a hole. It sits at height 1, not on the x-axis.
Answer
  • y-intercept: (0, 0)
  • x-intercept: (0, 0), the same point
  • Not an intercept: x = 3, where the graph has a hole at (3, 1)
Double-check The shorter form at x = 0 gives 03 = 0, matching the original. The original at x = 3 gives 18−189−9 = 00, undefined. A graph that passes through the origin meets both axes there, so one point can be both intercepts.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: For g(x) = x2−9x−3, the top is 0 at x = 3 and x = −3, so the x-intercepts are (3, 0) and (−3, 0).
x = 3 makes the bottom 0, so g(3) is undefined. After canceling, g(x) = x + 3 for x ≠ 3, and the graph has a hole at (3, 6).
✓ Instead: The only x-intercept is (−3, 0). Check: g(−3) = 9−9−3−3 = 0−6 = 0.
✗ Not this: For h(x) = x+4x−5, setting the bottom equal to 0 gives x = 5, so the x-intercept is (5, 0).
A zero of the bottom is where the function is undefined. Here it marks the vertical asymptote x = 5, the opposite of a point on the graph.
✓ Instead: Set the top equal to 0: x + 4 = 0, so x = −4. The bottom there is −9, not 0. The x-intercept is (−4, 0).
✗ Not this: For k(x) = x+2x, k(0) = 20 = 0, so the y-intercept is (0, 0).
2 ÷ 0 is not 0. It is undefined. The input 0 is not in the domain, and the y-axis is the vertical asymptote x = 0.
✓ Instead: k has no y-intercept. It does have an x-intercept at (−2, 0), because k(−2) = 0−2 = 0.
✗ Not this: Every rational function has an x-intercept, so m(x) = 5x2+1 must cross the x-axis somewhere.
The rule does not produce an intercept when the top is never 0. The top here is 5 for every input.
✓ Instead: m has no x-intercepts. It has a y-intercept at (0, 5), because m(0) = 50+1 = 5.
✗ Not this: For f(x) = x−4x+2, the top is 0 at x = 4, so the x-intercept is (0, 4).
The numbers are in the wrong slots. (0, 4) is a point on the y-axis.
✓ Instead: The input goes first: the x-intercept is (4, 0).

Tips and tricks

  • Memory device: zero the other letter. For the y-intercept, make x zero. For the x-intercepts, make y zero, and y is zero only where the top is zero.
  • Memory device: the top proposes, the bottom vetoes. The top gives the candidates. The bottom can only remove them.
  • Shortcut for f(0): with top and bottom multiplied out, every term with x becomes 0, so f(0) is the constant term of the top over the constant term of the bottom. For x2−x−6x2−4 that is −6−4 = 32.
  • Write every intercept as a point. An x-intercept looks like (a, 0). A y-intercept looks like (0, b). The 0 sits in the slot of the other letter.
  • Check an x-intercept in the original formula, not the canceled one. You should see 0 over a nonzero number.
  • A rational function has at most one y-intercept, but it can have several x-intercepts or none.
  • You do not need to memorize this rule. Rebuild it from one fact: 0 ÷ 5 = 0, and nothing divided by 0 has an answer.

7 The trap

Keeping a zero of the top that also makes the bottom zero. For f(x) = x2−1x−1, the top is 0 at x = 1 and at x = −1. But x = 1 makes the bottom 0 too, so f(1) is 0 ÷ 0, which is undefined. The graph has a hole at (1, 2) there, and the only x-intercept is (−1, 0). Test every candidate in the original bottom before you call it an intercept.

Flash cards

Say the answer out loud, then flip.

On the map picture, the y-intercept is where the trail crosses the up and down road. How do you find it for a rational function?
  • Put 0 in for x, because every spot on the y-axis has x equal to 0.
  • If the bottom is not 0 there, the y-intercept is the point (0, f(0)).
  • If the bottom is 0 at x = 0, then 0 is not in the domain and there is no y-intercept.
Why do you look only at the top of the fraction to find the candidates for x-intercepts?
A fraction is top ÷ bottom. Zero divided by a nonzero number is 0, and no other division gives 0. So the output can be 0 only where the top is 0.
The top of a rational function is 0 at x = 4, and the bottom is also 0 at x = 4. Is (4, 0) an x-intercept?
No. At x = 4 the function is 0 ÷ 0, which is undefined. So 4 is not in the domain and the graph has no point there. A zero of the top counts only when the bottom is not 0 at that same input.
Find the intercepts of f(x) = x−3x+2.
  • y-intercept: f(0) = 0−30+2 = −32, so the point is (0, −32).
  • x-intercept: the top is 0 at x = 3. The bottom there is 3 + 2 = 5, which is not 0, so the point is (3, 0).
  • Check: f(3) = 05 = 0.

From earlier

The domain of a rational function

In the vending machine picture, which buttons are the broken ones for a rational function?
Show answer
The inputs that turn the bottom of the fraction into 0.
Every other real number works, so the domain is all real numbers except those.

The domain of a rational function

Why do you check only the bottom of a rational function when finding the domain, and never the top?
Show answer
The top is a polynomial. It only adds, subtracts and multiplies, and those work for every real number.
The one step that can fail is the division, and it fails only when the bottom equals 0.

Lesson 6 of 7

Graphing a rational function from its features

Subject: MathematicsLeans on: Factoring a difference of squaresLeans on: Factoring a trinomialLeans on: Hole or vertical asymptoteLeans on: Horizontal or slant asymptote from the degreesLeans on: InterceptsLeans on: Signs in a fractionLeans on: Arrow notationLeans on: Interval notationOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Think of drawing a road on a map before you have driven it. First you mark what you already know. Dashed fences the road can never cross, or must run beside: those are the asymptotes. Pins the road must pass through: those are the intercepts. One missing paving stone: that is a hole. Then, in each stretch between fences and pins, you send one scout to report whether the road is north or south of the main street, which is the x-axis. That scout is a test point. With fences, pins, the missing stone and one scout per stretch on the map, you can sketch the road's shape, adding a point or two wherever you need to see a turn, and you draw it last.

2 Picture it

(−4, 4)(−2, 8)(0, −4)(2, 0)(3, 1/2)−8−44−8−44812(−4, 4)(−2, 8)(0, −4)(2, 0)(3, 1/2)−8−6−4−2246−8−44812
A finished sketch of a second example, g(x) = 2x−4x+1.

Reminder

Reminder: Factoring a difference of squares, Factoring a trinomial, Hole or vertical asymptote, Horizontal or slant asymptote from the degrees, Intercepts, Signs in a fraction, Arrow notation, Interval notation
  • Factoring a difference of squares. a2 − b2 = (a − b)(a + b), so x2 − 4 = (x − 2)(x + 2). Multiply back to check: x2 + 2x − 2x − 4 = x2 − 4.
  • Factoring a trinomial. For x2 − x − 2, find two numbers that multiply to −2 and add to −1. They are −2 and 1, so x2 − x − 2 = (x − 2)(x + 1).
  • Hole or vertical asymptote. A factor that cancels with no copy of it left in the bottom gives a hole, also called a removable discontinuity. A zero of the bottom that is left after canceling gives a vertical asymptote. In (x−2)(x+1)(x−2)(x+2), x = 2 is a hole and x = −2 is a vertical asymptote.
  • Horizontal or slant asymptote from the degrees. Top degree less: y = 0. Degrees equal: y = ratio of leading coefficients, so 2x−4x+1 has y = 2. Top degree one more: divide, and the quotient is the slant asymptote.
  • Intercepts. The y-intercept is f(0), when 0 is in the domain. The x-intercepts are the zeros of the top after canceling where the original bottom is not 0. For 2x−4x+1: f(0) = −4 and 2x − 4 = 0 at x = 2.
  • Signs in a fraction. Same signs give a positive, different signs give a negative: −2−1 = 2 and −0.50.5 = −1.
  • Arrow notation. The arrow notation 'as x → 3 from the left, f(x) → −∞' means: as the inputs close in on 3 from smaller numbers, the outputs fall without bound. For 2x−3, f(2.9) = −20.
  • Interval notation. (−2, −1) means every number between −2 and −1, with both ends left out. −1.5 is in it. −2 is not.

3 Why

A fraction is positive when its top and bottom have the same sign and negative when their signs differ. The top and the bottom are polynomials, and a polynomial can change sign only by passing through zero. So the whole function can change sign only where the top is zero or where the bottom is zero. Each such place is an x-intercept, a vertical asymptote or a hole. Between two neighboring places like that, the graph is stuck on one side of the x-axis, so one test point speaks for the whole interval. The asymptotes then say what the curve does at the edges, which leaves very little freedom.

4 The rule

For a top that is not the constant 0, split the x-axis at every x-intercept, every vertical asymptote and every hole.

On each interval between neighboring split points, f(x) keeps one sign, so one test point tells whether the graph is above or below the x-axis there. The sketch is: dashed asymptotes, plotted intercepts, an open circle at each hole, one test point per interval, then smooth branches that never cross a vertical asymptote and, at the far left and far right, level toward the horizontal asymptote or slant asymptote. When the top's degree is two or more above the bottom's, there is neither, and the far ends follow the polynomial quotient that division gives.

The same idea, five ways

Say it

f is negative between negative two and negative one, so the graph is below the x-axis there.

Write it

On the interval from −2 to −1, every output of f is negative, so that whole stretch of the graph lies below the x-axis.

In math
  • f(x) < 0 on (−2, −1)
  • test point: f(−1.5) = −1, and −1 < 0
  • sign of f on (−2, −1): −
Like

One scout per stretch of road. His report covers the whole stretch, because the road cannot switch sides without a crossing or a fence.

See it
−2−12+−++
The sign chart for f(x) = x2−x−2x2−4.

The same idea, other ways

As a picture

Look at the finished sketch of f(x) = xx−2. Two dashed lines form a cross: the vertical asymptote x = 2 and the horizontal asymptote y = 1. The dot at (0, 0) is the only intercept. The other dots are test points. Each branch sits in one corner of the cross, passes through its dots, and bends along both dashed lines.

(−2, 1/2)(0, 0)(1, −1)(3, 3)−448−4−2246
The dashed cross is the frame, the dots are the evidence, and each branch is a smooth curve drawn to fit both.
As a story

A dot-to-dot puzzle hands you numbered dots. Here you make the dots yourself: the intercepts and the test points. The asymptotes are the rules printed on the page. Never draw across a dashed vertical line. Finish each end of the drawing along the dashed level line or the dashed slanted line. When there is neither, follow the curve that the quotient from division draws. A hole is one dot you draw hollow, because the curve passes that spot without owning it.

With small numbers

Take f(x) = xx−2. The top is zero at x = 0 and the bottom is zero at x = 2, so the split points are 0 and 2. Test one input in each interval. f(−1) = −1−3 = 13, which is positive. f(1) = 1−1 = −1, which is negative. f(3) = 31 = 3, which is positive. So the graph is above the x-axis, then below it, then above it again.

02+−+
Two split points make three intervals, and three test points give the signs +, −, +.
Why it must be true

The sign of a fraction depends only on the signs of its top and its bottom. Neither one can change sign without passing through zero. A zero of the top is an x-intercept, unless it also makes the bottom 0. A zero of the bottom is a vertical asymptote or a hole. Those are exactly the split points. So inside an interval, with no split point in it, nothing is able to flip the sign.

As a rule of thumb

Friendly Hikers Visit Hills In The Summer: Factor, Holes, Vertical asymptotes, Horizontal or slant asymptote, Intercepts, Test points, Sketch. The pencil draws the curve only at the last word. Everything before it is dashed lines and dots.

FeatureWhere it comes fromHow to draw it
Hole (removable discontinuity)A zero of the bottom that is no longer a zero of the bottom after cancelingOpen circle at the height the simplified formula gives
Vertical asymptoteA zero of the bottom after cancelingDashed vertical line. The curve never crosses it
Horizontal asymptoteComparing the degrees of top and bottomDashed level line. The curve levels toward it at the far left and far right
Slant asymptoteThe quotient, when the top's degree is one more than the bottom'sDashed slanted line. The curve follows it at the far ends
x-interceptA zero of the simplified top where the original bottom is not 0Dot on the x-axis
y-interceptf(0), when 0 is in the domainDot on the y-axis
Test pointOne input chosen inside each interval between neighboring split pointsDot. It shows whether that stretch is above or below the x-axis

5 How

  1. Factor the top and the bottom completely. Set the original bottom equal to 0 to find the inputs to throw out, and write the domain.
  2. Cancel any factor the top and bottom share. Each canceled factor (x − a) with no copy of it left in the bottom marks a hole at x = a: plug a into the simplified formula to get the hole's height, and plan an open circle there.
  3. Set the simplified bottom equal to 0. Each solution is a vertical asymptote. Draw a dashed vertical line at each one.
  4. Compare the degrees of top and bottom to get the horizontal asymptote, or divide when the top's degree is one more to get the slant asymptote. Draw it dashed.
  5. Find the intercepts: f(0) for the y-intercept when 0 is in the domain, and for the x-intercepts the zeros of the simplified top where the original bottom is not 0. Plot them.
  6. Mark every x-intercept, vertical asymptote and hole on the x-axis; with a top that is not the constant 0 there are finitely many. These split points cut the axis into intervals.
  7. Pick one test point inside each interval, plug it in, and plot the point. A positive output means that stretch is above the x-axis. A negative output means it is below.
  8. Draw each branch last: through its plotted points, climbing or diving beside each vertical asymptote on the side its test point says, and, at the far left and far right, leveling toward the horizontal or slant asymptote, or following the quotient from division when there is neither. Put the open circle at each hole.
  9. Check with one input very close to each vertical asymptote and one input far out, such as x = 100.

Sketching a rational function: Friendly Hikers Visit Hills In The Summer

1
Do the top and bottom share a factor?
YesCancel it. If no copy of it is left in the bottom, mark a hole at the x that makes that factor zero, and get its height from the simplified formula.
NoThere are no holes. Go on.
↓
2
Does the simplified bottom still have a zero?
YesEach zero is a vertical asymptote. Draw a dashed vertical line there.
NoThere is no vertical asymptote. The graph is one unbroken curve, apart from any hole.
↓
3
Is the top's degree less than the bottom's degree?
YesThe horizontal asymptote is y = 0.
NoGo on.
↓
4
Are the two degrees equal?
YesThe horizontal asymptote is y = (leading coefficient of the top) ÷ (leading coefficient of the bottom).
NoGo on.
↓
5
Is the top's degree exactly one more than the bottom's?
YesDivide. The quotient, without the remainder, is the slant asymptote.
NoThere is no horizontal or slant asymptote. Divide: the quotient polynomial shows where the ends go.
↓
6
Does the simplified top have a zero?
YesEach zero where the original bottom is not 0 is an x-intercept. Plot it on the x-axis.
NoThe graph never touches the x-axis.
↓
7
Is 0 in the domain?
YesPlot the y-intercept (0, f(0)).
NoThere is no y-intercept.
↓
8
Does every interval between split points have a test point?
YesDraw the branches.
NoPick an input inside the empty interval, plug it in, and plot it first.
  1. Factor: factor top and bottom, and write the domain from the original bottom.
  2. Holes: cancel shared factors. Each canceled factor (x − a) with no copy of it left in the bottom gives an open circle at x = a, with its height from the simplified formula.
  3. Vertical asymptotes: the zeros of the simplified bottom. Draw them dashed.
  4. Horizontal or slant asymptote: compare degrees, or divide when the top's degree is one more. Draw it dashed.
  5. Intercepts: f(0) for the y-intercept when 0 is in the domain; for the x-intercepts, zeros of the simplified top where the original bottom is not 0.
  6. Test points: one input inside each interval between split points. Plot each one.
  7. Sketch: one smooth branch at a time, obeying every dashed line, then check with numbers.

6 Worked example

Worked example

A sketch with a hole, a wall and a level line

Sketch the graph of f(x) = x2−x−2x2−4. In plain words: find every feature of the graph from the formula, then draw the one curve that fits all of them.

Show the steps and the answer
−2−12+−++
Three split points, four intervals, four test points: above, below, above, above.
(−3, 2)(−1.5, −1)(−1, 0)(0, 1/2)(3, 4/5)hole (2, 3/4)−8−44−4−2246
The finished sketch: the open circle at (2, 34) marks the hole, because the function has no output at x = 2.
  1. Factor the top and the bottom: f(x)=(x−2)(x+1)(x−2)(x+2).Factors show where the top and bottom are zero. For the top, −2 and 1 multiply to −2 and add to −1. The bottom is a difference of squares.
  2. Set the original bottom equal to 0: (x−2)(x+2)=0 gives x=2 and x=−2. The domain is all real numbers except −2 and 2.This finds the two inputs that would make the bottom zero, so we can throw them out. Plug back: 22 − 4 = 0 and (−2)2 − 4 = 0.
  3. Cancel the shared factor (x−2). The simplified formula is x+1x+2, with x≠2. The hole is at x=2, at height 2+12+2=34. Plan an open circle at (2,34).This factor cancels with no copy of it left in the bottom, so it gives a hole, also called a removable discontinuity, not a wall. The simplified formula tells the height the curve is heading for.
  4. Set the simplified bottom equal to 0: x+2=0 gives x=−2. Draw a dashed vertical line at x=−2.A zero of the bottom that survives canceling is a vertical asymptote. Plug back: −2 + 2 = 0, and the top there is −1, not zero.
  5. Compare degrees: top degree 2, bottom degree 2. The leading coefficients are 1 and 1, so the horizontal asymptote is y=11=1. Draw a dashed level line at y=1.When the degrees are equal, the far-out height is the ratio of the leading coefficients.
  6. Find the intercepts. Simplified top: x+1=0 gives x=−1, so the x-intercept is (−1,0). At x=0: f(0)=0−0−20−4=−2−4=12, so the y-intercept is (0,12).The graph meets the x-axis where the simplified top is zero and the original bottom is not, and it meets the y-axis at the input 0. A negative divided by a negative is positive.
  7. Mark the split points −2,−1 and 2 on the x-axis. They make four intervals: (−∞,−2),(−2,−1),(−1,2) and (2,∞).The sign of f can change only at an x-intercept, a vertical asymptote or a hole. Look at the open dots on the sign chart.
  8. Test one input in each interval with the simplified formula. f(−3)=−2−1=2. f(−1.5)=−0.50.5=−1. f(0)=12. f(3)=45. Plot (−3,2),(−1.5,−1) and (3,45).One output per interval tells the side of the x-axis for the whole interval: above, below, above, above. The y-intercept already serves as the test point for (−1, 2).
  9. Draw the left branch. It passes through (−3,2), climbs without bound as x approaches −2 from the left, and levels toward y=1 at the far left.The test point says this stretch is above the x-axis, so beside the wall the curve must go up. Far out it must follow the horizontal asymptote.
  10. Draw the right branch. It starts far below, immediately right of x=−2, rises through (−1.5,−1),(−1,0) and (0,12), has an open circle at (2,34), passes (3,45), and levels toward y=1.The test point −1.5 says the curve is below the x-axis next to the wall, so it comes up from below. The open circle shows that x = 2 is not in the domain.
Answer
  • Domain: all real numbers except −2 and 2.
  • Hole (removable discontinuity): open circle at (2, 34).
  • Vertical asymptote: x = −2.
  • Horizontal asymptote: y = 1.
  • Intercepts: (−1, 0) and (0, 12).
  • Left branch: above y = 1, through (−3, 2), climbing as x approaches −2 from the left.
  • Right branch: rising from far below beside x = −2, through (−1.5, −1), (−1, 0), (0, 12), the open circle at (2, 34) and (3, 45), leveling toward y = 1 from below.
Double-check Test the sketch with numbers it has not seen. Near the wall: f(−2.1) = −1.1−0.1 = 11, large and positive, and f(−1.9) = −0.90.1 = −9, large and negative. Both match the branches. Far out: f(98) = 99100 = 0.99, close to 1 and below it. Near the hole: f(2.1) = 3.14.1 ≈ 0.756 (rounded), close to 34, so nothing blows up there. The original formula agrees with the simplified one at x = 3: 9−3−29−4 = 45.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

One wall, no x-intercept

Sketch the graph of f(x) = 2x−3. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
(0, −2/3)(2, −2)(4, 2)(5, 1)−22468−6−4−2246
One wall at x = 3 and the level line y = 0.
  1. Factor: nothing factors. Set the bottom equal to 0: x−3=0 gives x=3. The domain is all real numbers except 3.This finds the one input that would make the bottom zero, so we can throw it out. Plug back: 3 − 3 = 0.
  2. Look for a shared factor. There is none, so there is no hole.A hole needs a factor that cancels from top and bottom.
  3. The bottom is zero at x=3 and nothing canceled, so x=3 is a vertical asymptote. Draw it dashed.A zero of the bottom after canceling is a vertical asymptote.
  4. Compare degrees: the top is the constant 2 (degree 0) and the bottom has degree 1. The horizontal asymptote is y=0.When the top's degree is less than the bottom's, the outputs shrink toward 0 far out.
  5. Intercepts: the top is 2 and is never zero, so there is no x-intercept. f(0)=20−3=−23, so the y-intercept is (0,−23).A fraction is zero only when its top is zero. The y-intercept is the output at the input 0.
  6. The only split point is 3, so the intervals are (−∞,3) and (3,∞). Test: f(2)=2−1=−2 and f(4)=21=2. One more point for shape: f(5)=22=1.One test point per interval tells the side of the x-axis: below on the left, above on the right.
  7. Draw the left branch below the x-axis through (0,−23) and (2,−2), diving as x approaches 3 from the left and hugging y=0 at the far left. Draw the right branch above the x-axis through (4, 2) and (5, 1), climbing beside x=3 and leveling toward y=0.Each branch must fit its points and obey both dashed lines.
Answer
  • Domain: all real numbers except 3.
  • No hole and no x-intercept.
  • Vertical asymptote: x = 3.
  • Horizontal asymptote: y = 0.
  • y-intercept: (0, −23).
  • Left branch below the x-axis, diving beside x = 3.
  • Right branch above the x-axis, climbing beside x = 3.
Double-check Near the wall: f(2.9) = 2−0.1 = −20 and f(3.1) = 20.1 = 20, so the left side dives and the right side climbs. Far out: f(103) = 2100 = 0.02, close to 0.

Rung 2 of 5

One of each feature, no hole

Sketch the graph of f(x) = 2x−4x+1. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
−12+−+
Split points −1 and 2 give three intervals with signs +, −, +.
(−4, 4)(−2, 8)(0, −4)(2, 0)(3, 1/2)−8−44−8−44812
The right branch crosses the x-axis at (2, 0) and then levels under the dashed line y = 2.
  1. Factor: the top is 2(x−2) and the bottom is x+1. Set the bottom equal to 0: x=−1. The domain is all real numbers except −1.This finds the input that would make the bottom zero, so we can throw it out. Plug back: −1 + 1 = 0.
  2. No factor is shared, so there is no hole. The vertical asymptote is x=−1. Draw it dashed.Nothing cancels, so the zero of the bottom stays a wall.
  3. Compare degrees: 1 and 1. The leading coefficients are 2 and 1, so the horizontal asymptote is y=21=2. Draw it dashed.Equal degrees give the ratio of the leading coefficients.
  4. Intercepts: 2(x−2)=0 gives x=2, so the x-intercept is (2, 0). f(0)=0−40+1=−4, so the y-intercept is (0,−4).Plug back for the x-intercept: f(2) = 03 = 0.
  5. Split points: −1 and 2. Intervals: (−∞,−1),(−1,2),(2,∞). Test: f(−2)=−8−1=8. f(0)=−4. f(3)=24=12. One more point for shape: f(−4)=−12−3=4.The signs are positive, negative, positive. Look at the sign chart: one sign sits over each interval.
  6. Left branch: through (−4,4) and (−2,8), climbing as x approaches −1 from the left, leveling toward y=2 at the far left. Right branch: rising from far below beside x=−1, through (0,−4), (2, 0) and (3,12), leveling toward y=2.Left of the wall the test point is positive, so the curve goes up there. Right of the wall the test point is negative, so the curve comes from below.
Answer
  • Domain: all real numbers except −1.
  • No hole.
  • Vertical asymptote: x = −1.
  • Horizontal asymptote: y = 2.
  • Intercepts: (2, 0) and (0, −4).
  • Left branch above y = 2, climbing beside x = −1.
  • Right branch rising from far below, through (0, −4) and (2, 0), leveling toward y = 2 from below.
Double-check Near the wall: f(−1.1) = −6.2−0.1 = 62 and f(−0.9) = −5.80.1 = −58. Far out: f(99) = 194100 = 1.94 and f(−101) = −206−100 = 2.06, both close to 2, one below and one above, as drawn.

Rung 3 of 5

Both sides of the wall go the same way

Sketch the graph of f(x) = x2−4x+3x2−4x+4. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
123+−−+
Notice the two minus signs on either side of 2: the sign does not flip at this wall.
(0, 3/4)(1, 0)(1.5, −3)(2.5, −3)(3, 0)(4, 3/4)−4−22468−8−6−4−224
Both branches dive beside x = 2, as the two test points next to the wall confirm.
  1. Factor. Top: −1 and −3 multiply to 3 and add to −4, so the top is (x−1)(x−3). Bottom: −2 and −2 multiply to 4 and add to −4, so the bottom is (x−2)2. Set the bottom equal to 0: x=2. The domain is all real numbers except 2.This finds the one input that would make the bottom zero, so we can throw it out. Plug back: 4 − 8 + 4 = 0.
  2. No factor is shared, so there is no hole. The vertical asymptote is x=2.The top's factors are (x − 1) and (x − 3). Neither one matches (x − 2).
  3. Compare degrees: 2 and 2, with leading coefficients 1 and 1. The horizontal asymptote is y=1.Equal degrees give the ratio of the leading coefficients.
  4. Intercepts: (x−1)(x−3)=0 gives x=1 and x=3, so the x-intercepts are (1, 0) and (3, 0). f(0)=34, so the y-intercept is (0,34).Zeros of the simplified top where the original bottom is not 0 are x-intercepts. At x = 0 only the constants remain.
  5. Split points: 1, 2 and 3. Intervals: (−∞,1), (1, 2), (2, 3), (3,∞). Test with the factored form: f(0)=34. f(1.5)=(0.5)(−1.5)(−0.5)2=−0.750.25=−3. f(2.5)=(1.5)(−0.5)(0.5)2=−0.750.25=−3. f(4)=(3)(1)(2)2=34.The signs are +, −, −, +. The sign does not change across x = 2, because the squared bottom is positive on both sides.
  6. Left branch: leveling near y=1 at the far left, through (0,34) and (1, 0), then diving through (1.5,−3) as x approaches 2 from the left. Right branch: coming up from far below beside x=2, through (2.5,−3), (3, 0) and (4,34), leveling toward y=1.Both test points next to the wall are negative, so both branches dive beside it.
Answer
  • Domain: all real numbers except 2.
  • No hole.
  • Vertical asymptote: x = 2, with the graph diving on both sides.
  • Horizontal asymptote: y = 1.
  • Intercepts: (1, 0), (3, 0) and (0, 34).
  • Both branches stay below y = 1 and mirror each other across x = 2.
Double-check Near the wall: f(1.9) = (0.9)(−1.1)0.01 = −99 and f(2.1) = (1.1)(−0.9)0.01 = −99, both large and negative. Far out: f(102) = 101·991002 = 999910000 = 0.9999, close to 1 and below it.

Rung 4 of 5

Two walls, and a curve that crosses its level line

Sketch the graph of f(x) = 2xx2−4. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
−202−+−+
Three split points, four intervals, and the signs alternate: −, +, −, +.
(−4, −2/3)(−3, −6/5)(−1, 2/3)(0, 0)(1, −2/3)(3, 6/5)(4, 2/3)−6−4−2246−4−224
The plotted points only.
  1. Factor: the top is 2x and the bottom is (x−2)(x+2). Set the bottom equal to 0: x=2 and x=−2. The domain is all real numbers except −2 and 2.This finds the two inputs that would make the bottom zero, so we can throw them out. Plug back: 22 − 4 = 0 and (−2)2 − 4 = 0.
  2. No factor is shared, so there is no hole. The vertical asymptotes are x=−2 and x=2. Draw both dashed.Both zeros of the bottom survive, so there are two walls and three branches.
  3. Compare degrees: top degree 1, bottom degree 2. The horizontal asymptote is y=0.When the top's degree is less, the outputs shrink toward 0 far out.
  4. Intercepts: 2x=0 gives x=0, so the x-intercept is (0, 0). f(0)=0−4=0, so the y-intercept is the same point.The origin is on both axes, so one point serves as both intercepts.
  5. Split points: −2, 0 and 2. Intervals: (−∞,−2),(−2,0), (0, 2), (2,∞). Test: f(−3)=−65=−65. f(−1)=−2−3=23. f(1)=2−3=−23. f(3)=65. Two more points for shape: f(−4)=−812=−23 and f(4)=812=23.The signs are −, +, −, +. Look at the sign chart: the sign flips at every split point here.
  6. Left branch: below the x-axis, hugging y=0 at the far left, through (−4,−23) and (−3,−65), diving as x approaches −2 from the left. Middle branch: falling from far above beside x=−2, through (−1,23), (0, 0) and (1,−23), diving as x approaches 2 from the left. Right branch: falling from far above beside x=2, through (3,65) and (4,23), leveling toward y=0.Each branch goes up or down beside a wall according to the test point on that side.
Answer
  • Domain: all real numbers except −2 and 2.
  • No hole.
  • Vertical asymptotes: x = −2 and x = 2.
  • Horizontal asymptote: y = 0.
  • Intercept: (0, 0) only.
  • Three branches: below the x-axis left of −2, a falling middle branch through the origin, and above the x-axis right of 2.
  • The middle branch crosses the horizontal asymptote y = 0 at the origin.
Double-check Near the walls, rounded to one decimal: f(−2.1) = −4.20.41 ≈ −10.2, f(−1.9) = −3.8−0.39 ≈ 9.7, f(1.9) = 3.8−0.39 ≈ −9.7, f(2.1) = 4.20.41 ≈ 10.2. Each matches its branch. Far out: f(100) = 2009996 ≈ 0.02, close to 0.

Rung 5 of 5

A slant asymptote

Sketch the graph of f(x) = x2−4x−1. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
−212−+−+
Split points −2, 1 and 2: the middle one is the wall, the outer two are x-intercepts.
(−3, −5/4)(−2, 0)(0, 4)(1.5, −3.5)(2, 0)(3, 5/2)−6−4−2246−8−448
The line is the slant asymptote y = x + 1 and the dots are the plotted points.
  1. Factor: the top is (x−2)(x+2) and the bottom is x−1. Set the bottom equal to 0: x=1. The domain is all real numbers except 1.This finds the one input that would make the bottom zero, so we can throw it out. Plug back: 1 − 1 = 0.
  2. No factor is shared, so there is no hole. The vertical asymptote is x=1.Nothing cancels, so the zero of the bottom stays a wall.
  3. Compare degrees: top degree 2, bottom degree 1. The top's degree is one more, so divide. x2−4=(x−1)(x+1)−3, so the quotient is x+1 and the remainder is −3. The slant asymptote is y=x+1. Draw it dashed.Check the division by multiplying back: (x − 1)(x + 1) − 3 = x2 − 1 − 3 = x2 − 4. Far out, the leftover piece −3x−1 shrinks toward 0, so the curve follows the quotient line.
  4. Intercepts: (x−2)(x+2)=0 gives x=2 and x=−2, so the x-intercepts are (2, 0) and (−2,0). f(0)=−4−1=4, so the y-intercept is (0, 4).Zeros of the simplified top where the original bottom is not 0 are x-intercepts. A negative divided by a negative is positive.
  5. Split points: −2, 1 and 2. Intervals: (−∞,−2),(−2,1), (1, 2), (2,∞). Test: f(−3)=5−4=−54. f(0)=4. f(1.5)=2.25−40.5=−1.750.5=−3.5. f(3)=52.The signs are −, +, −, +. Look at the sign chart.
  6. Left branch: following the line y=x+1 at the far left, rising through (−3,−54),(−2,0) and (0, 4), climbing as x approaches 1 from the left. Right branch: rising from far below beside x=1, through (1.5,−3.5), (2, 0) and (3,52), then following the line y=x+1.The test point 0 is positive, so the curve climbs on the left side of the wall. The test point 1.5 is negative, so the curve comes from below on the right side.
Answer
  • Domain: all real numbers except 1.
  • No hole.
  • Vertical asymptote: x = 1.
  • Slant asymptote: y = x + 1.
  • Intercepts: (−2, 0), (2, 0) and (0, 4).
  • Left branch: rising, a little above the slant line far out, climbing beside x = 1.
  • Right branch: rising from far below, a little below the slant line far out.
Double-check Far out, compare the curve with the line. f(11) = 11710 = 11.7 and the line gives 11 + 1 = 12. f(−9) = 77−10 = −7.7 and the line gives −9 + 1 = −8. Both are close. Near the wall: f(0.9) = 0.81−4−0.1 = 31.9 and f(1.1) = 1.21−40.1 = −27.9, matching the two branches.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: For f(x) = x2−x−2x2−4, drawing dashed vertical lines at both x = 2 and x = −2 because both make the bottom zero.
The factor (x − 2) cancels, so near x = 2 the outputs stay near 34 and never grow huge: f(2.1) ≈ 0.756. A vertical asymptote needs outputs that grow without bound.
✓ Instead: Cancel first. x = 2 gives a hole at (2, 34), and only x = −2 is a vertical asymptote.
✗ Not this: Believing a graph can never touch its horizontal asymptote, and bending the curve to avoid it.
A horizontal asymptote describes only the far left and far right. For f(x) = 2xx2−4 the horizontal asymptote is y = 0, yet f(0) = 0, so the graph passes through the line y = 0 at the origin.
✓ Instead: Only a vertical asymptote can never be crossed. To find where a graph meets its horizontal asymptote, set f(x) equal to the asymptote's height and solve: 2xx2−4 = 0 gives x = 0.
✗ Not this: Assuming the graph always switches sides at a vertical asymptote, and testing only one side of it.
For f(x) = 1(x−2)2, f(1) = 1 and f(3) = 1. Both sides are positive and both branches climb beside x = 2, because a squared factor never changes sign.
✓ Instead: Put a test point on each side of every vertical asymptote and let each one speak for its own side.
✗ Not this: Calling x = 2 an x-intercept of f(x) = (x−2)(x+1)(x−2)(x+2) because it makes the top zero.
At x = 2 the bottom is zero too, so f(2) does not exist. A point that does not exist cannot sit on the x-axis.
✓ Instead: Take x-intercepts from the top after canceling, keeping only inputs where the original bottom is not 0. Here that leaves only (−1, 0), and x = 2 is a hole.

Tips and tricks

  • Memory device for the order: Friendly Hikers Visit Hills In The Summer. Factor, Holes, Vertical asymptotes, Horizontal or slant asymptote, Intercepts, Test points, Sketch.
  • Draw asymptotes dashed. They are guides for the curve, not part of the graph.
  • Choose test points that keep the arithmetic light: a whole number when the interval holds one, and 0 whenever 0 is inside an interval. The y-intercept already counts as the test point for its interval.
  • Plug test points into the simplified formula. It gives the same output as the original at every input except the hole, with less arithmetic.
  • Count the intervals: the number of intervals is the number of split points plus 1. Three split points mean four intervals and four test points.
  • To see whether the curve levels toward the horizontal asymptote from above or from below, look at the sign of f(x) minus the asymptote's height far out: the division's remainder over the bottom gives it. A far input such as x = 100 or x = −100 is a quick check of that sign.
  • If a branch still looks uncertain, plot one more point in that interval. An extra point never hurts a sketch.

7 The trap

The most common mistake is to plot a handful of points and join them all in one stroke, straight through a vertical asymptote. The function has no output at a vertical asymptote, so no part of the curve may pass through that dashed line. Draw every asymptote first, lift the pencil at each vertical one, and let the test point on each side decide whether that side climbs or dives.

Flash cards

Say the answer out loud, then flip.

On the map picture, what job does a test point do?
It is the scout for one stretch of road. Plug it in: a positive output means that stretch is above the x-axis, a negative output means it is below.
Which three kinds of places split the x-axis into intervals?
  • Every x-intercept.
  • Every vertical asymptote.
  • Every hole.
Why is one test point enough for a whole interval?
The function can change sign only where the top or the bottom is zero. Those places are the split points, so between two neighbors the graph stays on one side of the x-axis.
A factor cancels from the top and the bottom, and the simplified bottom is not 0 at its zero. What does that zero mark, and how do you find its height?
It marks a hole. Plug that x into the simplified formula to get the height, then draw an open circle there.

Lesson 7 of 7

Writing a rational function from its graph

Subject: MathematicsLeans on: Subtracting a negativeLeans on: When a factor is zeroLeans on: Reading a pointLeans on: Undoing a multiplicationLeans on: Signs when multiplying and dividingLeans on: Horizontal asymptote by degreesLeans on: Height of a holeOpen this lesson
Leans on 0Comes back in 0

1 In plain words

So far you were handed a formula and you drew its graph. This lesson runs the other way: you are handed the graph of a rational function and you write its formula. Think of tasting a soup and writing down the recipe. Each flavor you notice names one ingredient. On a graph, each feature names one piece of the formula. A place where the graph crosses the x-axis puts a piece on the top of the fraction. A vertical asymptote, the dashed wall the graph never touches, puts a piece on the bottom. A hole puts the same piece on both. The last question is how much: one number out in front, and one extra point on the graph tells you what it is.

2 Picture it

(2, 0)(0, −6)−8−448−12−661218(2, 0)(0, −6)−8−448−12−661218
Notice the crossing at x = 2, the wall at x = −1 and the point (0, −6).

Reminder

Reminder: Subtracting a negative, When a factor is zero, Reading a point, Undoing a multiplication, Signs when multiplying and dividing, Horizontal asymptote by degrees, Height of a hole
  • Subtracting a negative. x − (−2) = x + 2. A crossing or a wall at a negative number gives a plus sign inside the factor.
  • When a factor is zero. (x − 4) is 0 only at x = 4, because 4 − 4 = 0.
  • Reading a point. (0, −1) means the input is 0 and the output is −1: x = 0 and f(x) = −1.
  • Undoing a multiplication. To free a in −3a = 6, divide both sides by −3: a = −2.
  • Signs when multiplying and dividing. Two negatives make a positive: (−1)(−2) = 2 and −4−6 = 23. One negative makes a negative: 6 ÷ (−3) = −2.
  • Horizontal asymptote by degrees. Same degree on top and bottom: y is the ratio of leading coefficients, so 2x−2x+2 levels off at y = 21 = 2. Larger degree on the bottom: y = 0.
  • Height of a hole. Cancel the shared factor first, then plug in: 3(x−1)(x+1)(x−2)(x+1) becomes 3(x−1)x−2, and at x = −1 that is −6−3 = 2.

3 Why

Every earlier fact works in both directions. A zero of the simplified top where the original bottom is not 0 is an x-intercept, so an x-intercept at x = 1 means the top holds the factor (x − 1), the piece that equals 0 when x is 1. A zero of the bottom that survives is a vertical asymptote, so a wall at x = −2 means the bottom holds (x + 2). Multiplying the whole fraction by a number a ≠ 0 moves no crossing and no wall, because a times 0 is still 0. So the crossings and walls cannot tell you a. Once the factors are chosen, one point off the x-axis can, and so can the height of a horizontal asymptote other than 0.

4 The rule

The first candidate formula, with the simplest factors, for a graph that crosses the x-axis at x=p and x=q, has vertical asymptotes at x=r and x=s, and has a hole at x=c is f(x)=a·(x−p)(x−q)(x−c)(x−r)(x−s)(x−c) with a≠0.

With no hole, leave out both (x−c) factors. Find a by plugging in one more point of the graph that is not on the x-axis. If the graph goes the same way on both sides of a vertical asymptote, square that bottom factor, the simplest even power. If the graph touches the x-axis at an intercept and turns back, square that top factor. Check the candidate against the rest of the graph: a graph can call for higher powers or for factors with no real zero, such as x2+1.

The same idea, five ways

Say it

f of x equals a, times the crossing factors, over the wall factors.

Write it

A first candidate formula is a number a times one factor for each x-intercept, divided by one factor for each vertical asymptote, with the factor of any hole written on both the top and the bottom. Square a factor where the graph touches the x-axis and turns back, or where it goes the same way on both sides of a vertical asymptote. Then check the candidate against the rest of the graph, which can call for higher powers or for factors with no real zero.

In math
  • f(x)=a·(x−p)(x−q)(x−r)(x−s)
  • x-intercept at x = p where the graph crosses: factor (x − p) on the top
  • x-intercept at x = p where the graph touches and turns back: factor (x − p)2 on the top
  • vertical asymptote at x = r, one side up and one side down: factor (x − r) on the bottom
  • vertical asymptote at x = r, both sides the same way: factor (x − r)2 on the bottom
  • hole at x = c: factor (x − c) on the top and on the bottom
  • point (x0, y0) on the graph: solve y0 = f(x0) for a
Like

Tasting a soup and writing the recipe: each flavor names an ingredient, and one spoonful tells you how much salt.

See it

crossing at x = p: (x − p) on the top

wall at x = r: (x − r) on the bottom

hole at x = c: (x − c) on both

a in front

one point off the x-axis gives a

The same idea, other ways

As a picture

Flatten the graph onto the x-axis and keep only two kinds of marks. An open circle sits where a wall stands: the function has no output there, so that number goes into a bottom factor. A tick sits where the graph crosses: the output is 0 there, so that number goes into a top factor. For the graph above, the open circle at −1 gives (x + 1) on the bottom and the tick at 2 gives (x − 2) on the top.

−1crossing(−∞, −1) ∪ (−1, ∞)
The open circle at −1 is the wall and the tick at 2 is the crossing.
As a story

A friend describes a house over the phone: a door here, a wall there. You can draw the floor plan from that. You cannot tell how tall the house is until your friend gives you one measurement. Crossings and walls are the floor plan of the graph: they give the simplest factors of the formula. The one extra point, off the x-axis and away from the walls, is the measurement, and it sets a.

With small numbers

Start with 1x, whose wall is at x = 0. You want the wall at x = 5, so make the bottom x − 5: now the bottom is 0 at 5, since 5 − 5 = 0. Suppose the graph passes through (6, 4). The formula 1x−5 gives 16−5 = 1 at x = 6. That is four times too low, so a = 4. The formula is 4x−5, and 46−5 = 4.

Why it must be true

Take any formula with the right factors and multiply it by 5. Where the top was 0, 5 × 0 is still 0, so the crossings stay. Where the bottom was 0, it is still 0, so the walls stay. Many formulas share the same crossings and walls, one for each value of a other than 0. A single point off the x-axis picks out one of them, because at that point different values of a give different heights.

With your hands

Slide h. The wall stands at x = h every time, because the bottom x − h is 0 there. Now slide a to any value other than 0. The wall does not move and no crossing appears. Only the height of the curve at each input changes: the curve stretches, and a negative a also flips it over the x-axis. That is the reason a wall alone cannot give you a, and one point can.

−6−4−2246−6−4−2246
Sliding h moves the wall, and sliding a changes the curve without moving the wall.
What you see on the graphThe simplest thing to writeWhy
Crosses the x-axis at x = p(x − p) on the topThe top is 0 there, so the output is 0.
Touches the x-axis at x = p and turns back(x − p)2 on the topA square is never negative, so the output keeps its sign on both sides.
Vertical asymptote at x = r, one side up and one side down(x − r) on the bottomThe bottom is 0 there and changes sign as x passes r.
Vertical asymptote at x = r, both sides the same way(x − r)2 on the bottomA square is never negative, so both sides keep the same sign, as on the graph of 1x2.
Hole at x = c(x − c) on the top and on the bottomThe factor cancels and leaves a gap at the one input that makes it 0.
Horizontal asymptote y = 0A lower degree on the top than on the bottom, or a top that is the constant 0When the bottom has the larger degree, the outputs shrink toward 0. A top that is the constant 0 makes every output 0.
Horizontal asymptote y = k with k ≠ 0Equal degrees on top and bottom; with factors like (x − p), a = kWith equal degrees the graph levels off at the ratio of leading coefficients, which is a.
One more point (x, y) off the x-axisPlug in x and y, solve for aOnly one value of a makes the formula true at that point.

5 How

  1. Say what the question asks: build the fraction whose graph has exactly the features you see.
  2. List the x-intercepts. For a crossing at x = p, write the factor (x − p) on the top, and for a touch that turns back, (x − p)2. If there are no x-intercepts, try a top with no x in it, the simplest choice; the rest of the graph can still call for a factor with no real zero, such as x2 + 1.
  3. List the vertical asymptotes. For a wall at x = r, write the factor (x − r) on the bottom. If the graph goes the same way (both up or both down) on the two sides of the wall, write (x − r)2 instead.
  4. Look for a hole (an open circle). For a hole at x = c, write (x − c) on both the top and the bottom.
  5. Put an unknown number a in front of the fraction.
  6. Pick one point on the graph that is not on the x-axis and is not the hole. The y-intercept is usually the most convenient. Plug in its x and its y, then solve for a.
  7. Write the finished formula. Check it against a feature you did not use: the horizontal asymptote or a second point.

Writing a rational function from its graph

1
Does the graph meet the x-axis?
YesFor each crossing at x = p, put (x − p) on the top; for each touch that turns back, put (x − p)2.
NoTry the simplest top, with no x in it: only the number a. Check it against the rest of the graph.
↓
2
Is there a vertical asymptote?
YesFor each wall at x = r, put (x − r) on the bottom.
NoGo on.
↓
3
Does the graph go the same way (both up or both down) on the two sides of a wall?
YesSquare that bottom factor: (x − r)2.
NoLeave that factor to the first power, the simplest choice.
↓
4
Is there a hole (an open circle)?
YesPut (x − c) on both the top and the bottom. Keep it there in the final answer, or cancel it and write x ≠ c beside the formula.
NoGo on.
↓
5
Do you have a point that is off the x-axis and is not the hole?
YesPlug in its x and y and solve for a.
NoIf the top and bottom have the same number of x factors, a is the height of the horizontal asymptote.
↓
6
Does the finished formula match every feature and point the graph shows?
YesYou are done.
NoRecheck the signs inside the factors and the arithmetic for a. If those hold, the graph needs other powers or more factors: build a new candidate.
  1. List every feature the graph shows: x-intercepts, vertical asymptotes, holes, the horizontal asymptote, and at least one other point.
  2. Turn each x-intercept at x = p into a factor on the top: (x − p) where the graph crosses, (x − p)2 where it touches and turns back.
  3. Turn each vertical asymptote at x = r into a factor (x − r) on the bottom, squared if both sides of the wall go the same way.
  4. Turn each hole at x = c into a factor (x − c) on both the top and the bottom.
  5. Write a in front, plug in a point that is off the x-axis and is not the hole, and solve for a.
  6. Check the finished formula against a feature you did not use.

6 Worked example

Worked example

One crossing, one wall, one point

The graph shows a rational function. It has a vertical asymptote at x = −2, crosses the x-axis at (1, 0), crosses the y-axis at (0, −1), and levels off at the horizontal asymptote y = 2. Write a formula for it. In plain words: build the fraction whose graph has exactly these features.

(1, 0)(0, −1)−8−44−8−44812
Notice the wall at x = −2, the crossing at (1, 0), the point (0, −1) and the level line y = 2.
Show the steps and the answer
  1. List what the graph tells you: a wall at x=−2, a crossing at x=1, the point (0,−1), and a horizontal asymptote at y=2.These four facts are everything the picture gives. The first three build the formula. The fourth is saved for the check.
  2. The x-intercept is at x=1, so write (x−1) on the top.(x − 1) is 0 when x = 1, since 1 − 1 = 0. A top of 0 gives an output of 0, which is a crossing.
  3. The vertical asymptote is at x=−2, so write (x+2) on the bottom.x − (−2) = x + 2, and −2 + 2 = 0. A bottom of 0 that does not cancel makes the wall.
  4. There is no hole, so no factor is shared. Put a in front: f(x)=a·x−1x+2.The crossing and the wall fix the factors. They cannot fix the number in front, so it stays a letter for now.
  5. Plug in the point (0, −1): −1=a·0−10+2=a·−12.The point is on the graph, so its input 0 and output −1 must make the formula true. This step finds the one value of a that does it.
  6. Multiply both sides by −2: a=2.−12 times −2 is 1, which leaves a alone. On the other side, (−1)(−2) = 2.
  7. Write the formula: f(x)=2(x−1)x+2.Every piece is now known. Multiplied out, the top is 2x − 2.
Answer
f(x) = 2(x−1)x+2, which multiplies out to 2x−2x+2
Double-check Use the feature that was held back. The top and the bottom both have degree 1, so the horizontal asymptote is the ratio of leading coefficients: y = 21 = 2. The graph levels off at y = 2. Plugging back in also works: f(1) = 2(0)3 = 0 and f(0) = 2(−1)2 = −1.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

One wall, no crossing

The graph of a rational function has a vertical asymptote at x = 3 and a horizontal asymptote at y = 0. It never crosses the x-axis. It passes through (4, 2) and (5, 1). Write a formula. In plain words: find the fraction whose graph has this wall and passes through these points.

(4, 2)(5, 1)−22468−8−448
Notice the wall at x = 3, no crossing of the x-axis, and the points (4, 2) and (5, 1).
Show the steps and the answer
  1. Look for x-intercepts. There are none, so try the simplest top, with no x in it: only the number a.A factor such as (x − p) on the top would make the output 0 at p, and this graph never reaches height 0. A top that is only a number is the simplest choice that fits.
  2. The wall is at x = 3, so write (x − 3) on the bottom: f(x)=ax−3.(x − 3) is 0 when x = 3, since 3 − 3 = 0. A bottom of 0 is what makes the wall.
  3. Plug in the point (4, 2): 2=a4−3=a1=a.The point is on the graph, so its input 4 and output 2 must make the formula true. This step finds the one value of a that does it.
  4. Write the formula with a = 2: f(x)=2x−3.Every unknown is now filled in.
Answer
f(x)=2x−3
Double-check Use the point that was not used. At x = 5: 25−3 = 22 = 1, and the graph passes through (5, 1). Also the top has degree 0 and the bottom has degree 1, so the horizontal asymptote is y = 0, as the graph shows.

Rung 2 of 5

One crossing, one wall, and a negative a

The graph of a rational function has a vertical asymptote at x = 1, crosses the x-axis at (−3, 0), crosses the y-axis at (0, 6), and levels off at the horizontal asymptote y = −2. Write a formula. In plain words: build the fraction with this crossing and this wall that also passes through (0, 6).

(−3, 0)(0, 6)−8−448−12−6612
Notice the wall at x = 1, the crossing at (−3, 0), the point (0, 6) and the level line y = −2.
Show the steps and the answer
  1. The x-intercept is at x=−3, so write (x+3) on the top.x − (−3) = x + 3, and −3 + 3 = 0, so this factor is 0 at the crossing.
  2. The wall is at x = 1, so write (x − 1) on the bottom: f(x)=a·x+3x−1.(x − 1) is 0 when x = 1, since 1 − 1 = 0.
  3. Plug in the point (0, 6): 6=a·0+30−1=a·3−1=−3a.The y-intercept is on the graph and off the x-axis, so it can find a. 3 divided by −1 is −3.
  4. Solve −3a = 6 by dividing both sides by −3: a=−2.6 ÷ (−3) = −2. A positive divided by a negative is negative. A negative a is allowed: it flips the graph over.
  5. Write the formula: f(x)=−2(x+3)x−1.Every piece is now known. Multiplied out, the top is −2x − 6.
Answer
f(x) = −2(x+3)x−1, which multiplies out to −2x−6x−1
Double-check The top and bottom both have degree 1, so the horizontal asymptote is the ratio of leading coefficients: y = −21 = −2. The graph levels off at y = −2. Also f(−3) = −2(0)−4 = 0, the crossing.

Rung 3 of 5

Both sides of the wall go up

The graph of a rational function has a vertical asymptote at x = 1. On both sides of the wall the graph shoots up. It never crosses the x-axis, its horizontal asymptote is y = 0, and it passes through (2, 3) and (0, 3). Write a formula. In plain words: find the fraction whose graph climbs on both sides of the wall and passes through these points.

(2, 3)(0, 3)−4−2246−2246810
Notice that the graph goes up on both sides of the wall at x = 1 and sits at height 3 one step to each side.
Show the steps and the answer
  1. There are no x-intercepts, so try the simplest top: only the number a.The graph never reaches height 0, so the top can never be 0.
  2. The wall is at x=1, so the bottom needs the factor (x−1). Try the first power: ax−1.(x − 1) is 0 when x = 1, which makes the wall.
  3. Test the trial against the two points. At x=2 the bottom is 2−1=1. At x=0 the bottom is 0−1=−1. The bottoms have opposite signs, so the two outputs would have opposite signs. The graph shows both at height 3.A first power changes sign as x passes the wall, which sends one side up and the other side down. That is not this graph.
  4. Square the factor: f(x)=a(x−1)2.A square is never negative: (1)2 = 1 and (−1)2 = 1. Both sides of the wall now have the same sign, so both go the same way.
  5. Plug in the point (2, 3): 3=a(2−1)2=a1=a. So a=3.The point is on the graph, so it must make the formula true. This finds a.
  6. Write the formula: f(x)=3(x−1)2.Every piece is now known.
Answer
f(x)=3(x−1)2
Double-check Use the other point. At x = 0: 3(0−1)2 = 31 = 3, and the graph passes through (0, 3). The top has degree 0 and the bottom has degree 2, so the horizontal asymptote is y = 0, as on the graph.

Rung 4 of 5

A hole in the graph

The graph of a rational function has a vertical asymptote at x = 2, crosses the x-axis at (1, 0), has a hole (an open circle, also called a removable discontinuity) at (−1, 2), and passes through (3, 6). Write a formula. In plain words: build the fraction with this crossing, this wall and this gap that also passes through (3, 6).

(1, 0)(3, 6)hole (−1, 2)−448−44812
The open circle at (−1, 2) marks the one point the graph skips.
Show the steps and the answer
  1. The x-intercept is at x=1, so write (x−1) on the top.1 − 1 = 0, so this factor makes the output 0 at the crossing.
  2. The wall is at x=2, so write (x−2) on the bottom.2 − 2 = 0, so this factor makes the bottom 0 at the wall.
  3. The hole is at x=−1, so write (x+1) on both the top and the bottom.A factor on both top and bottom cancels, here with no copy of it left in the bottom, so it leaves a hole at the input that makes it 0: −1 + 1 = 0.
  4. Put a in front: f(x)=a·(x−1)(x+1)(x−2)(x+1).The features fix the factors but not the number in front.
  5. Plug in the point (3, 6): 6=a·(3−1)(3+1)(3−2)(3+1)=a·(2)(4)(1)(4)=a·84=2a.Use a point that is not the hole and not on the x-axis. At the hole the uncanceled formula would read 0 over 0, which has no value.
  6. Solve 2a = 6 by dividing both sides by 2: a=3.6 ÷ 2 = 3.
  7. Write the formula: f(x)=3(x−1)(x+1)(x−2)(x+1). Keep (x+1) on both the top and the bottom, or cancel it and write x≠−1 beside the formula.If you cancel (x + 1) and write nothing more, the formula forgets the hole.
Answer
f(x)=3(x−1)(x+1)(x−2)(x+1)
Double-check Use the height of the hole, which was not used. Cancel (x + 1) to get 3(x−1)x−2, then plug in x = −1: 3(−2)−3 = −6−3 = 2. The hole on the graph is at height 2.

Rung 5 of 5

Two walls and two crossings

The graph of a rational function has vertical asymptotes at x = −2 and x = 3, and it goes opposite ways on the two sides of each wall. It crosses the x-axis at (−4, 0) and (1, 0), crosses the y-axis at (0, 2), passes through (−3, −2), and levels off at the horizontal asymptote y = 3. Write a formula. In plain words: build the fraction with both crossings and both walls that also passes through (0, 2).

walls: x = −2 and x = 3

crossings: (−4, 0) and (1, 0)

y-intercept: (0, 2)

another point: (−3, −2)

levels off at y = 3

−23crossingcrossing(−∞, −2) ∪ (−2, 3) ∪ (3, ∞)
The open circles at −2 and 3 are the walls, and the ticks at −4 and 1 are the crossings.
Show the steps and the answer
  1. The crossings are at x=−4 and x=1, so the top is (x+4)(x−1).x − (−4) = x + 4 is 0 at −4, and (x − 1) is 0 at 1. Each crossing needs its own factor.
  2. The walls are at x=−2 and x=3, so the bottom is (x+2)(x−3).x − (−2) = x + 2 is 0 at −2, and (x − 3) is 0 at 3. The graph goes opposite ways at each wall, so neither factor is squared.
  3. Put a in front: f(x)=a·(x+4)(x−1)(x+2)(x−3).There is no hole, so no factor is shared. The number in front is still unknown.
  4. Plug in the point (0, 2): 2=a·(0+4)(0−1)(0+2)(0−3)=a·(4)(−1)(2)(−3)=a·−4−6=a·23.A negative divided by a negative is positive, and 4 and 6 both divide by 2, so −4−6 = 23.
  5. Solve 23·a=2. Multiply both sides by 3 to get 2a=6, then divide both sides by 2: a=3.Multiplying by 3 clears the bottom of the fraction. Dividing by 2 leaves a alone.
  6. Write the formula: f(x)=3(x+4)(x−1)(x+2)(x−3).Every piece is now known. Multiplied out, the top is 3x2 + 9x − 12 and the bottom is x2 − x − 6.
Answer
f(x) = 3(x+4)(x−1)(x+2)(x−3), which multiplies out to 3x2+9x−12x2−x−6
Double-check Two features were held back. Horizontal asymptote: the top and bottom both have degree 2 and the leading coefficients are 3 and 1, so y = 31 = 3, as on the graph. The point (−3, −2): 3(−3+4)(−3−1)(−3+2)(−3−3) = 3(1)(−4)(−1)(−6) = −126 = −2.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: A crossing at x = 1 gives (x + 1) on the top, and a wall at x = −2 gives (x − 2) on the bottom.
(x + 1) is 0 at x = −1, not at 1. (x − 2) is 0 at x = 2, not at −2. The signs inside the factors are backwards.
✓ Instead: The factor is x minus the number. A crossing at 1 gives (x − 1). A wall at −2 gives x − (−2) = x + 2. Test each one: plugging the number in must give 0.
✗ Not this: Using the x-intercept (1, 0) to find a in f(x) = a · x−1x+2.
Plugging in gives 0 = a · 03, which is 0 = 0. That is true for every a, so it tells you nothing.
✓ Instead: Use a point off the x-axis, such as the y-intercept (0, −1): −1 = a · −12, so a = 2.
✗ Not this: Putting the wall factor on the top and the crossing factor on the bottom: x+2x−1 for a wall at −2 and a crossing at 1.
That fraction is 0 at x = −2 and has a bottom of 0 at x = 1. Its crossing and its wall have traded places.
✓ Instead: Crossings go on the top, walls go on the bottom: x−1x+2, then find a.
✗ Not this: Finding a by plugging the x of a hole into the uncanceled formula.
At the hole both the top and the bottom are 0, so the formula reads 0 over 0, which has no value.
✓ Instead: Use a different point, or cancel the shared factor first and then plug in the hole to check its height.
✗ Not this: Canceling the shared factor in the final answer: writing 3(x−1)x−2 for a graph with a hole at x = −1.
The canceled formula has an ordinary point at x = −1, so its graph has no hole.
✓ Instead: Keep the factor on both the top and the bottom: 3(x−1)(x+1)(x−2)(x+1).

Tips and tricks

  • Memory device: crossings on top, walls below, holes on both, a out front.
  • Check every factor by plugging its number in. The factor must come out 0: for a wall at −2, (x + 2) gives −2 + 2 = 0.
  • The y-intercept is usually the most convenient point for finding a, because plugging in x = 0 leaves only the numbers inside the factors.
  • Compare degrees against the horizontal asymptote, counting each factor like (x − p) once for each power. An asymptote at y = 0 means a lower degree on the top than on the bottom, or a top that is the constant 0. An asymptote at another height means equal degrees, and with factors like (x − p), that height equals a. A slant asymptote means the top's degree is one more than the bottom's.
  • Hold one feature back. Build the formula from the crossings, the walls and one point, then test it on the horizontal asymptote or a second point.
  • A sketch can fit more than one formula. Start with the simplest candidate, the one with the fewest factors, and raise a power or add a factor with no real zero only when the graph calls for it.

7 The trap

Stopping after the factors. x−1x+2 has the right crossing and the right wall, but its graph passes through (0, −12) and levels off at y = 1. The graph in the example passes through (0, −1) and levels off at y = 2. Always write a in front and use a point to find it, even when a turns out to be 1.

Flash cards

Say the answer out loud, then flip.

A graph has a hole (an open circle) at x = 5. Where does the factor (x − 5) go in the formula?
On both the top and the bottom of the fraction. A hole puts the same piece in both places.
The graph goes up on both sides of the vertical asymptote at x = 4. How do you write that bottom factor?
Squared, as the simplest choice: (x − 4)2. When the graph goes the same way on both sides of the wall, the factor needs an even power, and 2 is the smallest.
The crossing and the wall give f(x) = a · x−1x+2. The graph passes through (0, −1). What is a?
  • a = 2.
  • Plug in x = 0 and y = −1: a · −12 = −1, so a = 2.
Why can the x-intercepts and vertical asymptotes not tell you the number a in front?
Multiplying the fraction by a ≠ 0 moves no crossing and no wall, because a times 0 is still 0. It is like tasting a soup: the flavors name the ingredients, not how much of each. So they leave a open, and you need one more fact, such as a point off the x-axis.