Week 12 · Intermediate Algebra

12. Rational Expressions

120 min

Before you start

  • Add, subtract, multiply, and factor polynomials of degree up to three
  • Multiply and divide numerical fractions and reduce to lowest terms
  • Identify common factors in linear and quadratic expressions
  • Recognize when an expression is undefined because of division by zero

By the end you'll be able to

  • State the domain restrictions of any rational expression by setting denominators not equal to zero
  • Simplify rational expressions by factoring numerator and denominator and cancelling common factors
  • Multiply two rational expressions and simplify the result
  • Divide two rational expressions by multiplying by the reciprocal of the divisor
  • Recognize and refuse the cancel-across-addition trap
Week 12 video coming soon
Read the lesson body below in the meantime.

Rational Expressions

A rational expression is a fraction whose numerator and denominator are polynomials. Like fractions of numbers, they simplify by cancelling common factors — never common terms.

Domain restrictions

The denominator can’t be zero. Always identify the values that would zero it out and exclude them from the domain.

State domain restrictions before simplifying. After simplifying, the cancelled factors still create restrictions.

Simplifying

  1. Factor numerator and denominator completely.
  2. Cancel common factors (entire parenthesized expressions, not individual terms).
  3. State domain restrictions for any cancelled factors.

The cancelled doesn’t appear in the simplified expression but its restriction survives.

The cancellation rule (THE most common error)

You can cancel factors (multiplied) but never terms (added or subtracted).

  • Wrong: — the ’s aren’t factors.
  • Right: — the ’s are factors.

Memorize this rule. Internalize it. Half the algebra mistakes in calculus trace back here.

Multiplying and dividing

Multiply: factor everything, multiply numerators, multiply denominators, cancel any factors that appear in any numerator and any denominator.

Divide: flip the second fraction (multiplicative inverse) and multiply.

Adding and subtracting (LCD method)

Adding rational expressions follows the same rule as adding numerical fractions: a common denominator is required before the numerators can combine.

  1. Factor every denominator.
  2. Build the least common denominator (LCD): the product of every distinct factor, each raised to the highest power it appears in any single denominator.
  3. Rewrite each fraction over the LCD by multiplying numerator and denominator by the missing factors.
  4. Add or subtract the numerators (keeping the LCD), then simplify.

Worked example:

This LCD machinery is a prerequisite for next week’s rational equations: clearing denominators in is exactly the same LCD construction, just applied to both sides of an equals sign rather than across a single sum.

ML connection — Bayes’ theorem

Bayes’ theorem is structurally a rational expression:

The denominator is often hard to compute (it’s an integral over all hypotheses). In many ML algorithms — Naive Bayes, MAP estimation — when the denominator is independent of the parameter we’re optimizing, we can drop it (it doesn’t affect which value of the parameter maximizes the expression). That’s the same “cancel factors that don’t depend on what we care about” intuition you just practiced.

Common mistakes

These are the traps learners hit most often on this topic. Knowing them in advance is half the fix.

  • Cancelling terms across addition

    does not simplify by ‘cancelling x’. The ’s are terms (added), not factors (multiplied). You can only cancel factors.

  • Missing domain restrictions

    simplifies to , but you must state AND — both denominators of the original (after factoring) must be nonzero.

  • Flipping the wrong fraction in division

    Division means multiply by the reciprocal of the second (divisor) fraction. . Flipping the first fraction gives the wrong answer.

Practice problems

Try each on paper first. Click Show solution only after you've made a real attempt.

  1. Problem 1
    What’s the domain of ?
    Show solution

    Domain: all real except and .

  2. Problem 2
    Simplify: .
    Show solution

    , .

  3. Problem 3
    Multiply: .
    Show solution

    , .

  4. Problem 4
    Divide: .
    Show solution

    , .

  5. Problem 5
    Simplify: .
    Show solution

    .

  6. Problem 6
    Why does the cancellation rule matter for ML probability?
    Show solution

    When the marginal is independent of the parameter, it cancels as a common factor — the same rule you applied to rational expressions.

  7. Problem 7
    Multiply: .
    Show solution

    , .

Practice quiz

  1. Question 1
    Domain restriction for (x+1)/(x-2):
  2. Question 2
    Simplify: (x² - 4)/(x - 2)
  3. Question 3
    Multiply: (x/2) · (4/x) (assuming x ≠ 0)
  4. Question 4
    Simplify: (x² - 9)/(x² + 5x + 6). Use parentheses.
  5. Question 5
    Divide: (x²)/(x+1) ÷ (x)/(x+1)
  6. Question 6
    Common error to AVOID: cancel x in (x + 1)/(x + 2)?
  7. Question 7
    ML connection: Bayes’ theorem is structurally:
  8. Question 8
    Simplify: (2x + 6)/(4)
  9. Question 9
    Domain of (x+1)/((x-3)(x+5)):
  10. Reflection 10
    Why does Bayes’ theorem look like a rational expression, and why does that matter for ML?

Week 12 recap

You factored numerators and denominators of rational expressions, identified domain restrictions before any cancellation, and multiplied and divided them by leveraging factoring plus cancellation of common factors. The discipline of NEVER cancelling across addition (only across multiplication) is the single most important habit to internalize here. Three trap families fell: the cancel-across-addition trap (treating terms like factors), the drop-the-restriction trap (forgetting cancelled denominators still impose domain limits), and the flip-the-wrong-fraction trap (inverting the dividend instead of the divisor). The cumulative review reinforced factoring, vertex form, completing the square, and the three quadratic-solving methods from weeks nine through eleven.

Coming next: Week 13 — Solving Rational Equations

Next week solves equations that contain rational expressions, where extraneous solutions can sneak in when you multiply through by a variable expression. You will learn to clear denominators with the LCD, solve the resulting polynomial equation, and verify each candidate against the original domain. The verify-the-domain habit transfers directly to numerical stability concerns in ML training loops where division by near-zero values causes silent bugs.

Saved in your browser only — no account, no server.