This site is a work in progress. New lessons are added regularly. Contact us

Algebraic Fractions

Learning goals

  • Exclude every value that makes the denominator zero
  • Cancel a shared factor, never a term
  • Multiply straight across, cancelling first where you can
  • Divide by multiplying by the reciprocal of the divisor
  • Add over a common denominator, distributing a leading minus

What an algebraic fraction is

An algebraic fraction, also called a rational expression, is a ratio of two expressions, one written over the other:

numeratordenominator,for examplex+1x2.\frac{\text{numerator}}{\text{denominator}}, \qquad \text{for example} \qquad \frac{x + 1}{x - 2}.

The bar means exactly what it has always meant, “divide the top by the bottom.” So the fraction stands for the number you get once you choose a value of xx, substitute it, and carry out the division. At x=5x = 5 the example above is 5+152=63=2\tfrac{5 + 1}{5 - 2} = \tfrac{6}{3} = 2.

There is one value you are never allowed to choose. Division by zero has no meaning, so the denominator can never equal zero. Any value of the variable that would make the bottom zero is excluded, and the fraction simply is not defined there. In x+1x2\tfrac{x + 1}{x - 2} the denominator x2x - 2 is zero when x=2x = 2, so x=2x = 2 is excluded and we write x2x \neq 2. Every algebraic fraction carries a restriction like this, and keeping track of it is part of handling the fraction honestly. Finding the excluded values is quick: set the denominator equal to zero and read off the values to avoid. For 5x\tfrac{5}{x} the excluded value is x=0x = 0; for x2x6\tfrac{x}{2x - 6} it is x=3x = 3, since 2x6=02x - 6 = 0 there.

Simplifying by cancelling a common factor

To simplify an algebraic fraction is to rewrite it with a smaller numerator and denominator that name the same value, exactly as 69\tfrac{6}{9} becomes 23\tfrac{2}{3}. In arithmetic you did this by dividing top and bottom by a common factor. The rule for expressions is identical, and it rests on a single fact you have used since you first met equivalent fractions. A factor that appears in both the top and the bottom forms a copy of 11, and multiplying by 11 changes nothing.

Why a factor shared by top and bottom can be cancelled#

Suppose the numerator and denominator share a common factor cc, so the fraction has the form acbc\dfrac{a \cdot c}{b \cdot c} with c0c \neq 0 and b0b \neq 0. Because multiplying fractions means multiplying the tops and multiplying the bottoms, that single fraction can be pulled apart into a product of two:

acbc=abcc.\frac{a \cdot c}{b \cdot c} = \frac{a}{b} \cdot \frac{c}{c}.

Now look at the second factor. Any nonzero quantity divided by itself is 11, so cc=1\dfrac{c}{c} = 1, and multiplying by 11 leaves the first factor untouched:

abcc=ab1=ab.\frac{a}{b} \cdot \frac{c}{c} = \frac{a}{b} \cdot 1 = \frac{a}{b}.

So acbc=ab\dfrac{a \cdot c}{b \cdot c} = \dfrac{a}{b}. Cancelling the common factor cc is nothing more than recognizing the hidden cc=1\tfrac{c}{c} = 1 and dropping it. This is why the two fractions name the same value: they differ only by a factor of 11. The one condition is that cc must not be zero, which is guaranteed as long as the variable stays away from the excluded values.

The whole method, then, is to factor the numerator and denominator, find the factor they share, and cancel it. The tool for the factoring is the one from the previous lesson: pull out the greatest common factor. Take 6x29x\tfrac{6x^2}{9x}. Writing 6x2=3x2x6x^2 = 3x \cdot 2x and 9x=3x39x = 3x \cdot 3 exposes the shared factor 3x3x, which cancels:

6x29x=3x2x3x3=2x3,x0.\frac{6x^2}{9x} = \frac{3x \cdot 2x}{3x \cdot 3} = \frac{2x}{3}, \qquad x \neq 0.
Cancelling the common factor 3xThe fraction with numerator 3x times 2x and denominator 3x times 3 has the factor 3x struck out on both top and bottom, since 3x over 3x is 1, giving 2x over 3.(3x)(2x)(3x)(3)=2x3the common factor 3x cancels because 3x/3x = 1
Factoring the top and bottom of 6x squared over 9x exposes the shared factor 3x. Because 3x over 3x is 1, that factor cancels and leaves 2x over 3.

The same idea handles a numerator that is a sum, once you factor it. In x2+3xx\tfrac{x^2 + 3x}{x} the top factors as x(x+3)x(x + 3), so the shared xx cancels:

