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