Let the given polynomial be p(x)=x3+3x2+3x+2.
We will now substitute various values of x until we get p(x)=0 as follows:
Forx=0p(0)=(0)3+3(0)2+3(0)+2=0+0+0+2=2≠0∴p(0)≠0
Forx=−1p(−1)=(−1)3+3(−1)2+3(−1)+2=−1+3−3+2=5−4=1≠0∴p(−1)≠0
Forx=−2p(−2)=(−2)3+3(−2)2+3(−2)+2=−8+12−6+2=14−14=0∴p(−2)=0
Thus, (x+2) is a factor of p(x).
Now,
p(x)=(x+2)⋅g(x).....(1)⇒g(x)=p(x)(x+2)
Therefore, g(x) is obtained by after dividing p(x) by (x+2) as shown in the above image:
From the division, we get the quotient g(x)=x2+x+1.
From equation 1, we get p(x)=(x+2)(x2+x+1).
Hence, x3+3x2+3x+2=(x+2)(x2+x+1).