\(1^2+2^2+...+n^2=1+2\left(1+1\right)+...+n\left(n-1+1\right)=1+2+1.2+3+2.3+...+n+\left(n-1\right)n\)
\(=\left(1+2+3+...+n\right)+\left[1.2+2.3+...+\left(n-1\right)n\right]=\dfrac{\left(n+1\right)\left(\dfrac{n-1}{1}+1\right)}{2}+\dfrac{1.2.3+2.3.3+...+\left(n-1\right)n.3}{3}=\dfrac{n\left(n+1\right)}{2}+\dfrac{1.2.3+2.3.\left(4-1\right)+...+\left(n-1\right)n\left[\left(n+1\right)-\left(n-2\right)\right]}{3}\)
\(=\dfrac{n\left(n+1\right)}{2}+\dfrac{1.2.3-1.2.3+2.3.4-...-\left(n-2\right)\left(n-1\right)n+\left(n-1\right)n\left(n+1\right)}{3}\)
\(=\dfrac{n\left(n+1\right)}{2}+\dfrac{\left(n-1\right)n\left(n+1\right)}{3}=\dfrac{3n\left(n+1\right)+2\left(n-1\right)n\left(n+1\right)}{6}=\dfrac{2n^3+3n^2+n}{6}=\dfrac{1}{3}n^3+\dfrac{1}{2}n^2+\dfrac{1}{6}n=\dfrac{1}{3}n\left(n^2+\dfrac{3}{2}n+\dfrac{1}{2}\right)=\dfrac{1}{3}n\left(n+\dfrac{1}{2}\right)\left(n+1\right)\)