Numeration Systems and Whole Number Operations
3.3 Subtraction of Whole Numbers
What Subtraction Means
I say this all the time in class, "Going forwards is easy, going backwards is hard". Its easy to add, but hard to subtract. Its easy to multiply, but hard to divide. Its easy to distribute, but hard to factor.
Subtraction can mean take-away, missing addend, comparison, or moving backward on a number line. There are several interpretations of it. But being consistent with our previous defintitions, subtracting will be defined in terms we already understand, addition.
Definition: Subtraction of Whole Numbers
For whole numbers $a,b$ with $a\ge b$, $a-b$ is the whole number $c$ such that
$$ b+c=a $$
For a starter example, if we wanted to find $5-2=?$, we would rearrange the expression into a sum.
$$2+?=5$$
The benefit to this is that now we're thinking in terms of addition and we can rely on that previous knowledge. We might count up here saying "three, four, five," and coming to the conclusion that the number we're missing is 3. And indeed, it is.
$$2+3=5.$$
Example: Rewrite subtraction as addition
For each of the following expressions, rewrite them as an addition problem and find the solution.
- $9-5$
- $7-1$
- $27-14$
Show Solution
- $5+c=9\Rightarrow c=4$, so $9-5=4$.
- $1+c=7\Rightarrow c=6$, so $7-1=6$.
- $14+c=27\Rightarrow c=13$, so $27-14=13$.
MyOpenMath: Rewrite subtraction as addition
Subtraction Models
Block Model
One of the first and easiest ways to model subtraction is with physical objects to count with. If we have 5 apples, and we remove 2 of them, we can count and see there are 3 apples left.
MyOpenMath: Chip Model for Subtraction
The model is great for when numbers are small and easy to count through.
Number Line Model
The numberline model is very similar to the one we have for addition. To model something like $7-3$ we would first draw the $7$ on the numberline as usual. Next we would, tip to tail, draw $3$, but go backwards!
MyOpenMath: Numberline Model for Subtraction
Properties (and Non-Properties) of Subtraction
We have to be careful when working with subtraction. We get used to the nice properties of addition and think they're always true but thats not the case.
Fact: Important Facts About Subtraction
In general for whole numbers:
- $a-b\ne b-a$ (not commutative)
- $a-(b-c)\ne (a-b)-c$ (not associative)
- $a-0=a$ (identity with 0)
Example: Properties of Subtraction
Find a counter example using whole numbers $a$, $b$, and $c$ for each of the expressions below.
- $a-b=b-a$
- $a-(b-c)=(a-b)-c$
Show Solution
- Counter Example: $8-5=3$, but $5-8$ is not a whole number.
- Counter Example: $10-(6-2)=6$, but $(10-6)-2=2$.
Subtraction Algorithms
Standard Algorithm
Our first algorithm again follows the manipulative blocks used in classrooms. When subtracting numbers with several different places, we line the places up with the larger number on top, and begin subtracting from the ones column.
Example: Standard Algorithm for Subtraction
Compute $263-41$.
Show Solution
Line 'em up.
| op | hundreds | tens | ones |
|---|---|---|---|
| 2 | 6 | 3 | |
| - | 4 | 1 | |
Subtract the ones. $3-1=2$
| op | hundreds | tens | ones |
|---|---|---|---|
| 2 | 6 | 3 | |
| - | 4 | 1 | |
| 2 |
Subtract the tens. $6-4=2$
| op | hundreds | tens | ones |
|---|---|---|---|
| 2 | 6 | 3 | |
| - | 4 | 1 | |
| 2 | 2 |
And finally the hundreds. $2-0=2$.
| op | hundreds | tens | ones |
|---|---|---|---|
| 2 | 6 | 3 | |
| - | 4 | 1 | |
| 2 | 2 | 2 |
And we're done!
$$263-41=222$$
The issue becomes when our top number is smaller than the bottom. This is an issue because subtraction in whole numbers $a-b$ is only defined when $a>b$. So we have to borrow from the next column over. This is the equivalent of taking a stack of blocks you've already snapped together and breaking it apart into units so we have enough to define the subtraction.
Here is an extremely helpful geogebra graph to see this in action.
Example: Subtracting and borrowing
Evaluate $1234-987$ using the standard algorithm.
Show Solution
Line 'em up.
| op | 1000's | 100's | 10's | 1's |
|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |
| - | 9 | 8 | 7 | |
We can't subtract $4-7$, so we borrow a group of 10 from the 3 groups in the next column over. $$10+4-7=7$$
| op | 1000's | 100's | 10's | 1's |
|---|---|---|---|---|
| 1 | 2 | 2 | 14 | |
| - | 9 | 8 | 7 | |
| 7 |
That sets up our next column to be $2-8$, which again we can't do. So we borrow one from the 100's
| op | 1000's | 100's | 10's | 1's |
|---|---|---|---|---|
| 1 | 1 | 12 | 14 | |
| - | 9 | 8 | 7 | |
| 4 | 7 |
And finally $1-9$ isn't defined, so we borrow that final group of 10, from the 1000's this time, and finish the difference.
| op | 1000's | 100's | 10's | 1's |
|---|---|---|---|---|
| 0 | 11 | 12 | 14 | |
| - | 9 | 8 | 7 | |
| 2 | 4 | 7 |
And we find $$1234-987=247$$
Now for the real fun, lets do a subtraction in base 5. Remember, the algorithm is exactly the same. The difference is that we only have 5 digits. This means that we'll have to borrow groups of 5 instead of groups of 10.
$$D=\{0,1,2,3,4\}$$
Example: Subtraction in base 5
Evaluate $2134_{\text{five}}-242_{\text{five}}$
Show Solution
We begin by lining up the places.
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 2 | 1 | 3 | 4 | |
| - | 2 | 4 | 2 | |
First up, $4_{\text{five}}-2_{\text{five}}$, no issues here.
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 2 | 1 | 3 | 4 | |
| - | 2 | 4 | 2 | |
| 2 |
We hit our fist hiccup here, $3_{\text{five}}-4_{\text{five}}$ isn't defined. So we need to borrow a 25 from the next column over.
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 2 | 0 | 13 | 4 | |
| - | 2 | 4 | 2 | |
| 2 |
Now we're ready to subtract $13_{\text{five}}-4_{\text{five}}$. Remember that $13_{\text{five}}=1(5)+3(1)=8$, so we're really subtacting $8-4=4$
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 2 | 0 | 13 | 4 | |
| - | 2 | 4 | 2 | |
| 4 | 2 |
Can't subtract $0_{\text{five}}-2_{\text{five}}$ so we borrow a 125, $10_{\text{five}}-2_{\text{five}}=3_{\text{five}}$
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 1 | 10 | 13 | 4 | |
| - | 2 | 4 | 2 | |
| 3 | 4 | 2 |
And finally $1_{\text{five}}-0_{\text{five}}=1_{\text{five}}$
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 1 | 10 | 13 | 4 | |
| - | 2 | 4 | 2 | |
| 1 | 3 | 4 | 2 |
and were done!
$$2134_{\text{five}}-242_{\text{five}}=1342_{\text{five}}$$
You can check your answer with this calculator. But be warned, make sure you understand the algorithm, because that is the point of this lesson. When I give exams, your answer is not as important as the method you used to get the answer. There will be questions about steps of this algorithm, so just getting an answer is not very helpful outside of checking that you understood the idea.
MyOpenMath: Subtraction in other bases
Equal Addition Algorithm
Equal addition is more of a mental trick to help with quick calculation, but its important to think about.
Theorem: Equal Addition Principle
If $a\ge b$, then for any whole number $k$:
$$ a-b=(a+k)-(b+k) $$
The idea here is that when subtracting, what you're finding is the difference of those numbers. In a way, you've finding how far apart they are on a number line. If you move both numbers the same amount in the same direction, that distance between them remains the same. use the numberline below to see that $5-3$ is the same as $6-4$.
How this can be useful in mental arithmetic is that we can add an aribtrary number to both if it makes the calculation easier.
Example: Equal addition idea
Use equal addition to compute $19-7$.
Show Solution
The subtraction isn't neccessarily easy to see. But if we were to add 1 to both numbers:
$$ 19-7=20-8 $$
And I think that $20-8$ is much easier to see that the difference is $12$. And because we used an equal addition, the difference here will be the same as the original.
Same difference, easier subtraction.
Counting-Up Algorithm
Counting up is a way to calculate a differnce by counting up from the smaller number to the larger number, and keeping track of your total as you count. This is the same as measuraing the distance between the two numbers in a subtraction, which in turn is their difference.
Example: Counting-up
Find $100-31$ by counting up.
Show Solution
Starting from $31$ we can go to $40$ by adding $9$.
From $40$ we can jump to $100$ by adding $60$.
$$ 9+60=69 $$
So $100-31=69$.
We can get do pretty complicated sums quickly using this method.
Example: Bigger counting-up
Evaluate $765-524$ by counting up.
Show Solution
We're going to start and $524$ and count up to easy to use spots. First, it would be nice to count up to a multiple of 10.
| start | counting-up | total |
|---|---|---|
| $$524$$ | $+6$ | $530$ |
Next, we'll count up from $530$ to a nice even multiple of 100.
| start | counting-up | total |
|---|---|---|
| $$524$$ | $$+6$$ | $530$ |
| $$+70$$ | $600$ |
Now we'll add hundreds to get as close as we can to the $765$
| start | counting-up | total |
|---|---|---|
| $$524$$ | $$+6$$ | $530$ |
| $$+70$$ | $600$ | |
| $$+100$$ | $700$ |
Now we'll finish it off by adding the last bit.
| start | counting-up | total |
|---|---|---|
| $$524$$ | $$+6$$ | $530$ |
| $$+70$$ | $600$ | |
| $$+100$$ | $700$ | |
| $$+65$$ | $765$ |
And we've counted up! The difference of these two numbers is the total of all the counting up we did.
| start | counting-up | total |
|---|---|---|
| $$524$$ | $$+6$$ | $530$ |
| $$+70$$ | $600$ | |
| $$+100$$ | $700$ | |
| $$+65$$ | $765$ | |
| difference | $$241$$ |
So we have $$765-524=241$$
MyOpenMath: Counting up
We've even seen this in a previous addition problem involving cashiers.
Example: Cashier-style change problem
Noah owes \$11 and pays with \$50. How much change does Noah recieve?
Show Solution
Count up:
$$11\to20\text{ is }9$$ $$20\to50\text{ is }30$$ $$9+30=39$$
So Noah gets $39 back.
Subtraction in Other Bases
Heres a little more practice with subtracing in other bases. You can use the standard algorithm here, but I want to emphasize counting up using addition tables.
Example: Counting up in Base-5
Find the difference. $4413_{\text{five}}-2342_{\text{five}}$
Show Solution
Recall that the addition table for base 5 is
| + | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 | 4 |
| 1 | 1 | 2 | 3 | 4 | 10 |
| 2 | 2 | 3 | 4 | 10 | 11 |
| 3 | 3 | 4 | 10 | 11 | 12 |
| 4 | 4 | 10 | 11 | 12 | 13 |
When we try to start the difference
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 4 | 4 | 1 | 3 | |
| - | 2 | 3 | 4 | 2 |
We realize we need to borrow once, so we'll go ahead and do that part..
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 4 | 3 | 11 | 3 | |
| - | 2 | 3 | 4 | 2 |
Now we're ready to start subtracting. $3_{\text{five}}-2_{\text{five}}$ is no issue.
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 4 | 3 | 11 | 3 | |
| - | 2 | 3 | 4 | 2 |
| 1 |
But $11_{\text{five}}-4_{\text{five}}$ requres a bit of thought. But go back to the addition table. Find $11_{\text{five}}$ in the center and a $4_{\text{five}}$ in the same row. You see that uniquely identifies a column.
| + | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 | 4 |
| 1 | 1 | 2 | 3 | 4 | 10 |
| 2 | 2 | 3 | 4 | 10 | 11 |
| 3 | 3 | 4 | 10 | 11 | 12 |
| 4 | 4 | 10 | 11 | 12 | 13 |
This entry corresponds to $4_{\text{five}}+2_{\text{five}}=11_{\text{five}}$, but for our purposes, using the definition of subtraction, that relationship is better written as $2_{\text{five}}=11_{\text{five}}-4_{\text{five}}$. So by finding this entry in the table we now know the difference without breaking about the calculation into base 10.
| op | 125's | 25's | 5's | 1's |
|---|---|---|---|---|
| 4 | 3 | 11 | 3 | |
| - | 2 | 3 | 4 | 2 |
| 2 | 0 | 2 | 1 |
Example: Counting up in Base-7
Find the difference. $6123_{\text{seven}}-345_{\text{seven}}$
Show Solution
Recall that the addition table for base 7 is
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 10 |
| 2 | 2 | 3 | 4 | 5 | 6 | 10 | 11 |
| 3 | 3 | 4 | 5 | 6 | 10 | 11 | 12 |
| 4 | 4 | 5 | 6 | 10 | 11 | 12 | 13 |
| 5 | 5 | 6 | 10 | 11 | 12 | 13 | 14 |
| 6 | 6 | 10 | 11 | 12 | 13 | 14 | 15 |
When we try to start the difference
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 6 | 1 | 2 | 3 | |
| - | 3 | 4 | 5 | |
We realize we need to borrow in the ones place, so we'll go ahead and do that part.
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 6 | 1 | 1 | 13 | |
| - | 3 | 4 | 5 | |
Now we're ready to start subtracting. $13_{\text{seven}}-5_{\text{seven}}$ is no issue.
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 6 | 1 | 1 | 13 | |
| - | 3 | 4 | 5 | |
| 5 |
But $1_{\text{seven}}-4_{\text{seven}}$ requires a borrow from the next column over.
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 6 | 0 | 11 | 13 | |
| - | 3 | 4 | 5 | |
| 5 |
Now we can use the table for $11_{\text{seven}}-4_{\text{seven}}$. Find $11_{\text{seven}}$ in the center and a $4_{\text{seven}}$ in the same row.
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 10 |
| 2 | 2 | 3 | 4 | 5 | 6 | 10 | 11 |
| 3 | 3 | 4 | 5 | 6 | 10 | 11 | 12 |
| 4 | 4 | 5 | 6 | 10 | 11 | 12 | 13 |
| 5 | 5 | 6 | 10 | 11 | 12 | 13 | 14 |
| 6 | 6 | 10 | 11 | 12 | 13 | 14 | 15 |
This entry corresponds to $4_{\text{seven}}+4_{\text{seven}}=11_{\text{seven}}$, so using subtraction we get $4_{\text{seven}}=11_{\text{seven}}-4_{\text{seven}}$.
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 6 | 0 | 11 | 13 | |
| - | 3 | 4 | 5 | |
| 4 | 5 |
We still have $0_{\text{seven}}-3_{\text{seven}}$, so we borrow from the next column and finish.
| op | 343's | 49's | 7's | 1's |
|---|---|---|---|---|
| 5 | 10 | 11 | 13 | |
| - | 3 | 4 | 5 | |
| 5 | 4 | 4 | 5 |
So the difference is
$$ 6123_{\text{seven}}-345_{\text{seven}}=5445_{\text{seven}} $$