Difference between revisions of "Proofs:Induction"
| Line 42: | Line 42: | ||
===Example 2=== | ===Example 2=== | ||
| − | Proposition: <math> | + | Proposition: Prove that <math>4~|~f(n)=5^n+8n+3 </math> for <math> n\in\N</math> |
| − | Note our parameter, <math>\text{for }n\in\N | + | : Note our parameter, <math>\text{for }n\in\N</math> This means it wants us to prove that it's true for all values of <math>n</math> which belong to the set (<math>\in</math>) of positive integers (<math>\N</math>). |
Basis case: | Basis case: | ||
| − | <math>\begin{align}&\text{Let }n=1\\&f(1)=5^1+8(1)+3\implies f(1)=16\\&\therefore 4~|~f(1)\end{align}</math> | + | : <math>\begin{align}&\text{Let }n=1\\&f(1)=5^1+8(1)+3\implies f(1)=16\\&\therefore 4~|~f(1)\end{align}</math> |
Assumption: Now we let <math>n=k</math> where <math>k</math> is a general positive integer and we assume that <math>4\ |\ f(k)</math> | Assumption: Now we let <math>n=k</math> where <math>k</math> is a general positive integer and we assume that <math>4\ |\ f(k)</math> | ||
| − | Remember <math>f(k)=5^k+8k+3</math> | + | : Remember <math>f(k)=5^k+8k+3</math> |
Induction: Now we want to prove that the <math>k+1^{th}</math> term is also divisible by 4 | Induction: Now we want to prove that the <math>k+1^{th}</math> term is also divisible by 4 | ||
| − | Hence <math>\text{let }n=k+1\implies f(k+1)=5^{k+1}+8(k+1)+3</math> | + | : Hence <math>\text{let }n=k+1\implies f(k+1)=5^{k+1}+8(k+1)+3</math> |
| − | This is where our assumption comes in, if <math>4~|~f(k)</math>then 4 must also divide <math>f(k+1)-f(k)</math> | + | : This is where our assumption comes in, if <math>4~|~f(k)</math>then 4 must also divide <math>f(k+1)-f(k)</math> |
| − | So: <math>f(k+1)-f(k)=5^{k+1}+8(k+1)+3-(5^k+8k+3)</math> | + | : So: <math>f(k+1)-f(k)=5^{k+1}+8(k+1)+3-(5^k+8k+3)</math> |
| − | <math>\begin{align}&f(k+1)-f(k)=5(5^k)-5^k+8\\&f(k+1)-f(k)=4(5^k)+8\\&\therefore~f(k+1)-f(k)=4(5^k+2)\end{align}</math> | + | :: <math>\begin{align}&f(k+1)-f(k)=5(5^k)-5^k+8\\&f(k+1)-f(k)=4(5^k)+8\\&\therefore~f(k+1)-f(k)=4(5^k+2)\end{align}</math> |
| − | Now we've shown <math>4~|~\bigl(f(k+1)-f(k)\bigr)</math> and thus <math>4~|~f(k+1)</math> it implies <math>4~|~f(n)</math> because you have successfully shown that 4 divides <math>f(n)</math>, where <math>n</math> is a general, positive integer (<math>k</math>) and also the consecutive term after the general term (<math>k+1</math>) | + | : Now we've shown <math>4~|~\bigl(f(k+1)-f(k)\bigr)</math> and thus <math>4~|~f(k+1)</math> it implies <math>4~|~f(n)</math> because you have successfully shown that 4 divides <math>f(n)</math>, where <math>n</math> is a general, positive integer (<math>k</math>) and also the consecutive term after the general term (<math>k+1</math>) |
Conclusion: | Conclusion: | ||
| − | <math>\begin{align}&4~|~f(k)\implies4~|~f(k+1)\\&\therefore~4~|~f(n),\forall n\in\Z^+\end{align}</math> | + | :: <math>\begin{align}&4~|~f(k)\implies4~|~f(k+1)\\&\therefore~4~|~f(n),\forall n\in\Z^+\end{align}</math> |
| − | <math> | + | If <math> 4 </math> divides <math> f(k) </math>, then it implies that <math> 4 </math> also divides <math> f(k+1) </math>. Therefore, since <math> 4 </math> divides <math> f(1) </math>, <math> 4 </math> divides <math> f(n) </math> for all <math> n\in\N </math>. |
| − | |||
Revision as of 11:42, 1 October 2021
The beauty of induction is that it allows a theorem to be proven true where an infinite number of cases exist without exploring each case individually. Induction is analogous to an infinite row of dominoes with each domino standing on its end. If you want to make all the dominoes fall, you can either:
- push on the first one, wait to see what happens, and then check each domino afterwards (which may take a long time if there's an infinite number of dominoes!)
- or you can prove that if any domino falls, then it will cause the domino after it to fall. (i.e. if the first one falls then the second one will fall, and if the second one falls then the third one will fall, etc.)
Induction, essentially, is the methodology outlined in point 2.
Parts of Induction
Induction is composed of three parts:
- The Base Case (in the domino analogy, this shows the first domino will fall)
- The Induction Hypothesis (in the domino analogy, we assume that a particular domino will fall)
- The Inductive Step (in the domino analogy, we prove that the domino we assume will fall will cause the next domino to fall)
Weak Induction
Weak induction is used to show that a given property holds for all members of a countable inductive set, this usually is used for the set of natural numbers.
Weak induction for proving a 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 P(n)} (that depends on ) relies on two steps:
- is true for a certain base step. Usually the base case is or
- . That is, if is true, then is true.
If these two properties hold, one may induce that the property holds for all elements in the set in question. Returning to the example, if you are sure that you called your neighbor, and you knew that everyone who was called in turn called his/her neighbor, then you would be guaranteed that everyone on the block had been called (assuming you had a linear block, or that it curved around nicely).
Example 1
The first example of a proof by induction is always 'the sum of the first n terms:'
- Theorem 2.4.1. For any fixed
- Proof
- Base step: , therefore the base case holds.
- Inductive step: Assume that . Consider .
So the inductive case holds. Now by induction we see that the theorem is true.
Example 2
Proposition: Prove that for
- Note our parameter, This means it wants us to prove that it's true for all values of which belong to the set () of positive integers ().
Basis 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 \begin{align}&\text{Let }n=1\\&f(1)=5^1+8(1)+3\implies f(1)=16\\&\therefore 4~|~f(1)\end{align}}
Assumption: Now we 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 n=k} where 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} is a general positive integer and we assume 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 4\ |\ f(k)}
- Remember 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 f(k)=5^k+8k+3}
Induction: Now we want to prove that the 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+1^{th}} term is also divisible by 4
- Hence 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 \text{let }n=k+1\implies f(k+1)=5^{k+1}+8(k+1)+3}
- This is where our assumption comes in, if 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 4~|~f(k)} then 4 must also divide 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 f(k+1)-f(k)}
- So: 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 f(k+1)-f(k)=5^{k+1}+8(k+1)+3-(5^k+8k+3)}
- 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{align}&f(k+1)-f(k)=5(5^k)-5^k+8\\&f(k+1)-f(k)=4(5^k)+8\\&\therefore~f(k+1)-f(k)=4(5^k+2)\end{align}}
- Now we've shown 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 4~|~\bigl(f(k+1)-f(k)\bigr)} and thus 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 4~|~f(k+1)} it implies 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 4~|~f(n)} because you have successfully shown that 4 divides 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 f(n)} , where 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} is a general, positive integer (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} ) and also the consecutive term after the general term (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+1} )
Conclusion:
- 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{align}&4~|~f(k)\implies4~|~f(k+1)\\&\therefore~4~|~f(n),\forall n\in\Z^+\end{align}}
If 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 4 } divides 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 f(k) } , then it implies 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 4 } also divides 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 f(k+1) } . Therefore, since 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 4 } divides 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 f(1) } , 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 4 } divides 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 f(n) } for all 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\in\N } .