Unit 3, lesson 30

Rational Expressions and Excluded Values

How to simplify, add, subtract, multiply and divide rational expressions by working with factors, while keeping every value that made an original denominator zero out of the domain.

  • Theory part 59
  • Practice part 60
  • Nonlinear Equations and Functions

Theory, part 59

Practice, part 60

Type x2−9x−3\frac{x^2 - 9}{x - 3} into a calculator at x=3x = 3 and it reports an error, yet the simplified form x+3x + 3 happily gives 66. Both can’t be the same function unless something is said about x=3x = 3. That small gap is what this topic is about. Simplifying a fraction with variables is mostly factoring, but the values that were forbidden at the start stay forbidden at the end, and the graph shows them as a missing point.

See also Cancellation and Excluded Values and Rational Functions, Holes, and Asymptotes in Foundations for Calculus and Rational Functions and Domain Restrictions in Precalculus.

Key terms

Rational expression

Definition A rational expression is a quotient

P(x)Q(x)\frac{P(x)}{Q(x)}

of two polynomials, where QQ is not the zero polynomial. It is defined exactly for the real numbers xx with Q(x)≠0Q(x) \ne 0. The polynomial Q(x)Q(x) is the denominator.

In plain words It is a fraction whose top and bottom are polynomials. It works like a number fraction, with the one rule that the bottom may never be zero.

Example The expression

x+1x2−4\frac{x + 1}{x^2 - 4}

is rational. At x=3x = 3 it equals 45\frac{4}{5}. At x=2x = 2 the denominator is 00, so the expression has no value there.

Excluded values of the denominator

Definition An excluded value of a rational expression is a real number that makes its denominator equal to 00. To find them, set the denominator equal to 00 and solve, usually by factoring. The domain of the expression is every real number except the excluded values. A zero numerator causes no trouble, since 05=0\frac{0}{5} = 0 is a perfectly good number.

In plain words Look only at the bottom. Whatever makes the bottom zero is off limits.

Example For

x+5x2−x−12\frac{x + 5}{x^2 - x - 12}

the denominator factors as (x−4)(x+3)(x - 4)(x + 3), so the excluded values are 44 and −3-3. The value −5-5 makes the numerator zero, and there the expression is simply 00.

Cancellation

Definition For polynomials AA, BB and CC,

A⋅CB⋅C=AB\frac{A \cdot C}{B \cdot C} = \frac{A}{B}

for every xx with B(x)≠0B(x) \ne 0 and C(x)≠0C(x) \ne 0. Cancellation removes a common factor of the entire numerator and the entire denominator. It never removes a term of a sum. The values where C(x)=0C(x) = 0 were excluded before the step and stay excluded after it.

In plain words Factor completely first, then cancel whole matching factors. If you are tempted to cancel something attached by a plus or minus sign, stop.

Example Factor both parts and cancel x+3x + 3,

x2−9x2+x−6=(x−3)(x+3)(x+3)(x−2)=x−3x−2,\begin{aligned} \frac{x^2 - 9}{x^2 + x - 6} &= \frac{(x - 3)(x + 3)}{(x + 3)(x - 2)} \\[0.4em] &= \frac{x - 3}{x - 2}, \end{aligned}

with x≠−3x \ne -3 and x≠2x \ne 2. The restriction x≠−3x \ne -3 must be written, because the right side alone would allow it.

Here is the classic mistake. Writing x+66=x+1\frac{x + 6}{6} = x + 1 cancels a term, not a factor. At x=6x = 6 the left side is 126=2\frac{12}{6} = 2 and the right side is 77, so they are not equal.

Equivalent expressions

Definition Two expressions are equivalent on a set of real numbers when both are defined and have the same value at every number in that set. A rational expression and its simplified form are equivalent on the original domain, the set where every original denominator is nonzero. When the simplified form allows more inputs, the shared domain has to be stated, for example by writing “for x≠3x \ne 3”.

In plain words Equal formulas need equal domains. Simplifying is allowed to make a formula shorter, not to make it defined in new places.

Example Factoring 2x2x out of the numerator gives

