Let the given polynomial be p(x)=x3+13x2+31x−45.
We will now substitute various values of x until we get p(x)=0 as follows:
Forx=0p(0)=(0)3+13(0)2+31×(0)−45=0+0+0−45=−45≠0∴p(0)≠0
Forx=1p(1)=(1)3+13(1)2+31×(1)−45=1+13+31−45=45−45=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 dividing p(x) by (x−1) as shown in the above image:
From the division, we get the quotient g(x)=x2+14x+45 and now we factorise it as follows:
x2+14x+45=x2+9x+5x+45=x(x+9)+5(x+9)=(x+5)(x+9)
From equation 1, we get p(x)=(x−1)(x+5)(x+9).
Hence, x3+13x2+31x−45=(x−1)(x+5)(x+9).