Difference between revisions of "Proofs:Induction"
| Line 68: | Line 68: | ||
''<u>Base case:</u>'' The calculation <math>|\!\sin 0x| = 0 \leq 0 = 0\,|\!\sin x|</math> verifies <math>P(0)</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 | + | ''<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 angle addition formula and the triangle inequality, we deduce: |
:<math>\begin{array}{rcll} | :<math>\begin{array}{rcll} | ||
Revision as of 13:34, 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.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.}
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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n,x} , could be proven without induction; but the case Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\textstyle n=\frac{1}{2},\, x=\pi} shows it may be false for non-integer values of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} . This suggests we examine the statement specifically for natural values of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} , and induction is the readiest tool.
Proposition. For any Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x\in \mathbb{R},n\in\mathbb{N}} , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle |\!\sin nx|\leq n\,|\!\sin x|} .
Proof. Fix an arbitrary real number Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} , and let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(n)} be the statement Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle |\!\sin nx|\leq n\,|\!\sin x|} . We induct on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} .
Base case: The calculation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle |\!\sin 0x| = 0 \leq 0 = 0\,|\!\sin x|} verifies Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(0)} .
Inductive step: We show the implication Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(k)\implies P(k{+}1)} for any natural number Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k} . Assume the induction hypothesis: for a given value Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n=k\geq 0} , the single case Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(k)} is true. Using the angle addition formula and the triangle inequality, we deduce:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \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}}
The inequality between the extreme left hand and right-hand quantities shows that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(k{+}1)} is true, which completes the inductive step.
Conclusion: The proposition Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(n)} holds for all natural numbers Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} . ∎