13. Solving Rational Equations
Before you start
- Simplify rational expressions and identify domain restrictions
- Find the least common denominator of two or three polynomial denominators
- Cross-multiply two equal fractions to clear denominators
- Solve linear and quadratic equations from prior weeks
By the end you'll be able to
- Solve rational equations by multiplying both sides by the LCD
- Identify and discard extraneous solutions that violate the original domain
- Solve a rational equation that yields a quadratic after clearing denominators
- Set up rate problems (work, distance, mixture) as rational equations
- Use cross-multiplication appropriately for two-fraction equations
Solving Rational Equations
A rational equation contains rational expressions on at least one side. Solve by clearing denominators, then check candidate solutions against the original equation’s domain.
The procedure
- Identify domain restrictions by listing values that zero any denominator.
- Find the LCD (least common denominator) of all rational expressions.
- Multiply both sides of the equation by the LCD. This clears all fractions.
- Solve the resulting polynomial equation.
- Verify each candidate against the domain. Discard any that match an excluded value (extraneous roots).
Example
Domain:
Verify:
Cross-multiplication
For the simple form
This is just multiplying both sides by
Extraneous solutions — the trap
Multiplying both sides of an equation by a variable expression can introduce candidates that solve the cleared equation but not the original. Always verify.
Example:
But
Why this matters for ML
Many ML formulas have division (softmax denominators, Bayes marginals, normalization constants). The corresponding numerical-stability discipline:
- Don’t divide by a near-zero number. Add an
epsilon(1e−8) to any denominator that could approach zero. - Don’t take
log(0). Same epsilon trick:log(p + 1e−8). - Verify your formula against edge cases. What happens at
x = 0? At very largex?
The “always check the domain” habit you build with rational equations transfers directly to “always check for NaN propagation” in ML training loops.
Common mistakes
These are the traps learners hit most often on this topic. Knowing them in advance is half the fix.
Failing to verify against the original domain
Multiplying through by an LCD can introduce extraneous solutions — values that satisfy the cleared equation but make the original equation undefined (denominator zero). Always substitute back to check.
Wrong LCD
For
, the LCD is , not or just . Find the smallest expression both denominators divide evenly. Cross-multiplying with more than two fractions
Cross-multiplication only works for
. For , multiply through by the LCD instead.
Practice problems
Try each on paper first. Click Show solution only after you've made a real attempt.
- Problem 1Solve:
. Show solution
Multiply by LCD 4:
. - Problem 2Solve:
. Show solution
. - Problem 3Solve:
. Show solution
Candidate
makes the denominator zero. No solution. - Problem 4Solve:
. Show solution
. - Problem 5Solve:
. Show solution
. - Problem 6Solve:
. Show solution
. - Problem 7Solve a work problem: A pipe fills a tank in 3 hours; another fills it in 6 hours. How long together?
Show solution
. hours.
Practice quiz
- Question 1Solve: x/2 = 6/4
- Question 2First step in solving 1/x + 1/2 = 3/4:
- Question 3Solve: 2/x = 4. (One number.)
- Question 4Solve: (x + 1)/3 = 5/6
- Question 5Why must we check candidate solutions in rational equations?
- Question 6Solve: x/(x - 1) = 2
- Question 7Solve: 1/(x - 2) = 1/(x - 2). Domain check tells us:
- Question 8Solve: 1/x + 2 = 5
- Question 9If x = 0 makes a denominator zero, x = 0 is:
- Reflection 10How does this connect to numerical stability in ML?
Week 13 recap
You solved rational equations by clearing denominators (multiply by the LCD) and verified candidates against domain restrictions to eliminate extraneous solutions. Three trap families fell: the extraneous-solution trap (failing to check candidates against the original domain), the wrong-LCD trap (using the sum of denominators instead of their least common multiple), and the cross-multiply-too-much trap (applying cross-multiplication to a three-fraction equation). The practice of always asking ‘can the denominator be zero?’ is the same habit that prevents NaN crashes in ML training loops, where softmax denominators and normalization terms must be guarded against underflow.
Coming next: Week 14 — Radicals & Rational Exponents
Next week introduces radicals and fractional exponents. You will learn the
dual notation
Saved in your browser only — no account, no server.