Rational Expressions

Adding Rational Expressions, Step by Step

Adding rational expressions works like adding fractions: give both terms the same denominator, add the numerators, and keep that denominator, so ab+cd=ad+bcbd\frac{a}{b}+\frac{c}{d}=\frac{ad+bc}{bd}. Subtraction follows the same pattern with ad−bcad-bc on top.

ab+cd=ad+bcbd\frac{a}{b}+\frac{c}{d}=\frac{ad+bc}{bd}

That formula always works, but the least common denominator (LCD) keeps the algebra small and the answer nearly simplified. The sections below show how to build the LCD from factored denominators, how to subtract without dropping a sign, the shortcut for opposite denominators, and a quick numeric test that catches almost every mistake.

Why does adding rational expressions need a common denominator?

A fraction counts pieces of a particular size. The fraction 38\frac{3}{8} is three eighths, and you can only add counts of pieces that are the same size. Multiplying the top and bottom by the same nonzero expression multiplies the fraction by 1, so it changes the name but not the value. Give the first term dd on the bottom and the second term bb, and the piece sizes match:

ab+cd=adbd+bcbd=ad+bcbd\frac{a}{b}+\frac{c}{d}=\frac{ad}{bd}+\frac{bc}{bd}=\frac{ad+bc}{bd}

That one line is the whole rule. Everything else in this topic is bookkeeping about which factor to multiply by.

The product bdbd always works as a common denominator, but it is rarely the least one. When bb and dd share a factor, bdbd carries that factor twice and you must cancel the extra copy later. For subtraction, the numerator ad−bcad-bc is the determinant of a 2×2 matrix with rows (a, b)(a,\ b) and (c, d)(c,\ d). That gives a handy memory pattern: top of the first times bottom of the second, minus top of the second times bottom of the first.

Quick check

Use the formula to add 2x+35\frac{2}{x}+\frac{3}{5}.

How do you find the LCD of rational expressions?

The LCD is built from factors, not from whole denominators. Factor every denominator completely, list each distinct factor once, and give it the highest power it reaches in any single denominator. For x2(x+1)x^2(x+1) and x(x+1)3x(x+1)^3, the LCD is x2(x+1)3x^2(x+1)^3.

The divisibility test

A valid LCD must divide evenly by every denominator. Divide the LCD by one denominator and the quotient is exactly the missing factor that fraction needs.

The costly trap is multiplying denominators out of habit. It still gives a correct sum, but it hides a shared factor and leaves you a bigger cancellation job. The opposite trap is treating x−2x-2 and x+2x+2 as the same because they look alike. Two factors are shared only when they are identical (or exact opposites, covered below). Your factoring skills from simplifying rational expressions do the heavy lifting here.

Denominators LCD
xx and x+1x+1 x(x+1)x(x+1)
x2−9x^2-9 and x+3x+3 x2−9x^2-9
x2yx^2y and xy3xy^3 x2y3x^2y^3
x2+4x+4x^2+4x+4 and x+2x+2 (x+2)2(x+2)^2

When a denominator such as 2x2+x−62x^2+x-6 resists factoring, use its roots. The quadratic formula gives x=−1±74x=\frac{-1\pm 7}{4}, so x=32x=\frac{3}{2} or x=−2x=-2, and the factorization is 2(x−32)(x+2)=(2x−3)(x+2)2\left(x-\frac{3}{2}\right)(x+2)=(2x-3)(x+2). If that formula feels rusty, these quadratic formula practice problems are a good warm-up.

How do you add rational expressions with unlike denominators?

Follow the same sequence every time:

  1. Factor each denominator completely.
  2. Build the LCD from the highest power of each factor.
  3. Multiply each fraction, top and bottom, by its missing factor.
  4. Add the numerators over the LCD, then collect like terms.
  5. Factor the numerator, cancel common factors, and list the excluded values.

Here it is on 3x2−x−6+2x2−9\frac{3}{x^2-x-6}+\frac{2}{x^2-9}. Factoring gives 3(x−3)(x+2)+2(x−3)(x+3)\frac{3}{(x-3)(x+2)}+\frac{2}{(x-3)(x+3)}. The shared factor (x−3)(x-3) appears once, so the LCD is (x−3)(x+2)(x+3)(x-3)(x+2)(x+3). The first fraction is missing (x+3)(x+3) and the second is missing (x+2)(x+2):

3(x+3)+2(x+2)(x−3)(x+2)(x+3)=3x+9+2x+4(x−3)(x+2)(x+3)=5x+13(x−3)(x+2)(x+3)\frac{3(x+3)+2(x+2)}{(x-3)(x+2)(x+3)}=\frac{3x+9+2x+4}{(x-3)(x+2)(x+3)}=\frac{5x+13}{(x-3)(x+2)(x+3)}

The numerator 5x+135x+13 has no factor in common with the denominator, so the answer is final. The values x=3x=3, x=−2x=-2 and x=−3x=-3 are excluded, which is the same idea as finding the domain of a rational function.

