Algebra 2

Rational expressions and equations

A rational expression is a fraction with polynomials on the top and bottom, like x2−9x2+x−6\frac{x^2 - 9}{x^2 + x - 6}. Simplify it by factoring both and canceling common factors, never single terms. Multiply straight across, divide by flipping the second fraction, and add or subtract over a common denominator. To solve a rational equation, multiply by the LCD, solve, then throw out any answer that makes a denominator zero.

Updated

The key idea

Rational expressions follow the same rules as number fractions. The new part is factoring: you can only cancel something that multiplies the whole top and the whole bottom.

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

The restrictions matter. The original expression is undefined at every value that makes its denominator zero, even if that factor cancels later.

The four operations
OperationRuleThen
MultiplyAB⋅CD=ACBD\frac{A}{B} \cdot \frac{C}{D} = \frac{AC}{BD}Factor everything and cancel
DivideAB÷CD=AB⋅DC\frac{A}{B} \div \frac{C}{D} = \frac{A}{B} \cdot \frac{D}{C}Flip the second fraction, then multiply
Add or subtractAD±CD=A±CD\frac{A}{D} \pm \frac{C}{D} = \frac{A \pm C}{D}First rewrite both over the LCD
Solve an equationMultiply every term by the LCDCheck answers against the restrictions

Worked examples

Example 1: simplify

Problem Simplify x2−9x2+x−6\frac{x^2 - 9}{x^2 + x - 6} and state the restrictions.

  1. Factor the top (difference of squares) and the bottom (trinomial).
    x2−9x2+x−6=(x−3)(x+3)(x+3)(x−2)\frac{x^2 - 9}{x^2 + x - 6} = \frac{(x - 3)(x + 3)}{(x + 3)(x - 2)}
  2. Cancel the common factor x+3x + 3.
    (x−3)(x+3)(x+3)(x−2)=x−3x−2\frac{(x - 3)(x + 3)}{(x + 3)(x - 2)} = \frac{x - 3}{x - 2}
  3. Restrictions come from the original bottom: (x+3)(x−2)=0(x + 3)(x - 2) = 0 at x=−3x = -3 and x=2x = 2.

Answer x−3x−2\frac{x - 3}{x - 2}, with x≠−3x \ne -3 and x≠2x \ne 2

Example 2: subtract with a common denominator

Problem Simplify 2x2−1−1x−1\frac{2}{x^2 - 1} - \frac{1}{x - 1}.

  1. Factor the first denominator: x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1). The LCD is (x−1)(x+1)(x - 1)(x + 1). Multiply the second fraction by x+1x+1\frac{x + 1}{x + 1}.
    2x2−1−1x−1=2(x−1)(x+1)−x+1(x−1)(x+1)\frac{2}{x^2 - 1} - \frac{1}{x - 1} = \frac{2}{(x - 1)(x + 1)} - \frac{x + 1}{(x - 1)(x + 1)}
  2. Subtract the whole second numerator. Use parentheses.
    2(x−1)(x+1)−x+1(x−1)(x+1)=2−(x+1)(x−1)(x+1)\frac{2}{(x - 1)(x + 1)} - \frac{x + 1}{(x - 1)(x + 1)} = \frac{2 - (x + 1)}{(x - 1)(x + 1)}
  3. Simplify the top: 2−x−1=1−x2 - x - 1 = 1 - x.
    2−(x+1)(x−1)(x+1)=1−x(x−1)(x+1)\frac{2 - (x + 1)}{(x - 1)(x + 1)} = \frac{1 - x}{(x - 1)(x + 1)}
  4. 1−x1 - x is −(x−1)-(x - 1), so it cancels with x−1x - 1 and leaves a minus sign.
    1−x(x−1)(x+1)=−1x+1\frac{1 - x}{(x - 1)(x + 1)} = -\frac{1}{x + 1}

Answer −1x+1-\frac{1}{x + 1}, with x≠1x \ne 1 and x≠−1x \ne -1

Example 3: divide

Problem Simplify x2−4x2+3x÷x+2x2−9\frac{x^2 - 4}{x^2 + 3x} \div \frac{x + 2}{x^2 - 9}.

  1. Flip the second fraction and multiply.
    x2−4x2+3x÷x+2x2−9=x2−4x2+3x⋅x2−9x+2\frac{x^2 - 4}{x^2 + 3x} \div \frac{x + 2}{x^2 - 9} = \frac{x^2 - 4}{x^2 + 3x} \cdot \frac{x^2 - 9}{x + 2}
  2. Factor every piece.
    x2−4x2+3x⋅x2−9x+2=(x−2)(x+2)x(x+3)⋅(x−3)(x+3)x+2\frac{x^2 - 4}{x^2 + 3x} \cdot \frac{x^2 - 9}{x + 2} = \frac{(x - 2)(x + 2)}{x(x + 3)} \cdot \frac{(x - 3)(x + 3)}{x + 2}
  3. Cancel x+2x + 2 and x+3x + 3.
    (x−2)(x+2)x(x+3)⋅(x−3)(x+3)x+2=(x−2)(x−3)x\frac{(x - 2)(x + 2)}{x(x + 3)} \cdot \frac{(x - 3)(x + 3)}{x + 2} = \frac{(x - 2)(x - 3)}{x}

Answer (x−2)(x−3)x\frac{(x - 2)(x - 3)}{x}

Example 4 (test-hard): an equation with an extraneous solution

