Let f(x)=x^3+2x^2-4x-8f(x)=x3+2x2−4x−8
Then f(2)=8+8-8-8=0f(2)=8+8−8−8=0
Therefore, (x-2)(x−2) is a factor of f(x)f(x)
f(-2)=-8+8+8-8=0f(−2)=−8+8+8−8=0
Therefore, (x+2)(x+2) is a factor of f(x)f(x)
So, (x+2)(x-2)=x^2-4(x+2)(x−2)=x2−4 is a factor of f(x)f(x)
To find the last factor, let's do a long division
color(white)(aaaa)aaaax^3+2x^2-4x-8x3+2x2−4x−8color(white)(aaaa)aaaa∣∣x^2-4x2−4
color(white)(aaaa)aaaax^3x3color(white)(aaaaaaa)aaaaaaa-4x−4xcolor(white)(aaaaaaa)aaaaaaa∣∣x+2x+2
color(white)(aaaa)aaaa0+2x^20+2x2color(white)(aaaaa)aaaaa0-80−8
color(white)(aaaaaa)aaaaaa+2x^2+2x2color(white)(aaaaaaa)aaaaaaa-8−8
color(white)(aaaaaaaa)aaaaaaaa00color(white)(aaaaaaaaaa)aaaaaaaaaa00
So, f(x)=(x+2)^2(x-2)f(x)=(x+2)2(x−2)
As (x+2)^2>0(x+2)2>0
Therefore, the sign of f(x)f(x) will depend on the sign of (x-2)(x−2)
When x<2x<2, f(x)<0f(x)<0
and when x>=2x≥2, f(x)>=0f(x)≥0
graph{x^3+2x^2-4x-8 [-20.28, 20.27, -10.14, 10.14]}