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 divide the numerator by the denominator. At x=5x=5, for example, x+1x−2\tfrac{x+1}{x-2} becomes 63=2\tfrac{6}{3}=2.

Dividing asks which number, multiplied by the denominator, gives the numerator. A value that makes the denominator zero is an excluded value: division by zero is undefined. No number multiplied by zero gives a nonzero numerator. And if the numerator is zero too, every number times zero gives that zero numerator, so there is no single answer. For x+1x−2\tfrac{x+1}{x-2}, the denominator is zero at x=2x=2, so we write x≠2x\ne2. To find excluded values, set the original denominator equal to zero. For 5x\tfrac{5}{x}, exclude 00; for x2x−6\tfrac{x}{2x-6}, exclude 33. Depending on its denominator, a fraction may exclude several values, one value, or none.

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, factor its numerator and denominator using the GCF method from the previous lesson, then cancel their common nonzero factors. This preserves the value because a shared factor divided by itself is 11. For example, 6x2=3x⋅2x6x^2=3x\cdot2x and 9x=3x⋅39x=3x\cdot3, so

6x29x=3x⋅2x3x⋅3=2x3,x≠0.\frac{6x^2}{9x}=\frac{3x\cdot2x}{3x\cdot3}=\frac{2x}{3},\qquad x\ne0.

The restriction stays even though the simplified denominator is just 33. At x=0x=0, the original fraction has a zero denominator, so it has no value there. The simplified 2x3\tfrac{2x}{3} equals it only for x≠0x\ne0.

Canceling the common factor 3xFor nonzero x, the 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)=2x3for x ≠ 0, the factor 3x/3x equals 1
For nonzero x, factoring exposes the shared factor 3x. Dividing it by itself gives 1, leaving 2x over 3. The restriction x not equal to zero remains.

The same reasoning works for any common factor, including an entire expression.

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

For a numerical example, separate the common factor 44 in 2028\tfrac{20}{28}:

5⋅47⋅4=57⋅44=57⋅1=57.\frac{5\cdot4}{7\cdot4}=\frac57\cdot\frac44=\frac57\cdot1=\frac57.

Now replace 44 by any nonzero factor cc. If the remaining denominator bb is also nonzero, the fraction multiplication rule gives

acbc=ab⋅cc=ab⋅1=ab.\frac{ac}{bc}=\frac ab\cdot\frac cc=\frac ab\cdot1=\frac ab.

Canceling removes a factor of cc=1\tfrac cc=1, so the value stays the same wherever the original denominator bcbc is nonzero.

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.

A shared binomial factor (a factor with two terms) cancels in the same way. 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.

Cancel common factors, never individual terms. A factor is multiplied by the remaining factors to make the whole numerator or denominator; a term is added to other terms. In x+33\tfrac{x+3}{3}, the 33 in the numerator is added to xx, so it is not a factor of the whole numerator. Canceling just those 33‘s would give the wrong x+1x+1. At x=3x=3, the original equals 22, but x+1x+1 equals 44.

A valid split divides both terms by 33:

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

Likewise, for x≠0x\ne0, x+2x=1+2x\tfrac{x+2}{x}=1+\tfrac{2}{x}, not x+2x+2. The denominator divides every term of the numerator.

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 numerator and denominator 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.\begin{aligned}\frac{x^2+5x}{x}&=\frac{x(x+5)}{x}\\&=x+5,\end{aligned}\qquad x\ne0.

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

To multiply fractions, multiply the numerators and multiply the denominators:

ab⋅cd=acbd,b≠0, d≠0.\frac ab\cdot\frac cd=\frac{ac}{bd},\qquad b\ne0,\ d\ne0.

Canceling common factors before multiplying can keep the work smaller. For 2x3⋅9x2\tfrac{2x}{3}\cdot\tfrac{9}{x^2}, write 9=3⋅39=3\cdot3 and x2=x⋅xx^2=x\cdot x. One factor of 33 and one of xx cancel:

2x3⋅9x2=2⋅x⋅3⋅33⋅x⋅x=6x,x≠0.\frac{2x}{3}\cdot\frac{9}{x^2} =\frac{2\cdot x\cdot3\cdot3}{3\cdot x\cdot x} =\frac6x,\qquad x\ne0.

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.\begin{gathered}\begin{aligned}&\frac{x+2}{5}\cdot\frac{10}{x+2}\\&=\frac15\cdot\frac{10}{1}\\&=\frac{10}{5}=2,\end{aligned}\\x\ne-2.\end{gathered}

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.\begin{gathered}\begin{aligned}&\frac{3x}{x+2}\cdot\frac{x+2}{6}\\&=\frac{3x}{1}\cdot\frac16\\&=\frac{3x}{6}=\frac{x}{2},\end{aligned}\\x\ne-2.\end{gathered}

Check your understanding

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

Answer choices

Dividing algebraic fractions

To divide by a fraction, multiply by its reciprocal, with its numerator and denominator swapped. The divisor (the fraction you divide by) must be defined and nonzero. Thus both its denominator and its numerator must be nonzero:

ab÷cd=ab⋅dc,b≠0, c≠0, d≠0.\frac ab\div\frac cd=\frac ab\cdot\frac dc, \qquad b\ne0,\ c\ne0,\ d\ne0.

