J's answer to :)'s Secondary 4 A Maths Singapore question.

done {{ upvoteCount }} Upvotes
clear {{ downvoteCount * -1 }} Downvotes
J
J's answer
1024 answers (A Helpful Person)
1st
If the roots of f(x) = 0 are -1, 2 and 5, then:
x = -1 or x = 2 or x = 5 when f(x) = 0
x + 1 = 0 or x - 2 = 0 or x - 5 = 0
Multiplying all 3 together will equal 0.
(x + 1)(x - 2)(x - 5) = 0
(x + 1)(x² - 7x + 10) = 0
x³ - 7x² + 10x + x² - 7x + 10 = 0
x³ - 6x² + 3x + 10 = 0
Since the coefficient of x³ is -1, we have to multiply both sides by -1.
The right side is 0 so multiplying by -1 will still give 0.
-x³ + 6x² - 3x - 10 = 0

∴ f(x) = -x³ + 6x² - 3x - 10