Algebra Examples

Find g(f(x)) f(x)=1-xg(x)=-3x^2-x-1
I am unable to solve this problem.