Simple exercise 6.2 in Hammack's Book of Proof. "Use proof by contradiction to prove"
"Suppose $n$ is an integer. If $n^2$ is odd, then $n$ is odd"
So my approach was:
Suppose instead, IF $n^2$ is odd THEN $n$ is even
Alternatively, then you have the contrapositive, IF $n$ is not even ($n$ is odd), then $n^2$ is not odd ($n^2$ is even).
$n = 2k+1$ where $k$ is an integer. (definition of odd)
$n^2 = (2k+1)^2$
$n^2 = 4k^2 + 4k + 1$
$n^2 = 2(2k^2 + 2k) + 1$
$n^2 = 2q + 1$ where $q = 2k^2 + 2k$
therefore $n^2$ is odd by definition of odd.
Therefore we have a contradiction. Contradictory contrapositive proposition said $n^2$ is not odd, but the derivation says $n^2$ is odd. Therefore the contradictory contrapositive is false, therefore the original proposition is true.
Not sure if this was the efficient/correct way to prove this using Proof-By-Contradiction.