How do you write a four term polynomial that can be factored by grouping?

2 Answers
Jul 27, 2017

e.g.: x^3+3x^2-4x-12 = (x-2)(x+2)(x+3)x3+3x24x12=(x2)(x+2)(x+3)

Explanation:

We can construct such a polynomial by reversing the factorisation.

For example, to get an example cubic, pick any numbers a, b, c, da,b,c,d and multiply out:

(ax+b)(cx^2+d) = acx^3+bcx^2+adx+bd(ax+b)(cx2+d)=acx3+bcx2+adx+bd

So picking a=1a=1, b=3b=3, c=1c=1, d=-4d=4, we would get:

x^3+3x^2-4x-12 = (x^3+3x^2)-(4x+12)x3+3x24x12=(x3+3x2)(4x+12)

color(white)(x^3+3x^2-4x-12) = x^2(x+3)-4(x+3)x3+3x24x12=x2(x+3)4(x+3)

color(white)(x^3+3x^2-4x-12) = (x^2-4)(x+3)x3+3x24x12=(x24)(x+3)

color(white)(x^3+3x^2-4x-12) = (x-2)(x+2)(x+3)x3+3x24x12=(x2)(x+2)(x+3)

Note that in this example, I chose c=1c=1 and d=-4=-2^2d=4=22, so the quadratic factor factored cleanly.

If we want clean factorisations like this, we could use the alternative pattern:

(ax+b)(cx-d)(cx+d) = (ax+b)(c^2x^2-d^2)(ax+b)(cxd)(cx+d)=(ax+b)(c2x2d2)

color(white)((ax+b)(cx-d)(cx+d)) = ac^2x^3+bc^2x^2-ad^2x-bd^2(ax+b)(cxd)(cx+d)=ac2x3+bc2x2ad2xbd2

Jul 28, 2017

Here is one way I've done it when writing exam questions.

Explanation:

Make sure that the first two terms have a common factor. Not a constant common factor, but something involving the variable.

Warning: This may lead to a polynomial that cannot be factored completely over the integers.

For example we might start with

14x^5-49x^314x549x3

There is a common factor of 7x^37x3.

The other factor is 2x^2-72x27

For our third and fourth terms we need a multiple of 2x^2-72x27 In order to avoid a common factor of xx use a constant.

We could use the following:

55 to get 14x^5-49x^3 + 5(2x^2-7) = 14x^5-49x^3+10x^2-3514x549x3+5(2x27)=14x549x3+10x235
Which factors as (7x^3+5)(2x^2-7)(7x3+5)(2x27)

Neither of these factor can be factored over the integers.