I'm a high school student currently going through Apostol's calculus. I'm not that familiar with proofs, but I learned Calculus in school up to partial fractions, but we focused more on problems instead of the concept/proof, so please bear with me. I already understand most of the method of exhaustion, but there's one thing that keeps bothering me.
Apostol wants to prove that for every integer n>=1
$$1^2+2^2+...+n^2=\frac{n^3}{3}+\frac{n^2}{2}+\frac{n}{6}$$
To do that, he starts with the formula: $$(k+1)^3=k^3+3k^2+3k+1$$
Now, my question is, why did he start with this formula? For instance, if I didn't know anything about this proof and I wanted to start from scratch, what sort of thought process do I go through to come up say "Okay, to prove this idenity we start with this formula."