Sums of squares, cubes, and fourth powers: formulas and proofs
The three formulas
For a positive integer ,
The same formulas hold for if the sums are interpreted as empty sums. Here we derive them, rather than treating them as unrelated facts to memorize.
The common idea is to evaluate a sum of differences in two ways: telescope it, and expand each difference. We use the familiar identity .
Deriving the sum of squares
Start with
Summing from to , the left side telescopes:
If , the expanded right side is
Equating the two evaluations and solving for gives
The cancellation is explained in more detail in telescoping sums.
Deriving the sum of cubes
Use the next power:
Let . Summation gives
Substitute the square-sum formula:
Rearranging and factoring yields
Thus the sum of the first cubes is the square of the sum of the first positive integers.
Deriving the sum of fourth powers
Start with
Writing gives
Substitute the results already obtained:
Solving for and factoring the polynomial gives
The pattern continues: the difference of consecutive st powers contains a leading term and lower powers. Once their sums are known, the same procedure finds the sum of th powers.
Proving a known formula by induction
Derivation explains how to discover a formula. If the formula is already supplied or conjectured, mathematical induction can verify it efficiently.
For example, prove
At , both sides equal . Suppose the formula holds at a positive integer . Then
This is the formula at , so the induction is complete. The base case and the use of the induction hypothesis are both explicit.
When expanding into power sums is unnecessary
Problem. Evaluate
Expanding gives a fourth-degree polynomial, so the formulas above could solve it. But the consecutive factors contain a shorter structure.
Let . Multiplying by the next and previous factors gives
Therefore
In the sum, the negative product for one index cancels the positive product for the previous index. Only the last positive term and the first negative term remain. The first negative term is zero because it contains at . Hence
This calculation does not require memorizing the fourth-power formula. More generally, consecutive products often have a simple finite-difference antiderivative; look for that structure before expanding.
How to check a power-sum answer
Test a small value such as or . Then verify that the proposed expression has and the correct starting value. These checks also explain why a correct formula holds for every integer , not just the first few.
Related articles
- Equating rational and irrational parts: proof and worked problems
- How to simplify nested square roots, with three worked examples
- Conditional probability: the formula, information protocols, and worked examples
- Integration by parts: formulas, proof, and four useful patterns
- Triple-angle identities: remember, derive, and apply them
About the author
Koki Saito
Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.
Full profile →Have a question or spotted an error? Contact us.