Systems With Fraction and Decimal Coefficients
Clear fractions and decimals from a linear system, avoid rounding traps, and solve the cleaner equations with confidence.
Key takeaways
- Treat the equations one at a time, choosing a separate multiplier for each.
- Multiply every term, including whole numbers and the constant.
- Put a numerator with two terms in parentheses before you cancel its denominator.
- Do not round fractions into short decimals partway through a solution.
- Check the final pair in the original equations, not only in the cleared ones.
The easiest way to handle a system with fractions or decimals is to remove them first. Multiply each equation, on both sides, by a number that turns all of its coefficients and its constant into integers: the least common denominator for fractions, or a power of 10 for decimals. Then solve the cleaner system by substitution or elimination.
Each equation may use its own multiplier. The solution does not change, because multiplying both sides of an equation by a nonzero number keeps exactly the same pairs.
Clearing fractions
x/2 + y/3 = 4
x/4 - y/6 = 0 The denominators in the first equation are 2 and 3, so multiply by 6. In the second they are 4 and 6, so multiply by 12.
6 · (x/2) + 6 · (y/3) = 6 · 4 3x + 2y = 24
12 · (x/4) - 12 · (y/6) = 12 · 0 3x - 2y = 0 Adding gives 6x = 24, so x = 4, and then 12 + 2y = 24 gives y = 6.
Check in the originals: 4/2 + 6/3 = 2 + 2 = 4, and 4/4 - 6/6 = 1 - 1 = 0.
The same idea for single equations is explained in clearing fractions with the common denominator.
Choosing the multiplier
The least common denominator is the smallest positive number that every denominator divides. For 4 and 6 it is 12. Using 24 would also work, since 24 is a common multiple, but the numbers would be twice as large.
| Denominators in one equation | Multiplier |
|---|---|
| 2 and 3 | 6 |
| 4 and 6 | 12 |
| 5 and 10 | 10 |
| 3, 4 and 8 | 24 |
| 7 only | 7 |
A common error is to multiply only the fractional terms. In x/3 + 2y = 5, multiplying by 3 gives x + 6y = 15. Writing x + 2y = 15 leaves the second term behind and changes the equation.
Numerators with more than one term
(x + 1)/3 - (y - 2)/4 = 1
(x - 1)/2 + y/3 = 4 Multiply the first by 12 and the second by 6, keeping each numerator in parentheses.
4(x + 1) - 3(y - 2) = 12
4x + 4 - 3y + 6 = 12
4x - 3y = 2
3(x - 1) + 2y = 24
3x - 3 + 2y = 24
3x + 2y = 27 Note the +6 in the second line. The minus sign applies to the whole numerator y - 2, so -3 times -2 gives +6.
Now eliminate y by taking twice the first plus three times the second.
8x - 6y = 4
9x + 6y = 81
17x = 85, x = 5
15 + 2y = 27, y = 6 Check the first original: 6/3 - 4/4 = 2 - 1 = 1. The second: 4/2 + 6/3 = 2 + 2 = 4.
Clearing decimals
0.2x + 0.5y = 1.9
0.03x - 0.01y = 0.03 The first equation has one decimal place, so multiply by 10. The second has two, so multiply by 100.
2x + 5y = 19
3x - y = 3 From the second, y = 3x - 3. Substituting gives 2x + 15x - 15 = 19, so 17x = 34 and x = 2. Then y = 3.
Check: 0.4 + 1.5 = 1.9, and 0.06 - 0.03 = 0.03.
The power of 10 is set by the longest decimal in that equation. In 0.5x + 0.125y = 2, you need 1000, giving 500x + 125y = 2000. Then divide by 125 to get 4x + y = 16. More examples with one unknown are in linear equations with decimals.
A decimal system by elimination
Here is another pair, solved from the first line to the check.
1.2x + 0.7y = 3.1
0.4x - 0.3y = 0.1 Each equation has one decimal place, so multiply both by 10.
12x + 7y = 31
4x - 3y = 1 The x coefficient 12 is three times 4. Subtract three times the second from the first.
12x + 7y - (12x - 9y) = 31 - 3
16y = 28
y = 7/4
4x = 1 + 3(7/4) = 25/4
x = 25/16 In decimals, y = 1.75 and x = 1.5625. Both terminate, so you may write them either way. Check the first original: 1.2(1.5625) + 0.7(1.75) = 1.875 + 1.225 = 3.1. Check the second: 0.4(1.5625) - 0.3(1.75) = 0.625 - 0.525 = 0.1.
Simplifying after you clear
Cleared equations often share a factor. The equation 0.25x + 0.75y = 2 becomes 25x + 75y = 200 after multiplying by 100. Dividing by 25 gives x + 3y = 8. You could have reached this in one move by noticing that all the coefficients are quarters and multiplying by 4.
Converting to fractions can reveal such shortcuts. The decimals 0.5, 0.25, 0.2 and 0.125 are 1/2, 1/4, 1/5 and 1/8.
Pair the first equation x + 3y = 8 with 1.5x - 0.5y = 2. Multiplying the second by 2 gives 3x - y = 4, so y = 3x - 4. Then x + 9x - 12 = 8, which gives x = 2 and y = 2.
Fractional answers
Integer coefficients do not guarantee integer solutions.
x/2 + y/5 = 1 5x + 2y = 10
x/3 - y/2 = 1 2x - 3y = 6 Eliminate y: three times the first plus twice the second gives 19x = 42, so x = 42/19. Eliminate x: twice the first minus five times the second gives 19y = -10, so y = -10/19.
Leave the answers as fractions unless a decimal is requested. To check, 5(42/19) + 2(-10/19) = (210 - 20)/19 = 190/19 = 10, and 2(42/19) - 3(-10/19) = (84 + 30)/19 = 114/19 = 6.
Determinants without clearing
You are allowed to work with the original numbers. Cramer's rule, for example, applies to any coefficients. For 0.5x + 0.2y = 1.6 and 0.3x - 0.4y = 0.2:
D = (0.5)(-0.4) - (0.2)(0.3) = -0.26
Dx = (1.6)(-0.4) - (0.2)(0.2) = -0.68
x = -0.68 / -0.26 = 34/13 The cleared version, 5x + 2y = 16 and 3x - 4y = 2, gives D = -26 and Dx = -68, the same quotient with far less chance of misplacing a decimal point. Multiplying one equation by 10 multiplies both D and Dx by 10, so the ratio cannot change. The full method is in Cramer's rule for two equations.
For completeness, y comes from twice the first cleared equation plus the second: 13x = 34, and then 2y = 16 - 5(34/13) = 38/13, so y = 19/13.
Estimating before you trust an answer
A rough estimate catches the large errors that fractions invite. In the system 0.2x + 0.5y = 1.9 and 3x - y = 3, the second equation says y is 3 less than 3x. If x were 2, y would be 3, and the first equation gives 0.4 + 1.5, which is right on target.
When an answer comes out as x = 200 for a system with small coefficients and small constants, look again at the powers of 10. The usual cause is multiplying one side of an equation by 100 and the other by 10, or by 1.
The danger of early rounding
Suppose x/3 + y = 101 and y = 1. Then x/3 = 100, so x = 300 exactly. If you replace 1/3 with 0.33, you solve 0.33x = 100 and get x ≈ 303.03. A rounding error of about one percent in the coefficient became an error of about 3 units in the answer.
When two equations have nearly equal slopes, the effect is far worse, because the answer depends on a small difference between close numbers. Keep fractions exact, or carry many more digits than you need and round only at the end. The subject is taken further in ill-conditioned systems.
Measured data are a different matter. If the coefficients come from measurements, the final answer cannot be more reliable than those measurements, so report a sensible number of digits and say that it is approximate.
Repeating decimals and percents
A repeating decimal such as 0.333... cannot be cleared with a power of 10, since the digits never end. Write it as the fraction 1/3 first. Likewise 0.1666... is 1/6.
Percents are decimals in disguise. The equation 6% of x plus 4% of y equals 50 is 0.06x + 0.04y = 50. Multiplying by 100 gives 6x + 4y = 5000, and dividing by 2 gives 3x + 2y = 2500. Pair it with x + y = 1000: subtracting twice this from the cleared equation gives x = 500, so y = 500. Check: 30 + 20 = 50.
Large or very small coefficients
The same multiplication idea works in the other direction. In 4000x + 6000y = 26000, dividing every term by 2000 gives 2x + 3y = 13. In 0.0002x + 0.0005y = 0.0019, multiplying by 10,000 gives 2x + 5y = 19.
You may also change units for a variable. If x counts dollars and is likely to be in the tens of thousands, let X = x/1000. Solve for X, then multiply by 1000 at the end. Say which unit you used, so that the factor is not forgotten.
Scientific notation can be handled the same way. An equation with every coefficient carrying the factor 10⁻⁶ can be divided through by 10⁻⁶ in one step.
Variables in a denominator
An equation such as 2/x + 3/y = 2 is not linear, even though it contains fractions. Multiplying through creates a product xy. Instead, set u = 1/x and v = 1/y, with x and y nonzero.
2u + 3v = 2
4u - 3v = 1 Adding gives 6u = 3, so u = 1/2, and then v = 1/3. Therefore x = 2 and y = 3. Check: 2/2 + 3/3 = 2, and 4/2 - 3/3 = 1. This technique is developed in systems that become linear after a substitution.
Checking with fraction answers
A check with fractions is less work if you keep a common denominator throughout. For x = 25/16 and y = 7/4, rewrite y as 28/16. The cleared equation 12x + 7y = 31 becomes (300 + 196)/16 = 496/16, which equals 31. The other, 4x - 3y = 1, becomes (100 - 84)/16 = 16/16.
Then glance back at the originals to confirm that the cleared versions were copied correctly. Divide each cleared equation by the multiplier you used and you should recover exactly what you were given.
Common questions
Must I clear fractions before using substitution?
No, but it usually helps. If one equation is already solved for a variable, such as y = x/2 + 3, you can substitute it as written and then clear the denominators in the single equation that results.
Does multiplying an equation change its graph?
No. The equations x/2 + y/3 = 4 and 3x + 2y = 24 have the same solutions, so they draw the same line. Only the way the line is written has changed.
Can I multiply by a decimal?
Any nonzero number is allowed. Multiplying 0.25x + 0.75y = 2 by 4 is quick and exact. The goal is simply coefficients that are easy to combine.
Mistakes to avoid
- Skipping the constant or a whole-number term when multiplying.
- Losing the sign in front of a fraction with a two-term numerator.
- Using one multiplier carelessly for both equations when separate ones would be smaller.
- Misplacing a decimal point when one coefficient has fewer places: 0.2 times 100 is 20.
- Checking only the cleared system. An error made while clearing will pass that test.