Advanced level

Rational expressions and equations

A fraction with polynomials where the numbers used to be — and the same four operations as on ordinary fractions, only preceded by factoring. The domain and the excluded numbers, cancelling, multiplying and dividing, adding and subtracting, and rational equations in product form.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

Where this is used

Real situations where you count exactly the way this lesson teaches:

  • A round trip there and back
    The same route driven out at 60 km/h and back at 40 km/h averages 2 / (1/60 + 1/40) = 48 km/h, not 50 km/h. The slower leg takes longer and therefore weighs more in the average — and that only becomes visible once the two fractions are put over a common denominator.
  • Decorating with two people
    One painter does a room in 6 hours, the other in 4. Together they work at 1/6 + 1/4 = 5/12 of a room per hour, so they finish in 12/5 = 2.4 hours — 2 hours 24 minutes. The answer "5 hours, the average of 6 and 4" is more than two hours too long.
  • Electronics and resistors in parallel
    Two resistors on parallel branches give a combined resistance R = R₁R₂ / (R₁ + R₂) — which is exactly the sum 1/R₁ + 1/R₂ inverted. For 100 Ω and 150 Ω that is 15,000 / 250 = 60 Ω, less than either of them, which looks like a mistake the first time you meet it.
  • Optics and pulling focus
    The lens equation 1/f = 1/x + 1/y solved for the image distance gives y = xf / (x − f). A 50 mm lens focused on a subject 200 mm away throws its image 200 · 50 / 150 ≈ 66.7 mm behind the lens — that is the extension the barrel has to travel.

All formulas

  • Domain

    D={xR:Q(x)0}D = \{ x \in \mathbb{R} : Q(x) \neq 0 \}

    the domain first, the arithmetic second

  • Cancelling

    P(x)S(x)Q(x)S(x)=P(x)Q(x)\frac{P(x) \cdot S(x)}{Q(x) \cdot S(x)} = \frac{P(x)}{Q(x)}

    only a common FACTOR cancels, never a term

  • Multiplying

    ABCD=ACBD\frac{A}{B} \cdot \frac{C}{D} = \frac{AC}{BD}

    numerator by numerator, denominator by denominator

  • Dividing

    AB:CD=ABDC\frac{A}{B} : \frac{C}{D} = \frac{A}{B} \cdot \frac{D}{C}

    multiply by the reciprocal; the condition C ≠ 0 joins the domain

  • Adding

    AB+CD=AD+CBBD\frac{A}{B} + \frac{C}{D} = \frac{AD + CB}{BD}

    the common denominator is the least common multiple, not always the product

  • Rational equation

    P(x)Q(x)=0    P(x)=0 and Q(x)0\frac{P(x)}{Q(x)} = 0 \iff P(x) = 0 \ \text{and} \ Q(x) \neq 0

    the numerator vanishes — but only inside the domain

The expression x+2x29\dfrac{x + 2}{x^2 - 9} is an algebraic fraction: a quotient of two polynomials. Every rule of the arithmetic is the one you already know from ordinary fractions — with one difference that changes the order of the work. The denominator is not a number but an expression, so for some values of the variable it can vanish. Which is why any problem with an algebraic fraction begins with the domain, not with the calculation.

This lesson is about the expression and the equation. The graph of a rational function and its asymptotes are a separate topic, in the branch on functions.

The domain: what has to be excluded

D={xR:Q(x)0}D = \{ x \in \mathbb{R} : Q(x) \neq 0 \}

To find it, factor the denominator and set each factor to zero:

x29=(x3)(x+3)=0    x=3 or x=3x^2 - 9 = (x - 3)(x + 3) = 0 \iff x = 3 \ \text{or} \ x = -3 D=R{3,3}D = \mathbb{R} \setminus \{-3, 3\}

Two things are worth fixing straight away. A repeated factor excludes one number, not two: the denominator (x5)2(x - 5)^2 forbids only x=5x = 5. And a quadratic factor with a negative discriminant excludes nothing: x2+4x^2 + 4 is never zero, so it takes not a single number out of the domain.

Cancelling

P(x)S(x)Q(x)S(x)=P(x)Q(x)\frac{P(x) \cdot S(x)}{Q(x) \cdot S(x)} = \frac{P(x)}{Q(x)}

What cancels is a factor — something multiplied by everything else. A term of a sum does not cancel, and this is the most common mistake in the whole topic:

x+3x+535\frac{x + 3}{x + 5} \neq \frac{3}{5}

Which is why cancelling is always preceded by factoring: while the numerator and the denominator are sums, there is no way to see what the factors are. This is where the special products and the factor theorem from the lesson on polynomials earn their keep.

Cancel the fraction (x² − 4) / (x² + 4x + 4) and state its domain.

Multiplying and dividing

ABCD=ACBDAB:CD=ABDC\frac{A}{B} \cdot \frac{C}{D} = \frac{AC}{BD} \qquad \frac{A}{B} : \frac{C}{D} = \frac{A}{B} \cdot \frac{D}{C}

