where p(x) = x + 3x^2 – 1 and g(x) = 1 + x.