Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

20.2: Addition and subtraction rules

( \newcommand{\kernel}{\mathrm{null}\,}\)

As usual in mathematics, breaking a big problem into smaller parts is a useful strategy.

Theorem 20.2.1: Addition Rule

Assume U is a finite set.

  1. If U=A1A2, then |U|=|A1|+|A2|.
  2. If U=A1A2, then |U|=|A1|+|A2||A1A2|.
Proof Idea.

After recalling the definition of disjoint union, Statement 1 should be obvious. To prove Statement 2, apply Statement 1 to the following disjoint unions:

U=A1(A2A1),A2=(A2A1)(A1A2).
Then combine the resulting equalities of cardinalities.

Remark 20.2.1

Statement 1 of Theorem 20.2.1 can be extended to a disjoint union of any number of subsets.

Example 20.2.1: Counting by breaking into cases.

How many words of length 3 or less are there using alphabet Σ={α,ω}?

Solution

Write Σ3 to mean the set of words in alphabet Σ of length 3 or less. Then

Σ3=Σ0Σ1Σ2Σ3,


so we can break into cases based on length and then apply the Addition Rule.

Count Σ0.
There is only one word of length 0: the empty word. So |Σ0|=1.

Count Σ1.
There are only two words of length 1: the single-letter words wα=α and wω=ω. So |Σ1|=2.

Count Σ2.
We can count be simply listing the elements:

Σ2={αα,αω,ωα,ωω}.


So |Σ2|=4.

Count Σ3.
This time we will just use inductive reasoning. Each word in Σ2 may be extended to a word in Σ3 by appending either an α or an ω onto the end. So there must be twice as many words in Σ3 as in Σ2, i.e. |Σ3|=8.

Total count.
Using the Addition Rule, we obtain the total by adding up our preliminary results:

|Σ3|=1+2+4+8=15.

Another common strategy in mathematics is to consider the opposite.

Theorem 20.2.2: Subtraction Rule.

Assume U is a finite set. For every subset AU, we have |A|=|U||AC|.

Proof Idea.

Since U=AAC is always true, simply apply Statement 1 of Theorem 20.2.1 to this disjoint union and rearrange to isolate |A|.

Example 20.2.2: Counting by counting the complement.

For alphabet Σ={a,b,c,,y,z}, how many words in Σ2 do not begin with the letter a? It's much easier to count the number of words in Σ2 that do begin with a, as there are only 26 possibilities for the second letter.

Later in this chapter we will learn a rule that will allow us to easily calculate the total number of words in Σ2 to be 262 (see Worked Example 20.3.6). Accepting this fact for the moment, we can then use the Subtraction Rule to compute

#{2-letter words not beginning with a}=|Σ2|#{2-letter words beginning with a}=26226=26(261)=2625.


This page titled 20.2: Addition and subtraction rules is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?