Holes Where a Factor Cancels

One point missing from an otherwise ordinary curve.

Factor both parts first

A rational function is zero where its numerator is zero, and it has a vertical asymptote where its denominator is zero. Both rules assume that the numerator and the denominator are not zero at the same x. When they are, factor both before reading anything.

Take y = (x² − 4)/(x − 2). The numerator is a difference of two squares, x² − 4 = (x − 2)(x + 2), so y = (x − 2)(x + 2)/(x − 2). The same bracket, x − 2, appears in the numerator and in the denominator.

Cancel, except at x = 2

Canceling the bracket divides the numerator and the denominator by x − 2. That is allowed whenever x − 2 is not zero, so for every x except 2 the function is y = x + 2.

At x = 2 the original function reads (4 − 4) ÷ (2 − 2) = 0 ÷ 0, and 0 ÷ 0 has no value. A quotient 0 ÷ 0 would have to be a number c with c × 0 = 0, and every number does that, so no single answer exists. The original function is undefined at x = 2, even though x + 2 on its own would give 4 there.

So the simplified form comes with a condition: y = x + 2, for x ≠ 2. Without the condition it describes a different function.

A line with one point missing

The graph is the straight line y = x + 2 with the single point at x = 2 taken out. The height of the missing point comes from the simplified form: 2 + 2 = 4. So there is a gap at (2, 4), and it is drawn as a hollow dot, an open circle, which is the notation for a point that is not on the graph. The gap is called a hole.

Values near the hole stay close to 4. At x = 1.9 the function is 3.9, at x = 2.1 it is 4.1, and at x = 1.99 it is 3.99. From both sides they close in on 4. A vertical asymptote is the opposite: there the values grow without bound.

xy

The graph of y = (x² − 4)/(x − 2): the line y = x + 2 with a hole at (2, 4), drawn as a hollow dot.

1.91.9922.012.1x − 2−0.1−0.0100.010.1y3.93.99none4.014.1

Values of y = (x² − 4)/(x − 2) for x just below and just above 2. They close in on 4 from both sides, and at x = 2 itself there is no value.

Change the denominator: nothing cancels

Now take y = (x² − 4)/(x − 3). The numerator factors as before, (x − 2)(x + 2), but the denominator is x − 3, and it is not a factor of the numerator. There is no shared bracket, so nothing cancels.

Then the curve runs away

At x = 3 the numerator is 9 − 4 = 5 and the denominator is 0. That is 5 ÷ 0, not 0 ÷ 0, and the values near it are not close to anything. At x = 3.1, y = 5.61 / 0.1 = 56.1, and at x = 2.9, y = 4.41 / (−0.1) = −44.1. The graph has a vertical asymptote at x = 3. Its zeros are where the numerator is zero, at x = −2 and x = 2.

So the same zero in the denominator gives two different graphs. If its factor cancels with the numerator, one point is missing: a hole. If it does not, the curve runs off along an asymptote.

xy

The graph of y = (x² − 4)/(x − 3). It crosses the x-axis at (−2, 0) and (2, 0), and the dashed line x = 3 is a vertical asymptote: nothing canceled.

A hole and an asymptote together

One function can have both. Take y = (x² − x − 6)/(x² − 9). Factor both parts: the numerator is (x − 3)(x + 2) and the denominator is (x − 3)(x + 3). The factor x − 3 is shared, so for x ≠ 3, y = (x + 2)/(x + 3).

Read everything from the factors. The factor that canceled, x − 3, gives a hole at x = 3, and its height comes from the simplified form: (3 + 2)/(3 + 3) = 5/6. The factor left in the denominator, x + 3, gives a vertical asymptote at x = −3. The factor left in the numerator, x + 2, gives a zero at x = −2.

The order matters: cancel the common factors first, then read the zeros and the asymptotes from what is left.

xy

The graph of y = (x² − x − 6)/(x² − 9). The dashed line x = −3 is a vertical asymptote, the curve crosses the x-axis at (−2, 0), and the hollow dot at (3, 5/6) is a hole.

