Algebraic Fractions

Learning goals

  • Exclude every value that makes the denominator zero
  • Cancel a shared factor, never a term
  • Multiply straight across, canceling 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, where each expression is built only by adding, subtracting, and multiplying numbers and variables (no variable appears in an exponent, and none sits under a root):

numeratordenominator,for examplex+1x−2.\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+15−2=63=2\tfrac{5 + 1}{5 - 2} = \tfrac{6}{3} = 2.

Watch for values that would make the denominator zero. 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+1x−2\tfrac{x + 1}{x - 2} the denominator x−2x - 2 is zero when x=2x = 2, so x=2x = 2 is excluded and we write x≠2x \neq 2. A denominator can exclude one value, several values, or none at all, depending on what it is. Keeping track of every excluded value 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 x2x−6\tfrac{x}{2x - 6} it is x=3x = 3, since 2x−6=02x - 6 = 0 there.

Check your understanding

For what value of xx is x+3x−4\dfrac{x + 3}{x - 4} undefined?

Answer choices

Simplifying by canceling a common factor

To simplify an algebraic fraction is to rewrite it as an equivalent fraction whose numerator and denominator no longer share a common factor, 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.

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=3x⋅2x6x^2 = 3x \cdot 2x and 9x=3x⋅39x = 3x \cdot 3 exposes the shared factor 3x3x, which cancels:

6x29x=3x⋅2x3x⋅3=2x3,x≠0.\frac{6x^2}{9x} = \frac{3x \cdot 2x}{3x \cdot 3} = \frac{2x}{3}, \qquad x \neq 0.
Canceling 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.

Why does dropping a shared factor like 3x3x leave the value unchanged? Because canceling is really the same move as spotting a hidden copy of 11, and the reasoning holds for any shared factor, not just this one.

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

Suppose the numerator and denominator share a common factor cc, so the fraction has the form a⋅cb⋅c\dfrac{a \cdot c}{b \cdot c} with c≠0c \neq 0 and b≠0b \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:

a⋅cb⋅c=ab⋅cc.\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:

ab⋅cc=ab⋅1=ab.\frac{a}{b} \cdot \frac{c}{c} = \frac{a}{b} \cdot 1 = \frac{a}{b}.

So a⋅cb⋅c=ab\dfrac{a \cdot c}{b \cdot c} = \dfrac{a}{b}. Canceling 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 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,x≠0.\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,x≠−2.\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. Canceling works by dividing the entire numerator and the entire denominator by the same shared factor, the way cc divided both parts of acbc\tfrac{ac}{bc} above. A term inside a sum is only part of the numerator, not a factor of the whole thing, so dividing it alone changes the value instead of preserving it. 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 9x26x\dfrac{9x^2}{6x}, the greatest common factor of the two terms is 3x3x, since 9x2=3x⋅3x9x^2 = 3x \cdot 3x and 6x=3x⋅26x = 3x \cdot 2:

9x26x=3x⋅3x3x⋅2=3x2,x≠0.\frac{9x^2}{6x} = \frac{3x \cdot 3x}{3x \cdot 2} = \frac{3x}{2}, \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,x≠0.\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,x≠−2.\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.

ab⋅cd=acbd.\frac{a}{b} \cdot \frac{c}{d} = \frac{ac}{bd}.

After multiplying, simplify the result by canceling 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 2x3⋅9x2\tfrac{2x}{3} \cdot \tfrac{9}{x^2}. Write 9=3⋅39 = 3 \cdot 3 and x2=x⋅xx^2 = x \cdot x to expose the shared factors: the 33 on the bottom cancels one 33 from the top, and one xx on top cancels one xx on the bottom. Canceling those first leaves only small factors to multiply:

2x3⋅9x2=2x3⋅3⋅3x⋅x=2⋅3x=6x,x≠0.\frac{2x}{3} \cdot \frac{9}{x^2} = \frac{2x}{3} \cdot \frac{3 \cdot 3}{x \cdot x} = \frac{2 \cdot 3}{x} = \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

Cancel any shared factor first, then multiply what remains.

For x+25⋅10x+2\dfrac{x + 2}{5} \cdot \dfrac{10}{x + 2}, the binomial x+2x + 2 is a factor of one top and the other bottom, so it cancels before anything is multiplied:

