f(x)=x5−4x3+x2+3x+1
g(x)=x3−3x+1
If dividing f(x) by g(x) we get remainder 0 then g(x) will be a factor of f(x).
Dividing f(x) by g(x),
x2−1x3−3x+1)¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯x5−4x3+x2+3x+1x5−3x3+x2−+−_______________________−x3+3x+1−4x3+3x−1+−+___________________2
Remainder r(x)=2
Quotient q(x)=x2−1
Remainder is not zero.
Therefore g(x) is not a factor of f(x).