Section 0.2 – Proofs in Math

To prove results, beyond those in formal logic, we use word proofs.

Direct Proof

To show $ p \to q $, assume $p$ is true, then use known results (e.g. facts, logical equivalents) to show that $q$ is also true.

Facts

Even Integers

If $n$ is an even integer, then,

where $k$ is some integer.

Odd Integers

If $n$ is an odd integer, then,

where $k$ is some integer.

Example

If some integer $n$ is even, then $n^2$ is also even.

Solution

Proof: Supposed $n$ is even, then,

For some $k \in \mathbb{Z}$.

So,

and $2k^2$ is an integer.

Proof by Contrapositive

Assume that $\neg q$ is true, then use known result to prove that $\neg p$ is true.

Recall The contrapositive of $p \to q$ is $\neg q \to \neg p$.

Example

$\forall n \in \mathbb{Z}$ if $n^2$ is even, then $n$ is even.

Solution

Proof (by contrapositive): Supposed $n$ is odd, then,

and,

Since $2k^2 + 2k$ is an integer,

Proof by Contradiction

To show $p \to q$ assume that $p$ and $\neg q$ are true. Then, using known results, arrive at some contradiction.

Show it's impossible for $\neg q$ to be true, and therefore for $q$ is true.

Fact

If $x$ is a rational number ($x \in \mathbb{Q}$) then,

where $a,b \in \mathbb{Z}$.

Example

Prove that $\sqrt{2}$ is irrational.

Soluiton

Proof: Suppose to the contrary that $\sqrt{2}$ is rational, then,

where $a,b \in \mathbb{Z}$.

Without loss of generality (WLOG), $a$ and $b$ are in reduced form. In particular $a$ and $b$ are not both even.

So,

and,

Therefore $a^2$ is even and by the previous proof $a$ is also even and can be written,

for some $k \in \mathbb{Z}$.

Now,

and,

thus $b$ is also even which is a contradiction.