x+25⋅10x+2=15⋅101=105=2,x≠−2.\frac{x + 2}{5} \cdot \frac{10}{x + 2} = \frac{1}{5} \cdot \frac{10}{1} = \frac{10}{5} = 2, \qquad x \neq -2.

For 3xx+2⋅x+26\dfrac{3x}{x + 2} \cdot \dfrac{x + 2}{6}, the shared x+2x + 2 cancels the same way, leaving only 3x6\tfrac{3x}{6} to multiply out:

3xx+2⋅x+26=3x1⋅16=3x6=x2,x≠−2.\frac{3x}{x + 2} \cdot \frac{x + 2}{6} = \frac{3x}{1} \cdot \frac{1}{6} = \frac{3x}{6} = \frac{x}{2}, \qquad x \neq -2.

Canceling the binomial before multiplying kept both products short.

Check your understanding

Multiply 3x⋅x26\dfrac{3}{x} \cdot \dfrac{x^2}{6}.

Answer choices

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, and that swap needs cc itself to be nonzero, in addition to the usual b≠0b \neq 0 and d≠0d \neq 0 that every fraction here already needs. So

ab÷cd=ab⋅dc,b≠0,  c≠0,  d≠0.\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \cdot \frac{d}{c}, \qquad b \neq 0, \; c \neq 0, \; d \neq 0.

This is the same rule you used for numbers, and it holds for the same reason. For instance, 23÷45=23⋅54=1012=56\tfrac{2}{3} \div \tfrac{4}{5} = \tfrac{2}{3} \cdot \tfrac{5}{4} = \tfrac{10}{12} = \tfrac{5}{6}: flipping 45\tfrac{4}{5} to 54\tfrac{5}{4} turns the division into a multiplication you already know how to do, and the same flip works when the fractions hold expressions instead of plain numbers.

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

cd⋅dc=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=ab⋅dc.\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 to turn division into multiplication, then cancel before multiplying what remains.

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}. Write 8=4⋅28 = 4 \cdot 2 and x2=x⋅xx^2 = x \cdot x to expose the shared factors 44 and xx:

x4÷x28=x4⋅8x2=x4⋅4⋅2x⋅x=2x,x≠0.\frac{x}{4} \div \frac{x^2}{8} = \frac{x}{4} \cdot \frac{8}{x^2} = \frac{x}{4} \cdot \frac{4 \cdot 2}{x \cdot x} = \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. Writing 4x4x as 4⋅x4 \cdot x exposes the shared x+2x + 2 and the shared xx:

3x+6x÷x+24x=3(x+2)x⋅4xx+2=3(x+2)x⋅4⋅xx+2=3⋅4=12,x≠0,  x≠−2.\begin{aligned} \frac{3x + 6}{x} \div \frac{x + 2}{4x} &= \frac{3(x + 2)}{x} \cdot \frac{4x}{x + 2} \\ &= \frac{3(x + 2)}{x} \cdot \frac{4 \cdot x}{x + 2} = 3 \cdot 4 = 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. The restriction x≠−2x \neq -2 comes from the divisor x+24x\tfrac{x + 2}{4x} itself: its numerator x+2x + 2 must be nonzero for its reciprocal to exist.

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,ad−bd=a−bd.\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+1x−x−2x=(4x+1)−(x−2)x=4x+1−x+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 expression that every denominator 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,x≠−1.\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+2−2x−4x+2=(6x+5)−(2x−4)x+2=6x+5−2x+4x+2=4x+9x+2,x≠−2.\begin{aligned} \frac{6x + 5}{x + 2} - \frac{2x - 4}{x + 2} &= \frac{(6x + 5) - (2x - 4)}{x + 2} \\ &= \frac{6x + 5 - 2x + 4}{x + 2} = \frac{4x + 9}{x + 2}, \qquad x \neq -2. \end{aligned}

The −4-4 turned into +4+4, giving the constant 5+4=95 + 4 = 9; treating the subtraction as reaching only the 2x2x would have produced the wrong 4x+14x + 1.

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,x≠0.\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

Add x2+x5\dfrac{x}{2} + \dfrac{x}{5}.

Answer choices

Check your understanding

Simplify 5xx+2−2x−3x+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.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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. Other mathematicians argued back for decades, but a fully solid answer did not arrive until the 1800s.

His objection is the condition you kept writing in the margin. Canceling 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 x≠−2x \neq -2 went with it. An excluded value is not fussy bookkeeping. It is the receipt for the cancellation.