x2+3xx=x(x+3)x=x+3,x0.\frac{x^2 + 3x}{x} = \frac{x(x + 3)}{x} = x + 3, \qquad x \neq 0.

And a shared binomial factor cancels the same way a monomial does. Since 3x+6=3(x+2)3x + 6 = 3(x + 2), the factor x+2x + 2 is common to top and bottom of 3x+6x+2\tfrac{3x + 6}{x + 2}:

3x+6x+2=3(x+2)x+2=3,x2.\frac{3x + 6}{x + 2} = \frac{3(x + 2)}{x + 2} = 3, \qquad x \neq -2.

Here is the trap that snares more students than any other, so it is worth stating sharply: you may cancel common factors, never individual terms. A factor is something multiplied by the rest; a term is something added to the rest. Cancelling is dividing, and dividing only distributes over a product, not over a sum. In x+33\tfrac{x + 3}{3} the 33 on the bottom is a factor, but the 33 on top is a term, added to xx, not multiplying it. There is no shared factor, so nothing cancels, and x+33\tfrac{x + 3}{3} is not x+1x + 1. You can check with a value: at x=3x = 3 the real fraction is 63=2\tfrac{6}{3} = 2, while x+1=4x + 1 = 4. If you want to split it, the honest split keeps both terms over the 33:

x+33=x3+33=x3+1.\frac{x + 3}{3} = \frac{x}{3} + \frac{3}{3} = \frac{x}{3} + 1.

The same warning applies to x+2x\tfrac{x + 2}{x}: the xx on the bottom is a factor, but on top it is a term, so the fraction does not become x+2x + 2. Splitting it correctly gives xx+2x=1+2x\tfrac{x}{x} + \tfrac{2}{x} = 1 + \tfrac{2}{x}, which is nothing like x+2x + 2.

Worked example 1 Simplify three algebraic fractions

In each, factor the top and bottom, then cancel only a shared factor.

For 6x29x\dfrac{6x^2}{9x}, the greatest common factor of the two terms is 3x3x, since 6x2=3x2x6x^2 = 3x \cdot 2x and 9x=3x39x = 3x \cdot 3:

6x29x=3x2x3x3=2x3,x0.\frac{6x^2}{9x} = \frac{3x \cdot 2x}{3x \cdot 3} = \frac{2x}{3}, \qquad x \neq 0.

For x2+5xx\dfrac{x^2 + 5x}{x}, factor the numerator as x(x+5)x(x + 5) and cancel the shared xx:

x2+5xx=x(x+5)x=x+5,x0.\frac{x^2 + 5x}{x} = \frac{x(x + 5)}{x} = x + 5, \qquad x \neq 0.

For 4x+8x+2\dfrac{4x + 8}{x + 2}, factor the numerator as 4(x+2)4(x + 2), which shares the factor x+2x + 2 with the denominator:

4x+8x+2=4(x+2)x+2=4,x2.\frac{4x + 8}{x + 2} = \frac{4(x + 2)}{x + 2} = 4, \qquad x \neq -2.

Each answer is the original fraction in lowest terms, valid everywhere except the excluded value.

Check your understanding

Which is the correct simplification of x+66\dfrac{x + 6}{6}?

Answer choices

Multiplying algebraic fractions

Multiplying algebraic fractions follows the numerical rule with no change: multiply the numerators, multiply the denominators.

abcd=acbd.\frac{a}{b} \cdot \frac{c}{d} = \frac{ac}{bd}.

After multiplying, simplify the result by cancelling any common factor. In practice it is easier to cancel first, before multiplying, because the numbers stay small and the common factors are already sitting in front of you. Take 2x39x2\tfrac{2x}{3} \cdot \tfrac{9}{x^2}. The 99 on top and 33 on the bottom share the factor 33, and one xx on top cancels one of the two on the bottom. So cancelling before multiplying gives

2x39x2=2x93x2=18x3x2=6x,x0.\frac{2x}{3} \cdot \frac{9}{x^2} = \frac{2x \cdot 9}{3 \cdot x^2} = \frac{18x}{3x^2} = \frac{6}{x}, \qquad x \neq 0.

When a numerator or denominator is a sum, factor it first so any shared binomial can cancel.

Worked example 2 Multiply and simplify two products

Multiply tops and bottoms, then cancel every shared factor.

For x+2510x+2\dfrac{x + 2}{5} \cdot \dfrac{10}{x + 2}, the binomial x+2x + 2 appears on both a top and a bottom, and 105=2\tfrac{10}{5} = 2:

