30% off your first 3 months

Get the deal

Rational expressions

A rational expression is a fraction with polynomials on the top and the bottom, like x2−9x2+5x+6\frac{x^2 - 9}{x^2 + 5x + 6}.

Guide 4 of 8
Handwritten working: x squared minus 9 over x squared plus 5x plus 6 equals x minus 3 times x plus 3, over x plus 2 times x plus 3. The x plus 3 on top and bottom are marked in blue. That equals x minus 3 over x plus 2, circled.
(x² − 9) / (x² + 5x + 6). Factor both, cancel the (x + 3): (x − 3) / (x + 2).

Why it works. A fraction keeps its value when you divide the top and the bottom by the same thing, and a factor that is in both is exactly that: x+3x+3=1\frac{x + 3}{x + 3} = 1. Terms joined by + or − are not factors, so they cannot be cancelled on their own.


Your turn

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

Or just show the answer

x+2x+1\frac{x + 2}{x + 1}, for x≠2x \ne 2 and x≠−1x \ne -1

Top: (x−2)(x+2)(x - 2)(x + 2). Bottom: (x−2)(x+1)(x - 2)(x + 1), since −2-2 and 1 multiply to −2-2 and add to −1-1. Cancel x−2x - 2 to get x+2x+1\frac{x + 2}{x + 1}.


Watch out for

  • Mistake 1. Struck through: x + 3 over x + 5 = 3 over 5; written over it: x + 3 over x + 5.

    Cancelling terms: x+3x+5=35\frac{x + 3}{x + 5} = \frac{3}{5}.

    Only factors cancel. x+3x+5\frac{x + 3}{x + 5} has no common factor, so it stays as it is.

  • Mistake 2. Struck through: x^2 − 9 over x^2 + 5x + 6 = −9 over 5x + 6; written over it: x − 3 over x + 2.

    Cancelling the x2x^2: x2−9x2+5x+6=−95x+6\frac{x^2 - 9}{x^2 + 5x + 6} = \frac{-9}{5x + 6}.

    Factor first. The x2x^2 is part of a sum, not a factor.

  • Mistake 3. Struck through: x = −3 allowed; written over it: x ≠ −2, −3.

    Forgetting the excluded values once x+3x + 3 has cancelled.

    x=−3x = -3 still makes the first bottom 0, so it stays excluded.


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Why can I cancel this factor but not this term? Show me on my problem.”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

A rational expression is a fraction with polynomials on the top and the bottom, like x2−9x2+5x+6\frac{x^2 - 9}{x^2 + 5x + 6}. To simplify one, factor the top and the bottom completely, then cancel the factors that are exactly the same. Only whole factors cancel, never single terms. The values of x that make the first bottom zero stay excluded, even after cancelling.

Worked example

Simplify x2−9x2+5x+6\frac{x^2 - 9}{x^2 + 5x + 6}.

  1. Factor the top. It is a difference of squares.
    x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3)
  2. Factor the bottom: 2 and 3 multiply to 6 and add to 5.
    x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3)
  3. Cancel the factor x+3x + 3, which is on both.
    (x−3)(x+3)(x+2)(x+3)=x−3x+2\frac{(x - 3)(x + 3)}{(x + 2)(x + 3)} = \frac{x - 3}{x + 2}
  4. The first bottom is 0 at x=−2x = -2 and at x=−3x = -3, so those two values are not allowed.

Answer: x−3x+2\frac{x - 3}{x + 2}, for x≠−2x \ne -2 and x≠−3x \ne -3

Algebra 2: all 8 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.