# The function f(x) = ax^3 - x^2 + bx - 24 has three factors. Two of these factors are x - 2 and x + 4. Determine the values of a and b.

### 1 Answer | Add Yours

Two of the factors of the function `f(x) = ax^3 - x^2 + bx - 24` are (x - 2) and (x + 4).

According to the factor theorem, f(2) and f(-4) must be equal to zero.

So, `a*2^3 - 2^2 + b*2 - 24=0` --- (i)

`rArr 8a+2b-28=0`

And, `a(-4)^3 - (-4)^2 + b(-4) - 24=0`

`rArr 16a+b+10=0` --- (ii)

---------------

2*(ii)-(i)

---------------

`24a+48=0`

`rArr a=-2`

Put this vaue in (i),

`8*(-2)+2b=28`

`rArr 2b=28+16=44`

`rArr b=22`

**Sources:**