TExcelTAD
Home › Algebra › Equations Containing Fractions

Equations Containing Fractions

When an equation has fractions, the quickest route is to get rid of them in one step: multiply every term on both sides by the least common denominator (LCD). What remains is an ordinary linear equation. This lesson covers numerical denominators, proportions solved by cross-multiplying, and a first look at the unknown in a denominator, where a forbidden value must be checked.

Clear the denominators

x4+x6=5LCD of 4 and 6 is 12; multiply EVERY term by 12:12⋅x4+12⋅x6=12⋅53x+2x=605x=60x=12check: 124+126=3+2=5 ✓\begin{aligned} \frac{x}{4} + \frac{x}{6} &= 5 \\ &\text{LCD of 4 and 6 is 12; multiply EVERY term by 12:} \\ 12 \cdot \frac{x}{4} + 12 \cdot \frac{x}{6} &= 12 \cdot 5 \\ 3x + 2x &= 60 \\ 5x &= 60 \\ x &= 12 \\[1ex] &\text{check: } \frac{12}{4} + \frac{12}{6} = 3 + 2 = 5\ \checkmark \end{aligned}

The LCD is the LCM of the denominators. Any common multiple works (24 would too), but the smallest keeps the numbers small.

Tip: Put brackets around numerators with more than one term before multiplying. x−23\frac{x - 2}{3} times 6 is 2(x−2)=2x−42(x - 2) = 2x - 4, not 2x−22x - 2.

x−23−x+14=12multiply by 12:4(x−2)−3(x+1)=64x−8−3x−3=6x−11=6x=17check: 153−184=5−4.5=0.5 ✓\begin{aligned} \frac{x - 2}{3} - \frac{x + 1}{4} &= \frac{1}{2} \\ &\text{multiply by 12:} \\ 4(x - 2) - 3(x + 1) &= 6 \\ 4x - 8 - 3x - 3 &= 6 \\ x - 11 &= 6 \\ x &= 17 \\[1ex] &\text{check: } \frac{15}{3} - \frac{18}{4} = 5 - 4.5 = 0.5\ \checkmark \end{aligned}

The minus sign in front of the second fraction applies to its whole numerator, which is why the bracket matters: −3(x+1)=−3x−3-3(x + 1) = -3x - 3.

Exact arithmetic in Python

Fractions in floating point lose exactness (13\frac{1}{3} is stored as 0.333…). Python's fractions module and SymPy keep every step exact, which is handy for checking:

python · try it yourself
from fractions import Fraction as F
from sympy import symbols, Eq, solve, Rational

x = symbols("x")
print(solve(Eq(x/4 + x/6, 5), x))
print(solve(Eq((x - 2)/3 - (x + 1)/4, Rational(1, 2)), x))
print(solve(Eq(Rational(2, 3)*x - Rational(1, 5), Rational(3, 10)), x))

# the check for the second equation, exactly
v = 17
print(F(v - 2, 3) - F(v + 1, 4))
[12]
[17]
[3/4]
1/2

Proportions: cross-multiplying

An equation with a single fraction on each side, ab=cd\frac{a}{b} = \frac{c}{d}, is a proportion. Multiplying both sides by bdbd gives ad=bcad = bc, called cross-multiplying:

x+35=2x−144(x+3)=5(2x−1)4x+12=10x−517=6xx=176\begin{aligned} \frac{x + 3}{5} &= \frac{2x - 1}{4} \\ 4(x + 3) &= 5(2x - 1) \\ 4x + 12 &= 10x - 5 \\ 17 &= 6x \\ x &= \frac{17}{6} \end{aligned}

Cross-multiplying is just clearing denominators with the product bdbd as a common multiple. The Proportions lesson uses it for recipes and maps.

The unknown in a denominator

If xx appears in a denominator, the equation is a rational equation. You can still multiply by the LCD, but some values of xx would make a denominator zero. Those values are excluded and can never be solutions, even if the algebra produces them.

3x+12=2x≠0multiply by 2x:6+x=4x6=3xx=2allowed (2≠0) ✓\begin{aligned} \frac{3}{x} + \frac{1}{2} &= 2 && x \ne 0 \\ \text{multiply by } 2x{:}\quad 6 + x &= 4x \\ 6 &= 3x \\ x &= 2 && \text{allowed } (2 \ne 0)\ \checkmark \end{aligned}
xx−3=3x−3+2x≠3multiply by (x−3):x=3+2(x−3)x=2x−3x=3excluded!→no solution\begin{aligned} \frac{x}{x - 3} &= \frac{3}{x - 3} + 2 && x \ne 3 \\ \text{multiply by } (x - 3){:}\quad x &= 3 + 2(x - 3) \\ x &= 2x - 3 \\ x &= 3 && \text{excluded!} \to \text{no solution} \end{aligned}

