Completing the Square

Where the b over 2 comes from. Press play: the bx rectangle is cut in half, one piece moves under the square, and the corner that finishes the square is exactly the bit you have to take back off.

Completing the square
drag the shape sideways to change b