A factor that does not cancel completely

In y = (x − 2)/(x − 2)², the numerator has one factor of x − 2 and the denominator has two. Canceling one leaves y = 1/(x − 2), for x ≠ 2, and a factor x − 2 is still in the denominator. So x = 2 is a vertical asymptote, not a hole.

A hole needs the factor to disappear from the denominator completely. If any of it is left underneath, the curve still runs away there.

The usual mistakes

Calling x = 2 an asymptote because the denominator is zero there. The numerator is zero too, and the factor x − 2 cancels, so the values near x = 2 stay close to 4.

Drawing the point (2, 4) as a solid dot. The original function has no value at x = 2, so the point is hollow.

Reading the height of the hole from the original numerator, or multiplying the numbers. The numerator of (x² − 4)/(x − 2) is 0 at x = 2, but the hole is at height 2 + 2 = 4, from the simplified form. For (x − 3)(x + 1)/(x − 3) the height is 3 + 1 = 4, from x + 1, not 3 × 1 = 3.

Dropping the condition x ≠ 2. y = x + 2 on its own has a value at 2; the original function does not.

Canceling terms instead of factors. In (x + 2)/(x + 3) nothing cancels: striking out the x to leave 2/3 is not allowed, because x is a term of the sum, not a factor of the whole numerator.

Worked example: The Width of a Vegetable Plot from Its Area and Its Length: A Hole Where the Length Would Be Zero

Question A rectangular vegetable plot is planned with an area of x2 − 9 square meters and a length of x − 3 meters, where x > 3. Its width is W(x) = x2 − 9x − 3 meters. (a) Simplify W(x). Describe what happens on the graph at x = 3, and say what x = 3 would mean for the plot. (b) The width is to be 10 meters. Find x, and the length and the area of the plot.

  1. 1.The top is a difference of two squares: x2 − 9 = (x − 3)(x + 3).

    area x2− 9length x − 3width ?x2− 9 = (x − 3)(x + 3)a difference of two squares
    area x2− 9length x − 3width ?x2− 9 = (x − 3)(x + 3)a difference of two squares
    The width is the area divided by the length. The top is a difference of two squares: x2 − 9 = (x − 3)(x + 3).
  2. 2.So W(x) = (x − 3)(x + 3)x − 3 = x + 3, as long as x ≠ 3. Canceling x − 3 is a division by x − 3, and that is allowed only when x − 3 is not zero.

    area x2− 9length x − 3x + 3W(x) = (x − 3)(x + 3)/(x − 3) = x + 3canceling needs x − 3 not equal to 0
    area x2− 9length x − 3x + 3W(x) = (x − 3)(x + 3)/(x − 3) = x + 3canceling needs x − 3 not equal to 0
    The factor x − 3 cancels, so W(x) = x + 3, as long as x ≠ 3.
  3. 3.At x = 3 the top is 9 − 9 = 0 and the bottom is 3 − 3 = 0, and 00 is undefined. Because the factor cancels, the graph has a hole there and not a vertical asymptote. The line y = x + 3 would pass through (3, 6), so the hole is an open circle at (3, 6).

    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)at x = 3 the top is 0 and the bottom is 0the factor cancels: a hole at (3, 6)
    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)at x = 3 the top is 0 and the bottom is 0the factor cancels: a hole at (3, 6)
    At x = 3 the top and the bottom are both 0, and 00 is undefined. Because the factor cancels, the graph has a hole there, the open circle at (3, 6), and not a vertical asymptote.
  4. 4.(a) W(x) = x + 3 for x ≠ 3, and the graph is the line y = x + 3 with a hole at (3, 6). At x = 3 the length would be 0 meters and the area 0 square meters: there is no plot, so there is no width to find, even though x + 3 on its own would give 6.

    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)W(x) = x + 3, for x not equal to 3x = 3: length 0 and area 0, so there is no plot
    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)W(x) = x + 3, for x not equal to 3x = 3: length 0 and area 0, so there is no plot
    (a) W(x) = x + 3 for x ≠ 3: the line y = x + 3 with a hole at (3, 6). At x = 3 the length and the area would both be 0, so there is no plot.
  5. 5.Put W(x) = 10: x + 3 = 10, so x = 7. The length is 7 − 3 = 4 meters, and the area is 72 − 9 = 40 square meters.

    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)x + 3 = 10, so x = 7length 7 − 3 = 4, and area 72− 9 = 40
    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)x + 3 = 10, so x = 7length 7 − 3 = 4, and area 72− 9 = 40
    Put W(x) = 10: x + 3 = 10, so x = 7. The length is 4 meters and the area is 40 square meters.
  6. 6.(b) x = 7: the plot is 4 meters long and 10 meters wide, with an area of 40 square meters. Check: 404 = 10.

    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)(7, 10)4 m long and 10 m wide, area 40 square meterscheck: 40/4 = 10
    048120246810x (the plot is x − 3 meters long)width of the plot (m)hole (3, 6)(7, 10)4 m long and 10 m wide, area 40 square meterscheck: 40/4 = 10
    (b) x = 7: the plot is 4 meters long and 10 meters wide, with an area of 40 square meters.