Keep the denominator in factored form until the very end. Expanding it early destroys the factors you need for cancelling.

How do you subtract rational expressions without losing a sign?

The minus sign belongs to the entire second numerator, not just its first term. Most lost points in this topic come from writing x2+3x+2−x−3x^2+3x+2-x-3 when the line should read (x2+3x+2)−(x−3)(x^2+3x+2)-(x-3). A reliable habit is to wrap every numerator in parentheses the moment you put it over the LCD.

Take x+1x−2−x−3x2−4\frac{x+1}{x-2}-\frac{x-3}{x^2-4}. Since x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2), only the first fraction needs a new factor:

(x+1)(x+2)(x−2)(x+2)−x−3(x−2)(x+2)=(x2+3x+2)−(x−3)(x−2)(x+2)=x2+2x+5(x−2)(x+2)\frac{(x+1)(x+2)}{(x-2)(x+2)}-\frac{x-3}{(x-2)(x+2)}=\frac{(x^2+3x+2)-(x-3)}{(x-2)(x+2)}=\frac{x^2+2x+5}{(x-2)(x+2)}

Dropping the parentheses would give x2+2x−1x^2+2x-1 instead of x2+2x+5x^2+2x+5, because −(−3)-(-3) is +3+3, not −3-3. The quadratic x2+2x+5x^2+2x+5 has a negative discriminant, so it does not factor and nothing cancels.

If sign slips keep happening, convert subtraction to addition of a negative numerator: write x+1x−2+−(x−3)x2−4\frac{x+1}{x-2}+\frac{-(x-3)}{x^2-4} and distribute the negative before you combine anything.

Quick check

Subtract xx+1−x−2x+1\frac{x}{x+1}-\frac{x-2}{x+1}.

What if the denominators are opposites or one is a plain number?

Two denominators are opposites when they differ only by sign, such as x−5x-5 and 5−x5-x. Since 5−x=−(x−5)5-x=-(x-5), you can pull the negative out and flip the sign of that fraction’s numerator. For 4x−5+25−x\frac{4}{x-5}+\frac{2}{5-x}:

4x−5+−2x−5=2x−5\frac{4}{x-5}+\frac{-2}{x-5}=\frac{2}{x-5}

The common error is changing the sign of the denominator and leaving the numerator alone. Multiplying top and bottom by −1-1 changes both. Using (x−5)(5−x)(x-5)(5-x) as the LCD is legal, but it adds an extra factor you will only have to cancel.

A plain number or a lone variable is just a fraction over 1. For 3−2x+13-\frac{2}{x+1}, write 3(x+1)x+1−2x+1=3x+1x+1\frac{3(x+1)}{x+1}-\frac{2}{x+1}=\frac{3x+1}{x+1}. Numeric denominators need nothing special either: x2+x3=3x+2x6=5x6\frac{x}{2}+\frac{x}{3}=\frac{3x+2x}{6}=\frac{5x}{6}, which is simply 12x+13x\frac{1}{2}x+\frac{1}{3}x combined like terms.

Adding rational expressions vs. solving rational equations

Bar diagram comparing the wrong sum two fifths with the correct sum five sixths of one half plus one third
Adding across gives 2/5, which falls short of 1/2, but the correct sum 5/6 is longer than either term.

An expression has no equals sign, so you cannot multiply by the LCD to clear denominators. Doing so changes the value. When you add expressions, the denominator stays in your answer. In an equation, multiplying both sides by the LCD is allowed and is how you remove the fractions.

Why not add across?

Adding tops and bottoms turns 12+13\frac{1}{2}+\frac{1}{3} into 25\frac{2}{5}, which is less than 12\frac{1}{2}. A sum of positive terms must beat each term, so the answer should be 56\frac{5}{6}.

For example, solving 1x+1x+1=56\frac{1}{x}+\frac{1}{x+1}=\frac{5}{6} means multiplying by 6x(x+1)6x(x+1), which gives 5x2−7x−6=05x^2-7x-6=0 and the solutions x=2x=2 and x=−35x=-\frac{3}{5}. Both survive because neither makes a denominator zero. After solving any rational equation, always test for solutions that are excluded.

Multiplication is the one operation where going straight across is correct, which is why multiplying and dividing rational expressions needs no LCD. The reverse of adding is partial fraction decomposition, where one fraction is split back into a sum of simpler ones.

How do you check the sum of two rational expressions?

Pick a value of xx that is not excluded, evaluate the original sum and your answer, and compare. For 3x2−x−6+2x2−9\frac{3}{x^2-x-6}+\frac{2}{x^2-9} at x=0x=0, the original is −12−29=−1318-\frac{1}{2}-\frac{2}{9}=-\frac{13}{18}, and the answer 5x+13(x−3)(x+2)(x+3)\frac{5x+13}{(x-3)(x+2)(x+3)} gives 13(−3)(2)(3)=−1318\frac{13}{(-3)(2)(3)}=-\frac{13}{18}. They match.