x+2510x+2=10(x+2)5(x+2)=105=2,x2.\frac{x + 2}{5} \cdot \frac{10}{x + 2} = \frac{10(x + 2)}{5(x + 2)} = \frac{10}{5} = 2, \qquad x \neq -2.

For 3xx+2x+26\dfrac{3x}{x + 2} \cdot \dfrac{x + 2}{6}, cancel the shared x+2x + 2 and reduce 36\tfrac{3}{6}:

3xx+2x+26=3x(x+2)6(x+2)=3x6=x2,x2.\frac{3x}{x + 2} \cdot \frac{x + 2}{6} = \frac{3x(x + 2)}{6(x + 2)} = \frac{3x}{6} = \frac{x}{2}, \qquad x \neq -2.

Cancelling the binomial before multiplying kept both products short.

Dividing algebraic fractions

Dividing looks harder than multiplying, but a single rule turns it back into multiplying: to divide by a fraction, multiply by its reciprocal. The reciprocal of cd\tfrac{c}{d} is dc\tfrac{d}{c}, its top and bottom swapped. So

ab÷cd=abdc.\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \cdot \frac{d}{c}.

This is the same rule you used for numbers, and it holds for the same reason.

Why dividing by a fraction means multiplying by its reciprocal#

Dividing by a quantity means multiplying by whatever undoes it, that is, by its multiplicative inverse: the number you multiply it by to get 11. So to divide by cd\tfrac{c}{d}, we need the fraction that multiplies with cd\tfrac{c}{d} to give 11.

That partner is dc\tfrac{d}{c}. Multiplying the two, tops together and bottoms together, gives

cddc=cddc=1,\frac{c}{d} \cdot \frac{d}{c} = \frac{cd}{dc} = 1,

since the numerator and denominator are the same product. So dc\tfrac{d}{c} is exactly the inverse of cd\tfrac{c}{d}, and dividing by cd\tfrac{c}{d} is multiplying by dc\tfrac{d}{c}:

ab÷cd=abdc.\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \cdot \frac{d}{c}.

Nothing here depended on the letters being numbers rather than expressions, so the flip-and-multiply rule carries over to algebraic fractions unchanged.

Once you have flipped the divisor and switched to multiplication, the problem is a multiplication problem. So you finish it the same way: cancel shared factors, then multiply what remains.

Worked example 3 Divide two algebraic fractions

Flip the second fraction, change division to multiplication, then cancel.

For x4÷x28\dfrac{x}{4} \div \dfrac{x^2}{8}, the reciprocal of x28\tfrac{x^2}{8} is 8x2\tfrac{8}{x^2}:

x4÷x28=x48x2=8x4x2=2x,x0.\frac{x}{4} \div \frac{x^2}{8} = \frac{x}{4} \cdot \frac{8}{x^2} = \frac{8x}{4x^2} = \frac{2}{x}, \qquad x \neq 0.

For 3x+6x÷x+24x\dfrac{3x + 6}{x} \div \dfrac{x + 2}{4x}, first factor 3x+6=3(x+2)3x + 6 = 3(x + 2), then flip and multiply:

3x+6x÷x+24x=3(x+2)x4xx+2=12x(x+2)x(x+2)=12,x0,  x2.\begin{aligned} \frac{3x + 6}{x} \div \frac{x + 2}{4x} &= \frac{3(x + 2)}{x} \cdot \frac{4x}{x + 2} \\ &= \frac{12x(x + 2)}{x(x + 2)} = 12, \qquad x \neq 0, \; x \neq -2. \end{aligned}

The binomial x+2x + 2 and the single xx both cancel, leaving the plain number 1212.

Check your understanding

Simplify 2x÷4x2\dfrac{2}{x} \div \dfrac{4}{x^2}.

Answer choices

Adding and subtracting algebraic fractions

Addition and subtraction are the operations that demand a common denominator, just as they did for numbers. You cannot combine 12\tfrac{1}{2} and 13\tfrac{1}{3} until both are written in sixths, and you cannot combine two algebraic fractions until they share a denominator either.

When the denominators are already the same, the work is short: keep the common denominator and combine the numerators. Treat them as the expressions they are and collect like terms.

ad+bd=a+bd,adbd=abd.\frac{a}{d} + \frac{b}{d} = \frac{a + b}{d}, \qquad \frac{a}{d} - \frac{b}{d} = \frac{a - b}{d}.

