How do you factor given that f(9)=0f(9)=0 and f(x)=x^3-18x^2+95x-126f(x)=x318x2+95x126?

1 Answer
Mar 18, 2017

The equation becomes:
f(x) = (x-9)(x-7)(x-2)f(x)=(x9)(x7)(x2)

Explanation:

Hmm, I don't know... Let's try it out, shall we?

First, you're given that f(9) = 0f(9)=0
and
f(x) = x^3 - 18x^2 +95x -126f(x)=x318x2+95x126

Well, let's check if that's true!

f(9) = 9^3 - 18*9^2 +95*9 -126f(9)=931892+959126
i.e.
f(9) = f(9)="big numbers", darn.

Since I'm too lazy to do the calculations,
let's say they are correct, and assume that f(9) = 0f(9)=0

What's another equation that we know of, that also has 9 as its solution?
Can you think of a simple one?
This one for example:

g(x) = x-9g(x)=x9

This give g(9) = 0g(9)=0, exactly the same as our first equation.
This also means that "if" 9 is really a solution to our equation, we can factor it out, and the equation should look like:

f(x) = (x-9)(ax^2 + bx + c)f(x)=(x9)(ax2+bx+c)
where aa, bb, and cc are real numbers.

Now, let's open the parentheses and let's gather all similar terms together:
f(x) = ax^3 + bx^2 + cx - 9ax^2 -9bx -9cf(x)=ax3+bx2+cx9ax29bx9c
i.e.
f(x) = ax^3 + (b-9a)x^2 + (c-9b)x -9cf(x)=ax3+(b9a)x2+(c9b)x9c

Great!
Now, we can relate this to our first equation.
This means that
a=1a=1,
(b-9a) = -18(b9a)=18,
(c-9b)=95(c9b)=95, and
-9c = -1269c=126

Let's solve for aa, bb, and cc. Well a=1a=1 so that's taken care of.
Moving to the second line, we then have
(b-9*1) = -18(b91)=18
i.e.
b=-9b=9

and finally,
c=-126/-9c=1269 i.e. c=14c=14

So, our new equation looks like the following:
f(x) = (x-9) (x^2 -9x +14)f(x)=(x9)(x29x+14)

But let's not stop here! Maybe we can factor the right side one more time! For that, let's see if we can solve it if we set it to 0.
x^2 -9x +14 = 0x29x+14=0
We solve it using the quadratic formula (see other posts!),
and we get:
x_1 = 7x1=7 and x_2 = 2x2=2
which means we can rewrite the equation as such:
x^2 -9x + 14 = (x-7)(x-2) = 0x29x+14=(x7)(x2)=0

So, finally, the first equation becomes:
f(x) = (x-9)(x-7)(x-2)f(x)=(x9)(x7)(x2)

Q.E.D.