Answer: (a) W(x) = x + 3 for x ≠ 3: the graph is the line y = x + 3 with a hole at (3, 6), because at x = 3 the length and the area would both be 0 and there is no plot; (b) x = 7, so the plot is 4 meters long and 10 meters wide, with an area of 40 square meters

Common mistakes

  • Calling x = 3 a vertical asymptote because the bottom is zero there. A vertical asymptote needs the top to be non-zero at that value. Here the top is zero as well and the factor x − 3 cancels, so the graph has a single missing point and the values near it stay close to 6.
  • Writing W(x) = x + 3 and forgetting the condition x ≠ 3. The simplified expression and the original fraction agree everywhere except at x = 3, where the original is undefined. Without the condition the two are not the same function.

More rational functions problems, worked step by step →

Worked example: The Average Rate of Climb of a Hot-Air Balloon Measured from the 2-Minute Mark: A Hole at the Instant Itself

Question For the first 10 minutes after it lifts off, a hot-air balloon is x2 + 3x meters above the ground after x minutes. After 2 minutes its height is 10 meters. For any other time x, the average rate of climb between the 2-minute mark and minute x is R(x) = x2 + 3x − 10x − 2 meters per minute. (a) Use long division to simplify R(x), and explain why the graph has a hole and where the hole is. (b) Find the average rate of climb between the 2-minute mark and minute 6, and find the rate that the hole leaves out.

  1. 1.The balloon climbs (x2 + 3x) − 10 meters in x − 2 minutes, which gives the formula for R(x). Start the long division of x2 + 3x − 10 by x − 2: x2 ÷ x = x, and x(x − 2) = x2 − 2x. Subtract: (x2 + 3x) − (x2 − 2x) = 5x. Bring down the −10 to get 5x − 10.

    x − 2x2+ 3x− 10xx2− 2x5x− 10x2divided by x is x, and x(x − 2) = x2− 2xsubtract: 3x + 2x = 5x, then bring down −10
    x − 2x2+ 3x− 10xx2− 2x5x− 10x2divided by x is x, and x(x − 2) = x2− 2xsubtract: 3x + 2x = 5x, then bring down −10
    The balloon climbs (x2 + 3x) − 10 meters in x − 2 minutes. Divide: x2 ÷ x = x, and x(x − 2) = x2 − 2x. Subtracting leaves 5x, and −10 comes down.
  2. 2.Next, 5x ÷ x = 5, and 5(x − 2) = 5x − 10. Subtract: the remainder is 0. So x2 + 3x − 10 = (x − 2)(x + 5) exactly.

    x − 2x2+ 3x− 10x+ 5x2− 2x5x− 105x− 1005x divided by x is 5, and 5(x − 2) = 5x − 10remainder 0: x2+ 3x − 10 = (x − 2)(x + 5)
    x − 2x2+ 3x− 10x+ 5x2− 2x5x− 105x− 1005x divided by x is 5, and 5(x − 2) = 5x − 10remainder 0: x2+ 3x − 10 = (x − 2)(x + 5)
    5x ÷ x = 5, and 5(x − 2) = 5x − 10, so the remainder is 0: x2 + 3x − 10 = (x − 2)(x + 5) exactly.
  3. 3.So R(x) = (x − 2)(x + 5)x − 2 = x + 5 for x ≠ 2. At x = 2 the balloon has climbed 0 meters in 0 minutes, and 00 is undefined.

    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)R(x) = (x − 2)(x + 5)/(x − 2) = x + 5at x = 2: 0 meters in 0 minutes, and 0/0 is undefined
    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)R(x) = (x − 2)(x + 5)/(x − 2) = x + 5at x = 2: 0 meters in 0 minutes, and 0/0 is undefined
    R(x) = x + 5 for x ≠ 2. At x = 2 the balloon has climbed 0 meters in 0 minutes, and 00 is undefined, so the line has an open circle there.
  4. 4.(a) R(x) = x + 5 for x ≠ 2. The graph is a straight line with a hole at (2, 7). It is a hole and not a vertical asymptote because the factor x − 2 cancels, and the values near x = 2 stay close to 7.

    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)R(x) = x + 5, for x not equal to 2a hole at (2, 7), not a vertical asymptote
    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)R(x) = x + 5, for x not equal to 2a hole at (2, 7), not a vertical asymptote
    (a) R(x) = x + 5 for x ≠ 2: a straight line with a hole at (2, 7). The factor x − 2 cancels, so it is a hole and not a vertical asymptote.
  5. 5.Between the 2-minute mark and minute 6, R(6) = 6 + 5 = 11. Check with the heights: at minute 6 the height is 36 + 18 = 54 meters, and 54 − 106 − 2 = 444 = 11.

    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)(6, 11)R(6) = 6 + 5 = 11 meters per minutecheck: (54 − 10)/(6 − 2) = 44/4 = 11
    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)(6, 11)R(6) = 6 + 5 = 11 meters per minutecheck: (54 − 10)/(6 − 2) = 44/4 = 11
    R(6) = 11. The heights agree: 54 − 106 − 2 = 444 = 11.
  6. 6.(b) The average rate of climb is 11 meters per minute. The hole leaves out 7 meters per minute: R(1.9) = 6.9 and R(2.1) = 7.1, so the averages close on 7 from both sides, and 7 meters per minute is the rate of climb at the 2-minute mark.

    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)(6, 11)R(1.9) = 6.9 and R(2.1) = 7.1the hole leaves out 7 meters per minute
    04812160246810minutes after lift-off, xaverage climb from minute 2 (m per min)hole (2, 7)(6, 11)R(1.9) = 6.9 and R(2.1) = 7.1the hole leaves out 7 meters per minute
    (b) The average rate of climb is 11 meters per minute. The averages close on 7 from both sides of the hole, so 7 meters per minute is the rate of climb at the 2-minute mark.

Answer: (a) R(x) = x + 5 for x ≠ 2: a straight line with a hole at (2, 7), because the factor x − 2 cancels and at x = 2 no time has passed; (b) 11 meters per minute, and the hole leaves out 7 meters per minute, the rate of climb at the 2-minute mark

Common mistakes

  • Substituting x = 2 into x + 5 and reporting R(2) = 7. The function R is not defined at x = 2, because no time has passed and no average can be taken. The value 7 is what the averages approach, and it has to be described that way.
  • Subtracting x2 − 2x from x2 + 3x and getting x. Subtracting −2x adds 2x, so the difference is 3x + 2x = 5x. A sign slip in this line changes the quotient, and the remainder no longer comes to 0.

More rational functions problems, worked step by step →

Practice Holes Where a Factor Cancels in the app