12. Rational Expressions
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
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
- Factor numerator and denominator completely.
- Cancel common factors (entire parenthesized expressions, not individual terms).
- State domain restrictions for any cancelled factors.
The cancelled
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.
- Factor every denominator.
- Build the least common denominator (LCD): the product of every distinct factor, each raised to the highest power it appears in any single denominator.
- Rewrite each fraction over the LCD by multiplying numerator and denominator by the missing factors.
- 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
ML connection — Bayes’ theorem
Bayes’ theorem is structurally a rational expression:
The denominator
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.
- Problem 1What’s the domain of
? Show solution
Domain: all real
except and . - Problem 2Simplify:
. Show solution
, . - Problem 3Multiply:
. Show solution
, . - Problem 4Divide:
. Show solution
, . - Problem 5Simplify:
. Show solution
. - Problem 6Why 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. - Problem 7Multiply:
. Show solution
, .
Practice quiz
- Question 1Domain restriction for (x+1)/(x-2):
- Question 2Simplify: (x² - 4)/(x - 2)
- Question 3Multiply: (x/2) · (4/x) (assuming x ≠ 0)
- Question 4Simplify: (x² - 9)/(x² + 5x + 6). Use parentheses.
- Question 5Divide: (x²)/(x+1) ÷ (x)/(x+1)
- Question 6Common error to AVOID: cancel x in (x + 1)/(x + 2)?
- Question 7ML connection: Bayes’ theorem is structurally:
- Question 8Simplify: (2x + 6)/(4)
- Question 9Domain of (x+1)/((x-3)(x+5)):
- Reflection 10Why 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.