For the answer to the question above,
g(f(x)) = (4x^2 + x + 1)^2 - 2
g(f(x)) = (16x^4 + 4x^3 + 4x^2 + 4x^3 + x^2 + x + 4x^2 + x + 1) - 2
g(f(x)) = 16x^2 + 8x^3 + 9x^2 + 2x + 1 - 2
g(f(x)) = 16x^2 + 8x^3 + 9x^2 + 2x - 1
I hope my answer helped you. Feel free to ask more questions. Have a nice day!