Problem Solve xx−3−1x=3x(x−3)\frac{x}{x - 3} - \frac{1}{x} = \frac{3}{x(x - 3)}.

  1. Restrictions first: x≠0x \ne 0 and x≠3x \ne 3. The LCD is x(x−3)x(x - 3). Multiply every term by it.
    x2−(x−3)=3x^2 - (x - 3) = 3
  2. Simplify.
    x2−x+3=3x^2 - x + 3 = 3
  3. Subtract 3 and factor.
    x(x−1)=0x(x - 1) = 0
  4. So x=0x = 0 or x=1x = 1. But x=0x = 0 makes a denominator zero, so it is extraneous. Check x=1x = 1: the left side is 1−2−1=−32\frac{1}{-2} - 1 = -\frac{3}{2}, and the right side is 3−2=−32\frac{3}{-2} = -\frac{3}{2}.

Answer x=1x = 1 (x=0x = 0 is extraneous)

Common mistakes

  • Canceling terms instead of factors. In x+6x+2\frac{x + 6}{x + 2}, you cannot cancel the x's. Fix: only cancel a factor that multiplies the entire top and entire bottom.
  • Forgetting to distribute the minus when subtracting. 2−(x+1)2 - (x + 1) is 1−x1 - x, not 3+x3 + x or 1+x1 + x. Fix: put the second numerator in parentheses.
  • Dropping restrictions after canceling. x−3x−2\frac{x - 3}{x - 2} came from an expression undefined at x=−3x = -3. Fix: list restrictions from the original denominators before you cancel.
  • Keeping extraneous solutions. Multiplying by the LCD can create answers that make a denominator zero. Fix: compare every answer to your restriction list.
  • Flipping the wrong fraction when dividing. Only the second fraction (the divisor) flips. Fix: rewrite ÷\div as ⋅\cdot and flip what comes after it.

Quick methods

Practice

5 practice questions

  1. Simplify x2−5xx2−25\frac{x^2 - 5x}{x^2 - 25}.

    1. xx+5\frac{x}{x + 5}
    2. x5\frac{x}{5}
    3. 1x+5\frac{1}{x + 5}
    4. xx−5\frac{x}{x - 5}
    Show answer

    Answer: xx+5\frac{x}{x + 5}

    Factor: x(x−5)(x−5)(x+5)=xx+5\frac{x(x - 5)}{(x - 5)(x + 5)} = \frac{x}{x + 5}. x5\frac{x}{5} comes from canceling the x2x^2 terms, which are not factors.

  2. Which is equal to 3x+2x+4\frac{3}{x} + \frac{2}{x + 4}?

    1. 52x+4\frac{5}{2x + 4}
    2. 5x+12x(x+4)\frac{5x + 12}{x(x + 4)}
    3. 5x+4x(x+4)\frac{5x + 4}{x(x + 4)}
    4. 5x(x+4)\frac{5}{x(x + 4)}
    Show answer

    Answer: 5x+12x(x+4)\frac{5x + 12}{x(x + 4)}

    Over the LCD x(x+4)x(x + 4): 3(x+4)+2xx(x+4)=5x+12x(x+4)\frac{3(x + 4) + 2x}{x(x + 4)} = \frac{5x + 12}{x(x + 4)}. 52x+4\frac{5}{2x + 4} adds tops and bottoms, which never works for fractions.

  3. For which values of x is x+2x2−2x−8\frac{x + 2}{x^2 - 2x - 8} undefined?

    1. 44 and −2-2
    2. 44 only
    3. −2-2 only
    4. −4-4 and 22
    Show answer

    Answer: 44 and −2-2

    The bottom is (x−4)(x+2)(x - 4)(x + 2), which is 0 at x=4x = 4 and x=−2x = -2. The x+2x + 2 cancels when you simplify, but the original expression is still undefined at −2-2.

  4. Solve 4x−1=x+3x−1\frac{4}{x - 1} = \frac{x + 3}{x - 1}.

    1. x=1x = 1
    2. x=4x = 4
    3. x=−1x = -1
    4. No solution
    Show answer

    Answer: No solution

    Multiplying by x−1x - 1 gives 4=x+34 = x + 3, so x=1x = 1. But x=1x = 1 makes both denominators zero, so it is extraneous and there is no solution.

  5. Solve 2x+1+1x−1=4x2−1\frac{2}{x + 1} + \frac{1}{x - 1} = \frac{4}{x^2 - 1}. Enter your answer as a fraction.

    Show answer

    Answer: 5/3

    Multiply by (x+1)(x−1)(x + 1)(x - 1): 2(x−1)+(x+1)=42(x - 1) + (x + 1) = 4, so 3x−1=43x - 1 = 4 and x=53x = \frac{5}{3}. It is not 1 or −1-1, so it is allowed.

Frequently asked questions

Why can't I cancel terms in a fraction?

Canceling is dividing the top and bottom by the same thing. That only works when the thing multiplies everything on top and everything on bottom. In x+6x+2\frac{x + 6}{x + 2}, x is added, not multiplied, so you would be changing the value. Try x=2x = 2: 84=2\frac{8}{4} = 2, but canceling gives 62=3\frac{6}{2} = 3.

What is an extraneous solution?

It is an answer you get from correct algebra that does not work in the original equation. With rational equations it happens when an answer makes a denominator zero. Multiplying both sides by an expression that can be zero is what lets it sneak in.

How do I find the LCD of rational expressions?

Factor every denominator. The LCD uses each different factor the greatest number of times it appears in any one denominator. For x2−1x^2 - 1 and x−1x - 1, the factors are x−1x - 1 and x+1x + 1, so the LCD is (x−1)(x+1)(x - 1)(x + 1).

Try asking Ducky

  • “Why is x = 0 not allowed when the algebra says it works?”
  • “I keep getting 3 + x on top when I subtract. Where is my sign wrong?”
  • “Give me three rational equations, one of them with no solution.”

Free to start. The web app works in any browser, Chromebooks included; the Mac app can also draw on your real screen.