The rule is the numerical one, but it pays to apply it in reverse order: factor everything first, cancel crosswise, and only then multiply. Otherwise you produce a quartic that has to be factored back apart a moment later.

x21x+3x+3x1=(x1)(x+1)x+3x+3x1=x+1\frac{x^2 - 1}{x + 3} \cdot \frac{x + 3}{x - 1} = \frac{(x - 1)(x + 1)}{x + 3} \cdot \frac{x + 3}{x - 1} = x + 1

Division brings one extra condition: the divisor may not be zero, so the numerator of the second fraction joins the domain as well.

Adding and subtracting

AB+CD=AD+CBBD\frac{A}{B} + \frac{C}{D} = \frac{AD + CB}{BD}

In practice you do not multiply the denominators blindly — you take their least common multiple, exactly as with numerical fractions. For 1x2\dfrac{1}{x - 2} and 3(x2)(x+1)\dfrac{3}{(x - 2)(x + 1)} the common denominator is (x2)(x+1)(x - 2)(x + 1), not the product of both.

Write as a single fraction: 1/(x − 2) + 3/(x + 1).

Rational equations

P(x)Q(x)=0    P(x)=0 and Q(x)0\frac{P(x)}{Q(x)} = 0 \iff P(x) = 0 \ \text{and} \ Q(x) \neq 0

A fraction is zero exactly when its numerator is zero — the denominator has no say beyond the fact that it must not be zero. Solving a rational equation in product form therefore has three steps: the domain, the zeros of the numerator, and discarding whichever of them fell outside the domain.

−5−4−3−2−10123456++−314(x − 1)(x + 3) / (x − 4)
The filled dots at −3 and 1 are where the expression is zero. The hollow dot at 4 is a hole in the domain — there the expression has no value at all.

The drawing shows the difference between two kinds of point on the axis. The zeros of the numerator are filled: they lie in the domain and they solve the equation. The zero of the denominator is hollow — and it stays hollow however the equation is rewritten.

Solve (x − 1)(x − 4) / (x − 4) = 0.

An equation with the unknown in a denominator that is not yet written as "a fraction equal to zero" is brought to that form: move everything to one side and put it over a common denominator. Multiplying both sides by the denominator works too — provided the domain was written down first, because the multiplication itself loses it.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
simplify (x² − 6x + 8)/(x² − 9x + 20)

Common mistakes

  • Cancelling a term instead of a factor — nothing cancels in x+3x+5\dfrac{x + 3}{x + 5}. The numerical check: at x=1x = 1 it is 46\tfrac{4}{6}, not 35\tfrac{3}{5}.
  • The domain after cancelling — the excluded numbers are read off the original denominator. The shortened fraction does not show them, but they still apply.
  • Counting a repeated factor twice — the denominator (x5)2(x - 5)^2 excludes one number, not two.
  • Forgetting the divisor's domain — when dividing fractions, the numerator of the second one may not be zero either, since inverting sends it into a denominator.
  • The minus in front of a fraction — subtracting 3x2x+1\dfrac{3x - 2}{x + 1} flips the sign of the whole numerator, both terms, not only the first.
  • Multiplying the equation through without stating the domain — after that multiplication nothing in the arithmetic remembers the excluded number, and it can be handed in as a solution.

Formula card

Topic: Rational expressions and equations

  • Domain

    D={xR:Q(x)0}D = \{ x \in \mathbb{R} : Q(x) \neq 0 \}

    the domain first, the arithmetic second

  • Cancelling

    P(x)S(x)Q(x)S(x)=P(x)Q(x)\frac{P(x) \cdot S(x)}{Q(x) \cdot S(x)} = \frac{P(x)}{Q(x)}

    only a common FACTOR cancels, never a term

  • Multiplying

    ABCD=ACBD\frac{A}{B} \cdot \frac{C}{D} = \frac{AC}{BD}

    numerator by numerator, denominator by denominator

  • Dividing

    AB:CD=ABDC\frac{A}{B} : \frac{C}{D} = \frac{A}{B} \cdot \frac{D}{C}

    multiply by the reciprocal; the condition C ≠ 0 joins the domain

  • Adding

    AB+CD=AD+CBBD\frac{A}{B} + \frac{C}{D} = \frac{AD + CB}{BD}

    the common denominator is the least common multiple, not always the product

  • Rational equation

    P(x)Q(x)=0    P(x)=0 and Q(x)0\frac{P(x)}{Q(x)} = 0 \iff P(x) = 0 \ \text{and} \ Q(x) \neq 0

    the numerator vanishes — but only inside the domain

−5−4−3−2−10123456++−314(x − 1)(x + 3) / (x − 4)
The equation (x − 1)(x + 3) / (x − 4) = 0. The filled dots at −3 and 1 are solutions, the hollow dot at 4 is a number outside the domain.

Frequently asked questions

Related articles