Proof by Induction
Mathematical Induction is a formal proof and it has several steps that must be followed. It can be thought of as dominoes, where you want to prove that all dominoes fall. Logically of course, you must first show that the first domino falls, and then prove if one falls, the next one must also fall.
Mathematically:
If a given statement is true at a starting position, meaning that at a given index the proposition starts out as true, then if it is also true for all given values after that, then it is true. This is to say that if P(0) is true, and ∀k∈ℕ. P(k)→P(k+1) is also true, then the original statement that P(x) represents is true. So pretty much if it starts true, and remains true, we can conclude it is always true.
What does it mean?
You have to prove the first step, so proving that P(0) or P(k) when k = 0 is true. Then, as the second step you need to prove that P(k) is also true for P(k+1) so P(0+1) for the given example, you do this on and one pretty much.
It is used where there is a chain, like in natural numbers. So if you want to prove that something is true for all numbers for example, then you use the proof by induction
Three Steps of Induction
-
Prove
P(0)is true, this step is called the basis -
Prove
if P(k) then P(k+1)where k is some arbitrary number, and this is therefore called the inductive step.- You do not outright assume that this statement is true, and you have to actually prove that it is, I assume using some of the other methods from before hand like the direct proof or proof by contrapositive
- You essentially usually have to understand the formality of
P(k)is true, and this is called the inductive hypothesis
-
Conclude, by induction, that
P(n)is true for all n, some people draw a little square to mark the end of the proof.
Example of a correct Proof:
Theorem: The sum of first n powers of 2 is
So given this values we can say that: Let P(n) be equal to 2^0 + 2^1 + ... + 2^(n-1) = (2^n)-1
Proof Work
-
To prove that
P(n)is true for all numbers: we need to prove thatP(1)is first true. This means that we need to plug in a zero to the equal.2^0 = 1. This is in fact equal to(2^1)-1 = 0 -
How we need to showcase that
P(k) → P(k+1), given that this is an implication we can use something like a direct proof to showcase that ifpis true, thenqmust also always be true, so: -
Assume
P(k)is true, so2^0 + 2^1 + ... + 2^(k-1) = (2^k)-1we now then need to prove that the following statement ofP(k+1) = 2^0 + 2^1 + ... + 2^(k-1) + 2^(k) = (2^k+1)-1is true
- Now, given the original inductive hypothesis, we know that all values up to
2^(k-1)are equal to(2^k)-1, we can just sub that in and we getP(k+1) = (2^k)-1 + (2^k) = (2^k+1)-1=(2^k+1)-1, now simplifying this out using the rules of exponents we do end up withP(k+1)being true ifP(k)is true. Meaning that the inductive step is complete - So now we can conclude the proof with the statement that: Therefore P(n) is true for all n.
Theorem: n < , for all n, natural numbers
Proof work
-
Let
P(n)be∀ n∈ℕ | n < 3^n -
The first step is the basis, and so we start at
P(0), and we plug it into the equation we get0 < 3^0, anything to the zero is one and so we end up with0 < 1which is true, and therefore we have the basis for the proof by induction. -
Now we need to prove that
P(k) → P(k+1), we can do so through a direct proof. -
So we assume that
P(k)is true, and thereforek < 3^(k)is also true. -
Given this, we need to prove that
(k+1) < 3^(k+1), this can be done by manipulating the equation:k+1 < 3^k * 3. given this we can then subtract a 1 from both sides and get:k < 3^k * 3 - 1, we also obviously know thatk < 3^k < 3^k*3 - 1, and so therefore we have proven that ifP(k)is true thenP(k+1)is true as well. -
Therefore we can conclude that
P(n)is true for all values of n.
Exercises:
-
Let P (n) be the statement that 12 + 22 +···+ n2 = n(n + 1)(2n + 1)/6 for the positive integer n.
- What is the statement P (1)?
- Show that P (1) is true, completing the basis step of the proof.
- What is the inductive hypothesis?
- What do you need to prove in the inductive step?
- Complete the inductive step, identifying where you use the inductive hypothesis.
-
Using induction, prove that 3n< n! if n is an integer greater than 6.
-
Using induction, prove that 2n > n2 if n is an integer greater than 4.
-
Using induction, prove that 5 divides n 5 − n whenever n is a non-negative integer.
Book Reading:
This essential reading covers the subjects that you have studied in Topic 2 (Weeks 3 and 4). It contains detailed explanations and a variety of examples to enable you to understand concepts such as correct proof and proof by induction. We strongly recommend that you to first watch the videos and then study the essential reading.
- Read Rosen, pp. 311–330. (Gonna read 331-it’s the actual chapter on induction.)
Book Notes:
Proofs using mathematical inductions have two parts. First they show that the statement holds for the positive integer of 1 or 0, basically the smallest number in the set kind of. Second, you just show that if the statement holds for a positive integer, it must then also hold for the next larger integer. This basically says that
if P(1) and ∀l(P(k)→P(k+1)), then the given statement ofP(x)is true for all values that x belongs to the domain of positive integers,∀xP(x)is true.
Mathematical induction is really good for proving a numerous amount of different theorems and results. For example this can be used i order to actually define functions. You can define some initial terms as specified, and then give a rule for how to find subsequent values from values already known. This is called recursive definitions, and you can think of things like fibonacci for this for example.
This proof of induction is also good for verifying the results of a program, as you need to make sure that a program is generally good for all possible inputs and not just a subset of them, and this is how we can have things like secure operating systems and what not.
Introduction:
Suppose that we have an infinite ladder. We want to know whether we can reach every step on this ladder, and we know two things:
- We can reach the first rung of the ladder
- If we can reach a particular rung of this ladder, then we can reach the next rung
Can you conclude that we can reach every rung? Of course, this is logical because we know since we can reach the first rung, we can reach the second, and we know if we can reach a second by the second rule we can reach the third, so on and so forth for infinite.
This is exactly how a proof by induction or a mathematical induction works.
Mathematical Induction
In general, a mathematical induction can be used to prove statements that assert some proposition P(n) is true for all positive integers n.
This is done through the two given steps, a basis step which is where we verify that P(1) is true
And then another step called the inductive step where we show that if P(k) then P(k+1) is also true. This is generally done through the use of a direct proof or a proof by contrapositive or contradiction, mostly direct though.
So basically you find the first value is true, and then you suppose P(k) is true, this is called the inductive hypothesis and is basically also the first step in a direct proof. Doing this you then showcase: ∀k(P(k)→P(k+1)) is true over the domain of all positive integers. Expressing this as a rule of inference we have:
(P(1) ∧ ∀k(P(k) → P(k)+1)) → ∀n(P(n)).
This is a verbose way of saying that if you can prove the basis step and the inductive step, are both true, then we can cognitively also prove that the proposition applies to all values n over the domain of ℕ
Choosing the correct Basis Step
Mathematical induction can be used to prove other theorems rather than just ones in the form of P(n) is true for all positive integers n. It is often used to show something like P(n) is true for all n = b, b+1, b+2..., where b is an integer other than 1.
In this situation, you obviously do not plug in P(1) and instead plug in whatever P(b) might end up being. Note also that b can be something other than a positive integer as well, it still must be an integer, but it can be something that is positive, zero, or negative, and as long as the logic applies, it still all works the same.
Template for proof by mathematical induction:
The Good and Bad of mathematical Induction
A lot of people find mathematical induction to be unsatisfying because it simply showcases that a given theorem works, and not the reason why it works. This can be both good and bad as it can be used to showcase that a theorem is true. But is also makes it harder for people to do things like discover new theorems or apply logistics to a given theorem.





