Use the factor theorem to determine and state whether g(x) is a factor of p(x) in each of the following cases:
Use the Factor Theorem to determine whether g(x) is a factor of p(x) in each of the following cases: (i)p(x)=2x3+x2−2x−1,g(x)=x+1 (ii)p(x)=x3+3x2+3x+1,g(x)=x+2 [4 MARKS]