g(a-1) = (a-1)^2 + 2(a-1), g(a-1) = (a-1)((a-1) + 2), g(a-1) = (a-1)(a + 1).
You can ask a new question or answer this question.