e.g. Let P(x) = 2x^3 + 5x^2 - x -1.
Factorize P(x)
sol:
P(-1)=3
P(1) = 5
P(-1/2) = 1/2
P(1/2) = 0
Therefore, 2x-1 is a factor of P(x).
By the method of long division,
P(x) = (2x-1)(x^2 + 3x + 1)
我想問既係
點先諗到要試-1,1,-1/2,1/2 這4個數?
點解唔試其他數?e.g.0,2,-2 ?