Mathematical Induction Math Example 3

Follow the full solution, then compare it with the other examples linked below.

Example 3

medium
Prove by induction: 12+22+32+โ‹ฏ+n2=n(n+1)(2n+1)61^2 + 2^2 + 3^2 + \cdots + n^2 = \frac{n(n+1)(2n+1)}{6} for all nโ‰ฅ1n \ge 1.

Solution

  1. 1
    Base case (n=1n=1): LHS =1= 1. RHS =1โ‹…2โ‹…36=1= \frac{1 \cdot 2 \cdot 3}{6} = 1. True.
  2. 2
    Assume true for kk: โˆ‘i=1ki2=k(k+1)(2k+1)6\sum_{i=1}^{k} i^2 = \frac{k(k+1)(2k+1)}{6}.
  3. 3
    For k+1k+1: โˆ‘i=1k+1i2=k(k+1)(2k+1)6+(k+1)2=k(k+1)(2k+1)+6(k+1)26\sum_{i=1}^{k+1} i^2 = \frac{k(k+1)(2k+1)}{6} + (k+1)^2 = \frac{k(k+1)(2k+1) + 6(k+1)^2}{6}.
  4. 4
    Factor out (k+1)(k+1): =(k+1)[k(2k+1)+6(k+1)]6=(k+1)(2k2+7k+6)6=(k+1)(k+2)(2k+3)6= \frac{(k+1)[k(2k+1) + 6(k+1)]}{6} = \frac{(k+1)(2k^2+7k+6)}{6} = \frac{(k+1)(k+2)(2k+3)}{6}.
  5. 5
    This equals (k+1)((k+1)+1)(2(k+1)+1)6\frac{(k+1)((k+1)+1)(2(k+1)+1)}{6}. QED.

Answer

โˆ‘i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}
The key algebraic step is factoring the numerator after adding the (k+1)2(k+1)^2 term. Always verify the factored form matches the desired formula with n=k+1n = k+1.

About Mathematical Induction

Mathematical induction proves statements indexed by integers by verifying a base case and an inductive step.

Learn more about Mathematical Induction โ†’

More Mathematical Induction Examples