Mathematical induction

From TCS Wiki
Jump to navigation Jump to search

Template:Complex

Mathematical induction is a special way of proving a mathematical truth. It can be used to prove that something is true for all the natural numbers (all the positive whole numbers). The idea is that

  • Something is true for the first case
  • That same thing is always true for the next case

then

  • That same thing is true for every case

In the careful language of mathematics:

  • State that the proof will be by induction over [math]\displaystyle{ n }[/math]. ([math]\displaystyle{ n }[/math] is the induction variable.)
  • Show that the statement is true when [math]\displaystyle{ n }[/math] is 1.
  • Assume that the statement is true for any natural number [math]\displaystyle{ n }[/math]. (This is called the induction step.)
    • Show then that the statement is true for the next number, [math]\displaystyle{ n+1 }[/math].

Because it's true for 1, then it is true for 1+1 (=2, by the induction step), then it is true for 2+1 (=3), then it is true for 3+1 (=4), and so on.

An example of proof by induction:

Prove that for all natural numbers n:

[math]\displaystyle{ 1+2+3+....+(n-1)+n=\tfrac12 n(n+1) }[/math]

Proof:

First, the statement can be written: for all natural numbers n

[math]\displaystyle{ 2\sum_{k=1}^n k=n(n+1) }[/math]

By induction on n,

First, for n=1:

[math]\displaystyle{ 2\sum_{k=1}^1 k=2(1)=1(1+1) }[/math],

so this is true.

Next, assume that for some n=n0 the statement is true. That is,:

[math]\displaystyle{ 2\sum_{k=1}^{n_0} k = n_0(n_0+1) }[/math]

Then for n=n0+1:

[math]\displaystyle{ 2\sum_{k=1}^{{n_0}+1} k }[/math]

can be rewritten

[math]\displaystyle{ 2\left( \sum_{k=1}^{n_0} k+(n_0+1) \right) }[/math]

Since [math]\displaystyle{ 2\sum_{k=1}^{n_0} k = n_0(n_0+1), }[/math]

[math]\displaystyle{ 2\sum_{k=1}^{n_0+1} k = n_0(n_0+1)+2(n_0+1) =(n_0+1)(n_0+2) }[/math]

Hence the proof is correct.

Similar proofs

Mathematical induction is often stated with the starting value 0 (rather than 1). In fact, it will work just as well with a variety of starting values. Here is an example when the starting value is 3. The sum of the interior angles of a [math]\displaystyle{ n }[/math]-sided polygon is [math]\displaystyle{ (n-2)180 }[/math]degrees.

The initial starting value is 3, and the interior angles of a triangle is [math]\displaystyle{ (3-2)180 }[/math]degrees. Assume that the interior angles of a [math]\displaystyle{ n }[/math]-sided polygon is [math]\displaystyle{ (n-2)180 }[/math]degrees. Add on a triangle which makes the figure a [math]\displaystyle{ n+1 }[/math]-sided polygon, and that increases the count of the angles by 180 degrees [math]\displaystyle{ (n-2)180+180=(n+1-2)180 }[/math]degrees. Proved.

There are a great many mathematical objects for which proofs by mathematical induction works. The technical term is a well-ordered set.

Inductive definition

The same idea can work to define, as well as prove.

Define [math]\displaystyle{ n }[/math]th degree cousin:

  • A [math]\displaystyle{ 1 }[/math]st degree cousin is the child of a parent's sibling
  • A [math]\displaystyle{ n+1 }[/math]st degree cousin is the child of a parent's [math]\displaystyle{ n }[/math]th degree cousin.

There is a set of axioms for the arithmetic of the natural numbers which is based on mathematical induction. This is called "Peano's Axioms". The undefined symbols are | and =. The axioms are

  • | is a natural number
  • If [math]\displaystyle{ n }[/math] is a natural number, then [math]\displaystyle{ n| }[/math] is a natural number
  • If [math]\displaystyle{ n| = m| }[/math] then [math]\displaystyle{ n = m }[/math]

One can then define the operations of addition and multiplication and so on by mathematical induction. For example:

  • [math]\displaystyle{ m + | = m| }[/math]
  • [math]\displaystyle{ m + n| = (m + n)| }[/math]