In geometry you wrote two-column proofs: each line a fact, each fact justified. A direct proof in discrete math is the same idea written as sentences. It chains valid steps (modus ponens, over and over), and unlike a list of examples it covers every case at once.
Key idea
Why it works
Worked examples
Worked example: The product of two odd numbers is odd
- Assume $m$ and $n$ are odd. Then $m = 2a + 1$ and $n = 2b + 1$ for some integers $a$ and $b$. (Two letters, because $m$ and $n$ may be different.)
- Multiply: $mn = (2a + 1)(2b + 1) = 4ab + 2a + 2b + 1$.
- Factor $2$ from the first three terms: $mn = 2(2ab + a + b) + 1$.
- $2ab + a + b$ is an integer, so $mn$ has the form $2k + 1$: it is odd.
Answer: $mn = 2(2ab + a + b) + 1$, which is odd.
Worked example: Divisibility is transitive
- Assume $a \mid b$ and $b \mid c$. By definition, $b = ak$ and $c = bj$ for some integers $k$ and $j$.
- Substitute: $c = bj = (ak)j = a(kj)$.
- $kj$ is an integer, so $c$ is $a$ times an integer: $a \mid c$.
Answer: $c = a(kj)$, so $a \mid c$.
Worked example: A remainder pattern
- Assume $n$ is odd: $n = 2k + 1$.
- Then $n^{2} - 1 = 4k^{2} + 4k + 1 - 1 = 4(k^{2} + k)$.
- $k^{2} + k$ is an integer, so $n^{2} - 1$ is a multiple of $4$. (With one more idea, that $k^{2} + k = k(k + 1)$ is even, you can show it is a multiple of $8$.)
Answer: $n^{2} - 1 = 4(k^{2} + k)$
Common mistake