2x2−6xx−3=2x(x−3)x−3=2xfor x≠3.\begin{aligned} \frac{2x^2 - 6x}{x - 3} &= \frac{2x(x - 3)}{x - 3} \\[0.4em] &= 2x \quad \text{for } x \ne 3. \end{aligned}

Check a value. At x=5x = 5 the left side is 202=10\frac{20}{2} = 10 and the right side is 1010. On the SAT a question like this often says “for x>3x > 3” so that every excluded value is already left out.

Hole

Definition If a factor x−cx - c cancels completely from the denominator of a rational function, so that cc is no longer a zero of the simplified denominator, the graph has a hole (a removable discontinuity) at x=cx = c. The hole is the point (c,L)(c, L), where LL is the value of the simplified expression at cc, and it is drawn as an open circle because the function is not defined there.

In plain words The graph looks like the graph of the simplified formula with one single point punched out.

Example The function

f(x)=x2−9x−3f(x) = \frac{x^2 - 9}{x - 3}

simplifies to x+3x + 3 for x≠3x \ne 3. Its graph is the line y=x+3y = x + 3 with an open circle at (3,6)(3, 6), since 3+3=63 + 3 = 6. The value f(3)f(3) does not exist, even though the points around it approach height 66.

Operations with rational expressions

Definition For rational expressions AB\frac{A}{B} and CD\frac{C}{D}, wherever every denominator is nonzero,

AB⋅CD=ACBD,AB±CD=AD±BCBD.\begin{aligned} \frac{A}{B} \cdot \frac{C}{D} &= \frac{AC}{BD}, \\[0.4em] \frac{A}{B} \pm \frac{C}{D} &= \frac{AD \pm BC}{BD}. \end{aligned}

For a sum it is usually cleaner to use the least common denominator, the product of each distinct factor of the denominators to the highest power in which it appears. The result keeps every exclusion of every original expression, even if a factor later cancels.

In plain words Multiply straight across. To add or subtract, rewrite both fractions over one common bottom first. Then factor and simplify, and carry along every forbidden value from the start.

Example The common denominator of 2x−1\frac{2}{x - 1} and 3x+2\frac{3}{x + 2} is (x−1)(x+2)(x - 1)(x + 2), so

2x−1+3x+2=2(x+2)+3(x−1)(x−1)(x+2)=5x+1(x−1)(x+2),\begin{aligned} &\frac{2}{x - 1} + \frac{3}{x + 2} \\[0.4em] &= \frac{2(x + 2) + 3(x - 1)}{(x - 1)(x + 2)} \\[0.4em] &= \frac{5x + 1}{(x - 1)(x + 2)}, \end{aligned}

with x≠1x \ne 1 and x≠−2x \ne -2. For a product, the factors cancel but the exclusions stay,

x2−4x+3⋅x+3x−2=x+2for x≠−3 and x≠2.\begin{gathered} \frac{x^2 - 4}{x + 3} \cdot \frac{x + 3}{x - 2} = x + 2 \\[0.4em] \text{for } x \ne -3 \text{ and } x \ne 2. \end{gathered}

Division and the nonzero divisor

Definition Dividing by a rational expression means multiplying by its reciprocal,

AB÷CD=AB⋅DC=ADBC.\frac{A}{B} \div \frac{C}{D} = \frac{A}{B} \cdot \frac{D}{C} = \frac{AD}{BC}.

This needs B≠0B \ne 0 and D≠0D \ne 0 so that both expressions are defined, and also C≠0C \ne 0 so that the divisor CD\frac{C}{D} is not zero.

In plain words Flip the second fraction and multiply. The thing you divide by must exist and must not be zero, so a value that makes its numerator zero is excluded too.

Example Simplify

x+1x−2÷x+1x+5.\frac{x + 1}{x - 2} \div \frac{x + 1}{x + 5}.

