I need to prove that
$$\sum_{i=1}^n i^3 = \left(\frac{n(n+1)}{2}\right)^2$$
The base case is true, so after assuming it's true for n, I proceeded to the inductive step:
$$\sum_{i=1}^{n+1} i^3 = \left(\frac{(n+1)(n+2)}{2}\right)^2$$
That's where I wanna get. Then:
$$\sum_{i=1}^{n+1} i^3 = \sum_{i=1}^n i^3 + (n+1)^3 = \left(\frac{n(n+1)}{2}\right)^2 + (n+1)^3$$
And this is where I'm stuck at. I couldn't find a way to merge both terms into one as they have different exponents. So I can't do something like $\frac{((n(n+1))^2+2(n+1)^3}{2}$, right?
I also tried doing $\sum_{i=1}^{n+1} i^3 = \sum_{i=1}^n i^2 . \sum_{i=1}^n i$ but couldn't try to make both expressions into what I'm looking for.
Thanks in advance.