Can someone please assist me with what I feel is a foolishly simple concept. I have returned to school after many years, and my algebra skills seem to have deteriorated significantly. We are studying inductive proofs, and while I actually grasp the general concept of the proof, I am struggling with the algebra required.
We have been given the following example in our homework:
I am having difficulty following the progression of these steps. I am fairly certain the instructor has skipped a couple steps and not show what is to him "intuitive". Can someone please refresh my skills on how this works out including the factoring?

I suppose that this is what you search :
$$ \left(\frac{m(m+1)}{2} \right)^2+(m+1)^3= (m+1)^2\left(\frac{m}{2}\right)^2+(m+1)^3= $$ since $(m+1)^2$ is a ''common factor'' we have: $$ =(m+1)^2\left(\frac{m^2}{4}+(m+1) \right)=\frac{(m+1)^2}{4}\left(m^2+4(m+1) \right)= $$ $$ =\left(\frac{m+1}{2} \right)^2\left(m^2+4(m+1) \right) $$