Section 3.1 Direct Proof and Counterexample
Before starting proof techniques, we introduce a few mathematical definitons. Keep in mind, mathematical definitions are constructed to provide a common language for proofs. They are intended to provide rigor and precision. They are NOT intended to provide conceptual understanding. You need to develop conceptual understanding of the terms apart from the definition. However, we need to rely on definitions to provide structure for our proofs.
We defined the integers in Definition 1.1.1. Recall from Section 2.1, we use for the set of integers.
Definition 3.1.2.
You are probably familiar, generally, with even numbers such as 2, 4, 6, 8, and odd numbers such as 3, 5, 7, 9. But the next example uses the definitions to look at more examples.
Example 3.1.3. Even or Odd.
Is -5 even or odd?
Answer 1.
Is 0 even or odd?
Answer 2.
Let Is even or odd?
Answer 3.
Let Is even or odd?
Answer 4.
Activity 3.1.1. Always, Sometimes, or Never Even.
Let be integers. Determine if each of the following are always even, always odd, or sometimes even/ sometimes odd.
(a)
(b)
(c)
(d)
(e)
We’ve now seen several examples of even/ odd integers. Are there integers which are both even and odd? Can an integer be neither even nor odd? The answer to both questions is no. However, proving that every integer is even or odd (and not both), is pretty challenging, and we won’t try to do it, yet. But for the moment we will assume if we know an integer is NOT even, then it must be odd, and vice versa.
We start our proof techniques by looking at how to prove universal conditional statements, which we studied in Section 2.3. Recall, a universal conditional statement has the form “For all if has property then has property ” We can restate this using symbolic notation: For all Although we saw how to write “for all” using the symbol in this book we will generally avoid the quantifier symbols in our proofs. This just helps with clarity for the reader and is fairly standard in mathematical writing. However, the techniques for understanding and negating quantified statements from Section 2.2 still apply.
One very limited method for proving universal conditional statements is the method of exhaustion: for each specific where is true, show is true. In other words, we check if then for each
Example 3.1.4. Method of Exhaustion.
Prove for all if is even and then can be written as the sum of prime numbers.
Proof.
We can find all the integers that are even and This is the set For each of these numbers we can demonstrate a way to write them as the sum of primes:
The method of exhaustion only works if we can show the statement for every But if is infinite, we need to use a more general method. We saw the limitations of this method in Section 1.1. Although this method won’t result in a proof if our set is infinite, it can be a helpful first stab at a proof in that generating examples can lead to more general insight into the problem. Our first more general technique is the method of direct proof.
Method of Direct Proof.
To prove statements of the form “for all ” using the method of direct proof we use the following process.
- Let
Make sure this is a variable or generic not a specific value. - Assume
is true. - Show
is true.
Example 3.1.5. Direct Proof.
Prove for all if is even, then is odd.
Proof.
Let be even. Then by definition, for some Then where Which means is odd.
Example 3.1.6. Sum of Even Numbers.
Prove the sum of two even integers is even.
Note, this statement is not obviously in the form of an if...then. We often have to translate statements into more formal statements before proving them.
More formally, prove for all if and are even, then is even.
Proof.
Let be even. Then by definition, for some and for some (Note, we cannot use for both and as they likely are two different numbers.) Then where Which means is even.
A counterexample is used to disprove a universal conditional statements. If we have a universal conditional statement of the form “for all ”, we show it is false with the following process.
Disproving by Counterexample.
To disprove statements of the form “for all ” we find a counterexample.
- Find
making, true and false. Note, this step may happen as scratchwork, not part of your counterexample. - For your counterexample, state
- Show
is true and is false.
Example 3.1.7. Counterexample.
Disprove the statement every prime number, is odd.
Let Then is prime and is not odd.
Activity 3.1.2. Proving a Statement is False.
Some proof writing advice:
- Make the proof self-contained. Try not to reference many other mathematical facts. Many proofs in this course will rely entirely on definitions.
- Use complete sentences. Even equations have a sentence structure. Your proof should be able to be read in sentences.
- Give reasons. Connect your statements together.
- Include words. Often using a word is better that using a symbol. Many proofs have no symbols in them at all.
- The audience for your proofs is not the instructor. Think of the audience as being your peers in the course or even yourself in a few weeks (or months) when you might have forgotten the specific content. Write so you will know what you meant later.
- The goal of a proof is to write a clear, easy to follow argument--not to just get to the end. The “answer” is the proof itself. Use space, start a new line, set equations on their own line.
- Never feel that you have to be able to know what the end of the proof will look like before you can start. Write proofs one step at a time. Start with what you know. See if you can do one thing. See if you can do another thing. Look at where you want to go. Do not try to see the whole picture at once. This is also good advice for reading a proof.
Some common proof-writing errors:
- Using an example for a proof. If you need to prove a statement for all
it is not enough to show it for an example. - Using the same variable to represent two different things.
- Jumping to conclusions. Giving inadequate reasons. This often occurs if you rely on additional mathematical ideas or don’t connect your ideas to each other.
- Assuming what you need to prove. This is a big one. This most often occurs when there is confusion about conditional statements. Be careful about identifying the “if” and the “then” in a statement.
Often in math we need to identify whether a statement is true or false, so that we know whether we need to prove the true statement or disprove the false one. In order to practice, we give a few more definitions.
Definition 3.1.8.
Definition 3.1.9.
Example 3.1.10. Prime or Composite.
Is 1 prime?
Answer 1.
Is 1 composite?
Answer 2.
Is 121 prime?
Answer 3.
Let Is composite?
Answer 4.
Example 3.1.11. Prove or Disprove.
Prove or disprove there exists a positive integer such that is prime.
Since we need to try to decide if the statement is true or false, first try some examples.
Answer 1.
After trying several examples, we might guess that it is false. If we want to disprove the statement then we need to prove the negation. Find the negation of the statement.
Answer 2.
For all positive integers is not prime (is composite).
So we need to show that for a general we can always write as a product of with
We can try to factor the expression:
Let We need to show that Since and Thus Therefore, is not prime.
Activity 3.1.3. Prove or Disprove.
(a)
(b)
(c)
Exercises Exercises
1.
Use the definitions of even, odd, prime and composite to justify your answer to each of the following questions. Let and be integers.
- Is
even? - Is
odd? - If
is composite?
2.
3.
4.
5.
6.
Find the mistakes in the following “proof.”
7.
Find the mistakes in the following “proof.”
Theorem: The difference between any odd integer and any even integer is odd.
“Proof”: Suppose is an odd integer, and is an even integer. By definition of odd, where is an integer, and by definition of even where is an integer. Then
Since 1 is odd the difference between an odd integer and and even integer is odd.
8.
Prove the difference of any even integer minus any odd integer is odd.
9.
Prove the sum of any two odd integers is even.
10.
11.
Prove or disprove the following statements using the method of direct proof or counterexample.
- The difference of any two odd integers is odd.
- The product of any even integer and any integer is even.
- The difference of any two even integers is even.
- The difference of any two odd integers is even.
- For all integers
if is prime then - For all integers
is prime. - If
and are perfect squares, then is a perfect square.