Difference between revisions of "Proofs:Induction"
Line 21: | Line 21: | ||
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value. | Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value. | ||
+ | ==Examples== | ||
===Sum of consecutive natural numbers=== | ===Sum of consecutive natural numbers=== | ||
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''. | Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''. | ||
Line 55: | Line 56: | ||
<u>''Conclusion''</u>: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. [[Q.E.D.|∎]] | <u>''Conclusion''</u>: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. [[Q.E.D.|∎]] | ||
+ | |||
+ | ===A trigonometric inequality=== | ||
+ | Induction is often used to prove inequalities. As an example, we prove that <math>|\!\sin nx|\leq n|\!\sin x|</math> for any real number <math>x</math> and natural number <math>n</math>. | ||
+ | |||
+ | At first glance, it may appear that a more general version, <math>|\!\sin nx|\leq n\,|\!\sin x|</math> for any ''real'' numbers <math>n,x</math>, could be proven without induction; but the case <math display="inline">n=\frac{1}{2},\, x=\pi</math> shows it may be false for non-integer values of <math>n</math>. This suggests we examine the statement specifically for ''natural'' values of <math>n</math>, and induction is the readiest tool. | ||
+ | |||
+ | '''<u>Proposition</u>.''' For any <math>x\in \mathbb{R},n\in\mathbb{N}</math>, <math>|\!\sin nx|\leq n\,|\!\sin x|</math>. | ||
+ | |||
+ | '''Proof.''' Fix an arbitrary real number <math>x</math>, and let <math>P(n)</math> be the statement <math>|\!\sin nx|\leq n\,|\!\sin x|</math>. We induct on <math>n</math>. | ||
+ | |||
+ | ''<u>Base case:</u>'' The calculation <math>|\!\sin 0x| = 0 \leq 0 = 0\,|\!\sin x|</math> verifies <math>P(0)</math>. | ||
+ | |||
+ | ''<u>Inductive step:</u>'' We show the implication <math>P(k)\implies P(k{+}1)</math> for any natural number <math>k</math>. Assume the induction hypothesis: for a given value <math>n=k\geq 0</math>, the single case <math>P(k)</math> is true. Using the [[List of trigonometric identities|angle addition formula]] and the [[Absolute value#Real numbers|triangle inequality]], we deduce: | ||
+ | |||
+ | :<math>\begin{array}{rcll} | ||
+ | |\sin(k{+}1)x| | ||
+ | & = & |\sin kx\,\cos x+\sin x\,\cos kx\,| & \text{(angle addition)} | ||
+ | \\ | ||
+ | & \leq & |\!\sin kx\,\cos x| + |\!\sin x\,\cos kx| & \text{(triangle inequality)} | ||
+ | \\ | ||
+ | & = & |\!\sin kx|\,|\!\cos x|+|\!\sin x|\,|\!\cos kx|& | ||
+ | \\ | ||
+ | & \leq & |\!\sin kx| + |\!\sin x| & (\,|\!\cos t|\leq 1) | ||
+ | \\ | ||
+ | & \leq & | ||
+ | k\,|\!\sin x|+|\!\sin x| & \text{(induction hypothesis})\\ | ||
+ | & \ =\ & (k{+}1)\,|\!\sin x|. & | ||
+ | \end{array}</math> | ||
+ | |||
+ | The inequality between the extreme left hand and right-hand quantities shows that <math>P(k{+}1)</math> is true, which completes the inductive step. | ||
+ | |||
+ | <u>''Conclusion''</u>: The proposition <math>P(n)</math> holds for all natural numbers <math>n</math>. ∎ |
Revision as of 13:33, 12 October 2021
Mathematical induction is a mathematical proof technique. It is essentially used to prove that a statement P(n) holds for every natural number n = 0, 1, 2, 3, . . . ; that is, the overall statement is a sequence of infinitely many cases P(0), P(1), P(2), P(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:
Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the basis) and that from each rung we can climb up to the next one (the step).
- - Concrete Mathematics, page 3 margins.
A proof by induction consists of two cases. The first, the base case (or basis), proves the statement for n = 0 without assuming any knowledge of other cases. The second case, the induction step, proves that if the statement holds for any given case n = k, then it must also hold for the next case n = k + 1. These two steps establish that the statement holds for every natural number n. The base case does not necessarily begin with n = 0, but often with n = 1, and possibly with any fixed natural number n = N, establishing the truth of the statement for all natural numbers n ≥ N.
The method can be extended to prove statements about more general well-founded structures, such as trees; this generalization, known as structural induction, is used in mathematical logic and computer science. Mathematical induction in this extended sense is closely related to recursion. Mathematical induction is an inference rule used in formal proofs, and is the foundation of most correctness proofs for computer programs.
Although its name may suggest otherwise, mathematical induction should not be confused with inductive reasoning as used in philosophy (see Problem of induction). The mathematical method examines infinitely many cases to prove a general statement, but does so by a finite chain of deductive reasoning involving the variable n, which can take infinitely many values.
Contents
Description
The simplest and most common form of mathematical induction infers that a statement involving a natural number n (that is, an integer n ≥ 0 or 1) holds for all values of n. The proof consists of two steps:
The initial or base case: prove that the statement holds for 0, or 1. The induction step, inductive step, or step case: prove that for every n, if the statement holds for n, then it holds for n + 1. In other words, assume that the statement holds for some arbitrary natural number n, and prove that the statement holds for n + 1. The hypothesis in the inductive step, that the statement holds for a particular n, is called the induction hypothesis or inductive hypothesis. To prove the inductive step, one assumes the induction hypothesis for n and then uses this assumption to prove that the statement holds for n + 1.
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.
Examples
Sum of consecutive natural numbers
Mathematical induction can be used to prove the following statement P(n) for all natural numbers n.
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements: , , , etc.
Proposition. For any ,
Proof. Let P(n) be the statement We give a proof by induction on n.
Base case: Show that the statement holds for the smallest natural number n = 0.
P(0) is clearly true:
Inductive step: Show that for any k ≥ 0, if P(k) holds, then P(k+1) also holds.
Assume the induction hypothesis that for a particular k, the single case n = k holds, meaning P(k) is true:
It follows that:
Algebraically, the right hand side simplifies as:
Equating the extreme left hand and right hand sides, we deduce that:
That is, the statement P(k+1) also holds true, establishing the inductive step.
Conclusion: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement P(n) holds for every natural number n. ∎
A trigonometric inequality
Induction is often used to prove inequalities. As an example, we prove that for any real number and natural number .
At first glance, it may appear that a more general version, for any real numbers , could be proven without induction; but the case shows it may be false for non-integer values of . This suggests we examine the statement specifically for natural values of , and induction is the readiest tool.
Proposition. For any , .
Proof. Fix an arbitrary real number , and let be the statement . We induct on .
Base case: The calculation verifies .
Inductive step: We show the implication for any natural number . Assume the induction hypothesis: for a given value , the single case is true. Using the angle addition formula and the triangle inequality, we deduce:
The inequality between the extreme left hand and right-hand quantities shows that is true, which completes the inductive step.
Conclusion: The proposition holds for all natural numbers . ∎