These are two separate checks: a zero denominator makes the divisor undefined; a zero numerator makes a defined divisor equal to zero, which you still cannot divide by.

Why dividing by a fraction means multiplying by its reciprocal#

A quotient is the number that, multiplied by the divisor, gives the dividend. The reciprocal of 45\tfrac{4}{5} is 54\tfrac{5}{4}, because 45⋅54=1\tfrac{4}{5}\cdot\tfrac{5}{4}=1. So dividing 23\tfrac{2}{3} by 45\tfrac{4}{5} means multiplying 23\tfrac{2}{3} by 54\tfrac{5}{4}, giving 56\tfrac{5}{6}. We can check by multiplying back: 56⋅45=23\tfrac{5}{6}\cdot\tfrac{4}{5}=\tfrac{2}{3}.

For nonzero c,dc,d, the same calculation gives

cd⋅dc=cddc=1.\frac cd\cdot\frac dc=\frac{cd}{dc}=1.

Thus dc\tfrac{d}{c} is the multiplicative inverse of cd\tfrac{c}{d}, the number that multiplies it to give 11. For b≠0b\ne0, multiplying ab⋅dc\tfrac{a}{b}\cdot\tfrac{d}{c} by the divisor cd\tfrac{c}{d} returns ab\tfrac{a}{b}. That is why

ab÷cd=ab⋅dc.\frac ab\div\frac cd=\frac ab\cdot\frac dc.

The reasoning still holds when the letters are expressions, provided these nonzero conditions hold.

After replacing division with multiplication by the reciprocal, factor and cancel as before. Keep every exclusion from the original fractions and from the divisor being nonzero.

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.\begin{gathered}\begin{aligned}\frac{x}{4}\div\frac{x^2}{8}&=\frac{x}{4}\cdot\frac8{x^2}\\&=\frac{x}{4}\cdot\frac{4\cdot2}{x\cdot x}\\&=\frac2x,\end{aligned}\\x\ne0.\end{gathered}

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{gathered}\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\cdot4=12,\end{aligned}\\x\ne0,\quad x\ne-2.\end{gathered}

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 need a common denominator: the same denominator after rewriting each fraction without changing its value. For example, adding 12\tfrac{1}{2} and 13\tfrac{1}{3} means rewriting both in sixths. Algebraic fractions follow the same rule.

With a shared nonzero denominator dd, combine the numerators and keep that denominator:

ad+bd=a+bd,ad−bd=a−bd.\begin{aligned} \frac ad+\frac bd&=\frac{a+b}{d},\\ \frac ad-\frac bd&=\frac{a-b}{d}. \end{aligned}

For example, 2x7+3x7=5x7\tfrac{2x}{7}+\tfrac{3x}{7}=\tfrac{5x}{7}. When subtracting a whole numerator, put it in parentheses so the minus reaches every term. For x≠0x\ne0,

4x+1x−x−2x=(4x+1)−(x−2)x=4x+1−x+2x=3x+3x.\begin{aligned}&\frac{4x+1}{x}-\frac{x-2}{x}\\&=\frac{(4x+1)-(x-2)}{x}\\&=\frac{4x+1-x+2}{x}\\&=\frac{3x+3}{x}.\end{aligned}

The −2-2 becomes +2+2, just as when subtracting expressions without fraction bars.

When denominators differ, multiply each fraction’s numerator and denominator by the same nonzero factor to make them match. First factor the denominators: split positive whole-number coefficients into prime factors and use the algebraic factoring you know. For example, 4=2⋅24=2\cdot2 and 6=2⋅36=2\cdot3, so their least common denominator is 2⋅2⋅3=122\cdot2\cdot3=12.

The least common denominator (LCD) uses each needed prime or algebraic factor as many times as it appears in the denominator that uses it most. Every denominator then divides it without a remainder, and no extra copies of a factor are needed. This can keep the arithmetic smaller than multiplying all denominators together.

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.\begin{gathered}\begin{aligned}&\frac{5x}{x+1}+\frac{2x}{x+1}\\&=\frac{5x+2x}{x+1}\\&=\frac{7x}{x+1},\end{aligned}\\x\ne-1.\end{gathered}

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{gathered}\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},\end{aligned}\\x\ne-2.\end{gathered}

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.\begin{gathered}\begin{aligned}\frac3x+\frac12&=\frac6{2x}+\frac{x}{2x}\\&=\frac{6+x}{2x},\end{aligned}\\x\ne0.\end{gathered}

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)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

The word fraction comes from Latin for a breaking. Dividing by a quantity that later becomes zero was at the center of a long argument in early calculus.

Some calculations divided by a small changing quantity, then treated that quantity as zero after simplifying. The methods produced useful answers, but explaining why they worked was harder. In 1734, George Berkeley, an Irish philosopher and bishop who had also written on mathematics, challenged these arguments in The Analyst. His pointed question was whether a quantity could be nonzero when you divided by it, yet zero when it became inconvenient. He famously asked whether these vanishing quantities were “ghosts of departed quantities.”

Berkeley’s pamphlet was also part of a dispute about religion and certainty. Mathematicians wrote replies, and over the next century they kept working on the foundations of calculus. During the 1800s, precise definitions of limits gave a way to describe a quantity approaching zero without dividing by zero.

Sources: Berkeley’s 1734 text; Berkeley’s life and the controversy.

Your progress

See all your progress →