I have to prove the equality: $$1^3 + 2^3 + · · · + (n − 2)^3 + 2^3 + n^3 = (1 + 2 + · · · + (n − 2) + 2 + n)^2$$
I already know that: $$1^3+2^3+3^3...+n^3=(1 + 2 + 3...+n)^2$$
How can I derive the second from the first? Perhaps not all through algebraic manipulation, but some logic, because the algebra seems tedious in this equation.
Let us call the left-hand side $L$ and the right-hand side $R$. Then
$$L=1+2^3+\ldots+(n-1)^3+n^3+\left[2^3-(n-1)^3\right]=\left[\dfrac{n(n+1)}{2} \right]^2+\left[2^3-(n-1)^3 \right]$$
The right-hand side is given by: $$R = \left[1+2+...+(n-2)+(n-1)+n+(2-(n-1))\right]^2=\left[\dfrac{n(n+1)}{2} +(2-(n-1))\right]^2$$
$$=\left[\dfrac{n(n+1)}{2} \right]^2+2\dfrac{n(n+1)}{2} (2-(n-1))+(2-(n-1))^2$$
Now, try to calculate $L-R$ if it is $0$ then you are done. But as many users pointed out the identity is not correct.