whats -2g(gsquared-2g+2)

multipy the -2g by each term.