Find sum of first n terms of 1² + 2² + 3² + ... + n²

medium CBSE JEE-MAIN 3 min read

Question

Find the sum of the series 12+22+32++n21^2 + 2^2 + 3^2 + \cdots + n^2.


Solution — Step by Step

We claim:

k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6}

This is one of three standard sum formulas that every student should memorise. Let’s derive it.

Use the identity: k3(k1)3=3k23k+1k^3 - (k-1)^3 = 3k^2 - 3k + 1

Write this for k=1,2,3,,nk = 1, 2, 3, \ldots, n and sum:

k=1n[k3(k1)3]=k=1n(3k23k+1)\sum_{k=1}^{n} [k^3 - (k-1)^3] = \sum_{k=1}^{n} (3k^2 - 3k + 1)

Left side (telescoping — most terms cancel):

n303=n3n^3 - 0^3 = n^3

Right side:

3k=1nk23k=1nk+k=1n13\sum_{k=1}^{n} k^2 - 3\sum_{k=1}^{n} k + \sum_{k=1}^{n} 1 =3S3n(n+1)2+n= 3S - 3 \cdot \frac{n(n+1)}{2} + n

where S=k=1nk2S = \sum_{k=1}^n k^2 (what we want to find) and we used the known formula k=n(n+1)2\sum k = \frac{n(n+1)}{2}.

Setting left = right:

n3=3S3n(n+1)2+nn^3 = 3S - \frac{3n(n+1)}{2} + n 3S=n3+3n(n+1)2n3S = n^3 + \frac{3n(n+1)}{2} - n 3S=n3n+3n(n+1)23S = n^3 - n + \frac{3n(n+1)}{2} 3S=n(n21)+3n(n+1)2=n(n1)(n+1)+3n(n+1)23S = n(n^2 - 1) + \frac{3n(n+1)}{2} = n(n-1)(n+1) + \frac{3n(n+1)}{2} 3S=n(n+1)[(n1)+32]=n(n+1)2(n1)+32=n(n+1)2n+123S = n(n+1)\left[(n-1) + \frac{3}{2}\right] = n(n+1) \cdot \frac{2(n-1)+3}{2} = n(n+1) \cdot \frac{2n+1}{2} S=n(n+1)(2n+1)6S = \frac{n(n+1)(2n+1)}{6}

For n=3n = 3: 12+22+32=1+4+9=141^2 + 2^2 + 3^2 = 1 + 4 + 9 = 14.

Formula: 3×4×76=846=14\frac{3 \times 4 \times 7}{6} = \frac{84}{6} = 14

For n=4n = 4: 1+4+9+16=301+4+9+16 = 30.

Formula: 4×5×96=1806=30\frac{4 \times 5 \times 9}{6} = \frac{180}{6} = 30


Why This Works

The telescoping identity k3(k1)3k^3 - (k-1)^3 is chosen specifically because it contains k2k^2 — allowing us to isolate the sum of squares once we know the sum of kk and the constant term. This method generalises: to find k3\sum k^3, use the identity (k4(k1)4)(k^4 - (k-1)^4) and so on.

Alternatively, this result can be proved by mathematical induction:

  • Base case: n=1n=1: 1=1×2×36=11 = \frac{1 \times 2 \times 3}{6} = 1
  • Inductive step: Assume true for n=kn=k; add (k+1)2(k+1)^2 to both sides and simplify to get the formula with n=k+1n=k+1.

Alternative Method — Proof by Induction (Outline)

Claim: k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}

Base case: n=1n=1: LHS = 1. RHS = 1236=1\frac{1 \cdot 2 \cdot 3}{6} = 1

Inductive step: Assume true for n=mn=m. For n=m+1n = m+1:

k=1m+1k2=m(m+1)(2m+1)6+(m+1)2\sum_{k=1}^{m+1} k^2 = \frac{m(m+1)(2m+1)}{6} + (m+1)^2 =(m+1)[m(2m+1)6+(m+1)]=(m+1)m(2m+1)+6(m+1)6= (m+1)\left[\frac{m(2m+1)}{6} + (m+1)\right] = (m+1) \cdot \frac{m(2m+1) + 6(m+1)}{6} =(m+1)2m2+7m+66=(m+1)(m+2)(2m+3)6=(m+1)(m+2)(2m+3)6= (m+1) \cdot \frac{2m^2+7m+6}{6} = (m+1) \cdot \frac{(m+2)(2m+3)}{6} = \frac{(m+1)(m+2)(2m+3)}{6}

This is the formula with n=m+1n = m+1: (m+1)((m+1)+1)(2(m+1)+1)6\frac{(m+1)((m+1)+1)(2(m+1)+1)}{6}

k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2} k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6} k=1nk3=[n(n+1)2]2\sum_{k=1}^{n} k^3 = \left[\frac{n(n+1)}{2}\right]^2

All three formulas are tested in CBSE Class 11 and JEE Main. Memorise all three. For k3\sum k^3, note the beautiful result: it equals (k)2(\sum k)^2 — the cube sum equals the square of the simple sum.


Common Mistake

Students often write the formula as n(n+1)(2n+1)3\frac{n(n+1)(2n+1)}{3} (dividing by 3 instead of 6). The correct denominator is 6. Verify: for n=1n=1, the formula must give 1. With denominator 3: 1×2×33=21\frac{1 \times 2 \times 3}{3} = 2 \neq 1. With denominator 6: 1×2×36=1\frac{1 \times 2 \times 3}{6} = 1 ✓. Always verify with n=1n=1.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next