The second equation has no solution: the only candidate makes both fractions undefined. SymPy knows this and returns an empty list:

python · try it yourself
from sympy import symbols, Eq, solve, Rational

x = symbols("x")
print(solve(Eq(3/x + Rational(1, 2), 2), x))
print(solve(Eq(x/(x - 3), 3/(x - 3) + 2), x))
[2]
[]

Multiplying by an expression that can be zero is not always an equivalent step, so a check is required, not optional. The full treatment is in Rational Equations.

In software

Fraction equations appear whenever rates combine. Two download mirrors that would each take 30 and 45 minutes, working together, finish in tt minutes where t30+t45=1\frac{t}{30} + \frac{t}{45} = 1, so t=18t = 18. The same pattern gives the combined resistance of parallel resistors and the throughput of parallel workers. And the excluded-value idea is the algebraic twin of a ZeroDivisionError guard.

Exercises

Exercise 1: Clear and solve

Solve x3−x5=4\frac{x}{3} - \frac{x}{5} = 4.

Answer

x=30x = 30

Solution
multiply by 15:5x−3x=602x=60x=30check: 10−6=4 ✓\begin{aligned} \text{multiply by 15:}\quad 5x - 3x &= 60 \\ 2x &= 60 \\ x &= 30 \\[1ex] &\text{check: } 10 - 6 = 4\ \checkmark \end{aligned}

Exercise 2: Two-term numerators

Solve 2x+16−x−49=2\frac{2x + 1}{6} - \frac{x - 4}{9} = 2.

Answer

x=254x = \frac{25}{4}

Solution
LCD 18:3(2x+1)−2(x−4)=366x+3−2x+8=364x+11=364x=25x=254\begin{aligned} \text{LCD 18:}\quad 3(2x + 1) - 2(x - 4) &= 36 \\ 6x + 3 - 2x + 8 &= 36 \\ 4x + 11 &= 36 \\ 4x &= 25 \\ x &= \frac{25}{4} \end{aligned}
python · try it yourself
from sympy import symbols, Eq, solve
x = symbols("x")
print(solve(Eq((2*x + 1)/6 - (x - 4)/9, 2), x))
[25/4]

Exercise 3: Working together

One pipe fills a tank in 6 hours, another in 3 hours. How long do they take together?

Answer

2 hours

Solution

In tt hours the pipes fill t6\frac{t}{6} and t3\frac{t}{3} of the tank. Together that must be one full tank:

t6+t3=1multiply by 6:t+2t=6t=2\begin{aligned} \frac{t}{6} + \frac{t}{3} &= 1 \\ \text{multiply by 6:}\quad t + 2t &= 6 \\ t &= 2 \end{aligned}

Exercise 4: Watch the excluded value

Solve 4x+2=1+2x+2\frac{4}{x + 2} = 1 + \frac{2}{x + 2} and say which value of xx is excluded.

Answer

x=0x = 0; the excluded value is x=−2x = -2.

Solution
x≠−2multiply by (x+2):4=(x+2)+24=x+4x=0allowedcheck: 42=2 and 1+22=2 ✓\begin{aligned} &x \ne -2 \\ \text{multiply by } (x + 2){:}\quad 4 &= (x + 2) + 2 \\ 4 &= x + 4 \\ x &= 0 && \text{allowed} \\[1ex] &\text{check: } \frac{4}{2} = 2 \text{ and } 1 + \frac{2}{2} = 2\ \checkmark \end{aligned}

Test yourself

What should you multiply both sides of x6+14=2\frac{x}{6} + \frac{1}{4} = 2 by to clear the fractions with the smallest numbers?

  1. 24
  2. 10
  3. 12
  4. 6

Multiplying x+52\frac{x + 5}{2} by 4 gives:

  1. 2x+52x + 5
  2. 2x+102x + 10
  3. x+10x + 10
  4. 4x+54x + 5

Solving a rational equation gives x=4x = 4, but the equation has (x−4)(x - 4) in a denominator. What is the conclusion?

  1. x=4x = 4 is the solution
  2. x=−4x = -4 is the solution
  3. x=4x = 4 is excluded, so that candidate is rejected
  4. The equation is an identity