One test value can match by luck, so use two, and avoid x=0x=0 or x=1x=1 only if they are excluded. A short checklist before you move on:

  • The sign of the result makes sense at your test value.
  • Every excluded value from the original denominators is listed.
  • The numerator has been factored and no common factor remains.

Try this: Add 1x+1x+1\frac{1}{x}+\frac{1}{x+1}, then test your answer at x=1x=1 and x=2x=2. Both sides should give 32\frac{3}{2} and 56\frac{5}{6}.

Restrictions come from the original denominators, even when a factor cancels. For instance, xx−1−1x−1=x−1x−1=1\frac{x}{x-1}-\frac{1}{x-1}=\frac{x-1}{x-1}=1, but x=1x=1 is still not allowed. On a graph that is a hole, not a line. Only the factors left in the denominator after cancelling produce vertical asymptotes.

Where does adding rational expressions show up in real problems?

Rates add, and rates are reciprocals of times. If one pipe fills a tank in 4 hours and another in 6, together they fill 14+16=512\frac{1}{4}+\frac{1}{6}=\frac{5}{12} of it per hour, so the job takes 125=2.4\frac{12}{5}=2.4 hours. Parallel resistors use the same structure: 1R=1R1+1R2\frac{1}{R}=\frac{1}{R_1}+\frac{1}{R_2}, which rearranges to R=R1R2R1+R2R=\frac{R_1R_2}{R_1+R_2}.

Calculus leans on this skill constantly. The slope of f(x)=1xf(x)=\frac{1}{x} between xx and x+hx+h is a subtraction of rational expressions:

1x+h−1xh=x−(x+h)x(x+h)h=−hh x(x+h)=−1x(x+h)\frac{\frac{1}{x+h}-\frac{1}{x}}{h}=\frac{\frac{x-(x+h)}{x(x+h)}}{h}=\frac{-h}{h\,x(x+h)}=-\frac{1}{x(x+h)}

As hh shrinks to 0, the slope becomes −1x2-\frac{1}{x^2}. At x=2x=2 that slope is −14-\frac{1}{4} at the point (2,12)\left(2,\frac{1}{2}\right), and point-slope form gives the tangent line y−12=−14(x−2)y-\frac{1}{2}=-\frac{1}{4}(x-2).

Subtraction also powers telescoping sums. Because 1n(n+1)=1n−1n+1\frac{1}{n(n+1)}=\frac{1}{n}-\frac{1}{n+1}, the sum 11⋅2+12⋅3+⋯+1N(N+1)\frac{1}{1\cdot2}+\frac{1}{2\cdot3}+\dots+\frac{1}{N(N+1)} collapses to 1−1N+11-\frac{1}{N+1}. With N=3N=3 that is 12+16+112=34\frac{1}{2}+\frac{1}{6}+\frac{1}{12}=\frac{3}{4}. Unlike the arithmetic series formula, where the terms grow and add up, here the terms cancel in pairs.

Quick check

Two resistors of 6 Ω6\ \Omega and 3 Ω3\ \Omega are wired in parallel. What is the total resistance?

Practice problems

0 of 5 solved

  1. Add 2x+3x2\frac{2}{x}+\frac{3}{x^2}.

  2. Add 3x−1+2x+4\frac{3}{x-1}+\frac{2}{x+4}.

  3. Add xx−4+34−x\frac{x}{x-4}+\frac{3}{4-x}.

  4. Subtract xx+3−2x−1\frac{x}{x+3}-\frac{2}{x-1}.

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

Common questions

How do you add rational expressions with different denominators?

Factor each denominator, build the least common denominator, and multiply each fraction by whatever factor it is missing. Then add the numerators over the shared denominator, factor the result, and cancel any common factors.

Do you always have to use the least common denominator?

No. Any common denominator gives a correct sum, including the plain product of the denominators. The LCD just keeps the numbers smaller and usually leaves less to cancel at the end.

Can you add rational expressions by adding the tops and adding the bottoms?

No. That gives 12+13=25\frac{1}{2}+\frac{1}{3}=\frac{2}{5}, which is smaller than 12\frac{1}{2} even though you added a positive number. Only multiplication works straight across.

How do you add a whole number or a variable to a rational expression?

Write the whole number over 1, then find the LCD as usual. For example, 3+2x=3xx+2x=3x+2x3+\frac{2}{x}=\frac{3x}{x}+\frac{2}{x}=\frac{3x+2}{x}.

What do you do when the denominators are opposites, like x - 5 and 5 - x?

Factor −1-1 out of one denominator, which flips the sign of that fraction's numerator. Then both denominators match and you can add the numerators directly.

Do you need to state restrictions on x after adding?

Yes. Exclude every value that made an original denominator zero, even if that factor cancels later. The simplified answer alone would hide those restrictions.

Up next