Step 1 :\(g^2 + 7 = g^2 + 7 - 0g \)
Step 2 :\(g^2 + 7 = (g^2 - 0g + 7)\)
Step 3 :\(g^2 + 7 = (g - i \sqrt{7})(g + i \sqrt{7}) \)