So 2x7+3x7=5x7\tfrac{2x}{7} + \tfrac{3x}{7} = \tfrac{5x}{7}, adding the like terms 2x2x and 3x3x over the shared 77. Subtraction carries the one hazard this lesson keeps returning to. When the numerator being subtracted is a sum, the minus sign applies to every term of it. So wrap that numerator in parentheses and distribute, exactly as you did when subtracting whole expressions:

4x+1xx2x=(4x+1)(x2)x=4x+1x+2x=3x+3x.\frac{4x + 1}{x} - \frac{x - 2}{x} = \frac{(4x + 1) - (x - 2)}{x} = \frac{4x + 1 - x + 2}{x} = \frac{3x + 3}{x}.

The 2-2 became +2+2; missing that flip is the classic slip.

When the denominators differ, first rewrite each fraction as an equivalent one over a common denominator, then combine. The smallest denominator that every fraction divides into is the least common denominator (LCD). Building each equivalent fraction uses the same equivalent-fraction rule as always: multiply top and bottom by whatever the denominator is missing.

Worked example 4 Combine fractions that already share a denominator

Keep the common denominator and combine the numerators, watching the sign on any subtraction.

Adding over the shared x+1x + 1, the numerators are like terms:

5xx+1+2xx+1=5x+2xx+1=7xx+1,x1.\frac{5x}{x + 1} + \frac{2x}{x + 1} = \frac{5x + 2x}{x + 1} = \frac{7x}{x + 1}, \qquad x \neq -1.

Subtracting, the minus sign reaches both terms of the second numerator, so distribute it:

6x+5x+22x3x+2=(6x+5)(2x3)x+2=6x+52x+3x+2=4x+8x+2,x2.\begin{aligned} \frac{6x + 5}{x + 2} - \frac{2x - 3}{x + 2} &= \frac{(6x + 5) - (2x - 3)}{x + 2} \\ &= \frac{6x + 5 - 2x + 3}{x + 2} = \frac{4x + 8}{x + 2}, \qquad x \neq -2. \end{aligned}

The 3-3 turned into +3+3, giving the constant 5+3=85 + 3 = 8; treating the subtraction as reaching only the 2x2x would have produced the wrong 4x+24x + 2.

Worked example 5 Combine fractions with different denominators

Rewrite each fraction over the least common denominator, then add the numerators.

For x4+x6\dfrac{x}{4} + \dfrac{x}{6}, the LCD of 44 and 66 is 1212. Multiply the first fraction by 33\tfrac{3}{3} and the second by 22\tfrac{2}{2}:

x4+x6=3x12+2x12=5x12.\frac{x}{4} + \frac{x}{6} = \frac{3x}{12} + \frac{2x}{12} = \frac{5x}{12}.

For 3x+12\dfrac{3}{x} + \dfrac{1}{2}, the LCD of xx and 22 is 2x2x. Multiply the first by 22\tfrac{2}{2} and the second by xx\tfrac{x}{x}:

3x+12=62x+x2x=6+x2x,x0.\frac{3}{x} + \frac{1}{2} = \frac{6}{2x} + \frac{x}{2x} = \frac{6 + x}{2x}, \qquad x \neq 0.

The numerator 6+x6 + x has unlike terms, so it cannot be combined further, and the sum stays as one fraction over the common denominator.

Check your understanding

Simplify 5xx+22x3x+2\dfrac{5x}{x + 2} - \dfrac{2x - 3}{x + 2}.

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)
A bit of history (Optional)

The word fraction comes from frangere, a Latin verb meaning to break. Breaking one in the wrong place is what this lesson keeps warning you about. Europe’s best mathematicians did it for fifty years.

Their new methods, the ones that grew into calculus, ran on a questionable move. Divide by a tiny quantity and simplify what is left. Then say that the tiny quantity was zero all along. The answers came out right. The reasoning did not, and in 1734 a critic said so in print.

George Berkeley was a bishop in Ireland, not a mathematician. His pamphlet The Analyst was partly a quarrel about faith, but his objection to the mathematics was exact. You cannot divide by a thing and then call that thing zero. It is either zero or it is not. He called those disappearing amounts the ghosts of departed quantities. Nobody answered him properly for a century.

His objection is the condition you kept writing in the margin. Cancelling a shared factor cc is legal because cc=1\tfrac{c}{c} = 1, and that step needs a cc which is not zero. So when 3x+6x+2\tfrac{3x + 6}{x + 2} collapsed to the plain number 33, the restriction x2x \neq -2 went with it. An excluded value is not fussy bookkeeping. It is the receipt for the cancellation.