Flipping and multiplying gives (x+1)(x+5)(x−2)(x+1)\frac{(x + 1)(x + 5)}{(x - 2)(x + 1)}, which simplifies to x+5x−2\frac{x + 5}{x - 2}. The excluded values are 22 from the first denominator, −5-5 from the divisor’s denominator, and −1-1 because there the divisor equals 00. The simplified result looks defined at −1-1 and −5-5, so the restrictions x≠2x \ne 2, x≠−5x \ne -5 and x≠−1x \ne -1 must be stated with it.

Shifted or scaled reciprocal

Definition A shifted or scaled reciprocal is a function of the form

f(x)=ax−h+k,f(x) = \frac{a}{x - h} + k,

with real constants a≠0a \ne 0, hh and kk. Its only excluded value is x=hx = h. Its graph is the graph of y=1xy = \frac{1}{x} stretched vertically by the factor ∣a∣\lvert a \rvert (and reflected across the x-axis if a<0a < 0), then moved hh units right and kk units up. It has the vertical asymptote x=hx = h and the horizontal asymptote y=ky = k, and the output kk is never reached, since ax−h\frac{a}{x - h} is never 00.

In plain words It is the basic 1x\frac{1}{x} curve, made taller or flipped by aa and slid so that its two invisible guide lines cross at (h,k)(h, k).

Example For

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

the excluded input is 22 and the asymptotes are x=2x = 2 and y=1y = 1. At x=5x = 5 the value is 33+1=2\frac{3}{3} + 1 = 2, and at x=−1x = -1 it is −1+1=0-1 + 1 = 0. Unlike a hole, the excluded input here does not hide a single missing point. Near x=2x = 2 the outputs grow without bound in size.

Check yourself

  1. Which of the following is equivalent to x2−4xx2−16\frac{x^2 - 4x}{x^2 - 16} for x>4x > 4? (A) xx+4\frac{x}{x + 4} (B) xx−4\frac{x}{x - 4} (C) x4\frac{x}{4} (D) 1x+4\frac{1}{x + 4}
Show the answer

The answer is (A). Factor the top and bottom,

x2−4xx2−16=x(x−4)(x−4)(x+4)=xx+4.\begin{aligned} \frac{x^2 - 4x}{x^2 - 16} &= \frac{x(x - 4)}{(x - 4)(x + 4)} \\[0.4em] &= \frac{x}{x + 4}. \end{aligned}

The condition x>4x > 4 keeps away both excluded values 44 and −4-4. Choice (C) comes from cancelling the x2x^2 terms and the minus signs, which cancels terms instead of factors. Choice (B) keeps the factor that should cancel and drops the one that should stay, and choice (D) loses the factor xx. A check at x=5x = 5 settles it, since the original is 59\frac{5}{9} and only (A) gives 59\frac{5}{9}.

  1. The graph of f(x)=x2+2x−15x−3f(x) = \frac{x^2 + 2x - 15}{x - 3} in the xy-plane has a hole at the point (3,b)(3, b). What is the value of bb?
Show the answer

The numerator factors as (x−3)(x+5)(x - 3)(x + 5), so f(x)=x+5f(x) = x + 5 for x≠3x \ne 3. The hole is at height 3+5=83 + 5 = 8, so b=8b = 8.

  1. Which of the following is equivalent to 1x−1−1x+1\frac{1}{x - 1} - \frac{1}{x + 1} for x>1x > 1? (A) 00 (B) 2x2−1\frac{2}{x^2 - 1} (C) −2x2−1\frac{-2}{x^2 - 1} (D) 2xx2−1\frac{2x}{x^2 - 1}
Show the answer

The answer is (B). Over the common denominator (x−1)(x+1)=x2−1(x - 1)(x + 1) = x^2 - 1,

(x+1)−(x−1)x2−1=2x2−1.\frac{(x + 1) - (x - 1)}{x^2 - 1} = \frac{2}{x^2 - 1}.

Choice (C) subtracts the numerators in the wrong order, and choice (D) adds the numerators instead of subtracting them. Choice (A) treats the two fractions as if they were equal. A quick check at x=3x = 3 confirms (B), since 12−14=14\frac{1}{2} - \frac{1}{4} = \frac{1}{4} and 28=14\frac{2}{8} = \frac{1}{4}.

How this lesson connects