I need to test by inductive method $1^3 + 2^3 + 3^3 + \dots + n^3 = (1 + 2 + 3 + \dots +n)^2.$
1) base equation $$\sum_{i=1}^{n}{i^{3}} = { (n + 1) ^{2}}$$ 2) replace with 1 $$\sum_{i=1}^{n}{i^{3}} = { (1+1) ^{2}}$$ Is that correct?
3) Assumption: $$\sum_{i=1}^{k}{i^{3}} = { (k+1) ^{2}}$$ 4) Check: \begin{align*} \sum_{i=1}^{k+1}{i^{3}} &= { ((k+1) +1) ^{2}}\\ \sum_{i=1}^{k}{i^{3}} + (k+1)&= ((k+1)+1) ^{2} (k+1) ^{2} + (k+1) \\ &= ((k+1)+1) ^{2} (k+1) ^{2} + (k+1)\\&= { ((k+1)^{2}+2k+2+1)}\end{align*} and can not continue more....
This statement is false. See this graph, the only intersection is when $x=2$, for the rest, it doesn't work.
E.g. for $x=3$, $\sum_{i=1}^{3}{i^3}=1^3+2^3+3^3=1+8+27=36$, while $(3+1)^2=16$.
What your base statement should actually be is: $$\sum_{i=1}^{n}{i^3}=\bigg[\sum_{i=1}^{n}{i}\bigg]^2$$
For the result: prove these by induction: $$\sum_{i=1}^{n}{i}=\frac{1}{2}n(n+1)$$ $$\sum_{i=1}^{n}{i^3}=\frac{1}{4}n^2(n+1)^2$$
If you can manage that, it's easy to see that $$\sum_{i=1}^{n}{i^3}=\bigg[\sum_{i=1}^{n}{i}\bigg]^2$$