f(x)=x2−1, g(x)=2x+2, then (fg)(x)=

x2−12x+2, x≠1

so is this correct

Just did this, you tacked in on at the end of your last posting. Look there