Skip to content

Polynomials, factorisation and algebraic division

A polynomial is an expression formed from constants and non-negative integer powers of a variable. Polynomial algebra lets us rewrite such expressions without changing their value. The most useful forms reveal factors, roots, intercepts or long-term behaviour.

You should be comfortable with:

  • collecting like terms
  • the laws of indices
  • expanding two brackets
  • solving linear equations
  • substituting negative and fractional values carefully

Review algebraic fluency if these skills are uncertain. Quadratic-specific methods are developed in quadratics, while decomposing rational expressions is covered in partial fractions.

In one variable, a polynomial has the form

P(x)=anxn+an1xn1++a1x+a0,P(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0,

where nn is a non-negative integer and the coefficients a0,a1,,ana_0,a_1,\ldots,a_n are constants. If an0a_n\ne0, the degree is nn and ana_n is the leading coefficient.

For example,

P(x)=4x53x2+7P(x)=4x^5-3x^2+7

has degree 55, leading coefficient 44 and constant term 77. Its missing x4x^4, x3x^3 and xx terms have coefficient zero:

P(x)=4x5+0x4+0x33x2+0x+7.P(x)=4x^5+0x^4+0x^3-3x^2+0x+7.

Writing missing terms explicitly is often helpful during algebraic division.

Expressions such as x1+2x^{-1}+2, x+1\sqrt{x}+1 and 3x3^x are not polynomials in xx. Their powers are respectively negative, fractional and variable.

Only like terms can be combined. When subtracting a polynomial, the negative sign changes every term inside its brackets.

Let

P(x)=3x32x2+5x4,qquadQ(x)=x3+4x27.P(x)=3x^3-2x^2+5x-4,qquad Q(x)=x^3+4x^2-7.

Then

P(x)Q(x)=(3x32x2+5x4)(x3+4x27)=3x32x2+5x4x34x2+7=2x36x2+5x+3.\begin{aligned} P(x)-Q(x) &=(3x^3-2x^2+5x-4)-(x^3+4x^2-7)\\ &=3x^3-2x^2+5x-4-x^3-4x^2+7\\ &=2x^3-6x^2+5x+3. \end{aligned}

The absent xx term in Q(x)Q(x) contributes zero, not another power of xx.

Expansion uses the distributive law. Every term in one factor must multiply every term in the other factor.

Example 2: a linear factor times a quadratic

Section titled “Example 2: a linear factor times a quadratic”

Expand (2x3)(x2+4x5)(2x-3)(x^2+4x-5).

(2x3)(x2+4x5)=2x(x2+4x5)3(x2+4x5)=2x3+8x210x3x212x+15=2x3+5x222x+15.\begin{aligned} (2x-3)(x^2+4x-5) &=2x(x^2+4x-5)-3(x^2+4x-5)\\ &=2x^3+8x^2-10x-3x^2-12x+15\\ &=2x^3+5x^2-22x+15. \end{aligned}

A quick check is to compare the leading and constant terms. They must be

2xx2=2x3,qquad(3)(5)=15.2x\cdot x^2=2x^3,qquad (-3)(-5)=15.

Expand (x2)(x+1)(x+4)(x-2)(x+1)(x+4).

Multiply two factors first:

(x2)(x+1)=x2x2.(x-2)(x+1)=x^2-x-2.

Then multiply by the remaining factor:

(x2x2)(x+4)=x3+4x2x24x2x8=x3+3x26x8.\begin{aligned} (x^2-x-2)(x+4) &=x^3+4x^2-x^2-4x-2x-8\\ &=x^3+3x^2-6x-8. \end{aligned}

The order does not change the answer, so choose a pair that keeps the arithmetic simple.

Several expansions are worth recognising:

(a+b)2=a2+2ab+b2,(ab)2=a22ab+b2,(a+b)(ab)=a2b2,(a+b)3=a3+3a2b+3ab2+b3,(ab)3=a33a2b+3ab2b3.\begin{aligned} (a+b)^2&=a^2+2ab+b^2,\\ (a-b)^2&=a^2-2ab+b^2,\\ (a+b)(a-b)&=a^2-b^2,\\ (a+b)^3&=a^3+3a^2b+3ab^2+b^3,\\ (a-b)^3&=a^3-3a^2b+3ab^2-b^3. \end{aligned}

For instance,

(2x3)3=8x336x2+54x27.(2x-3)^3=8x^3-36x^2+54x-27.

The middle terms do not vanish. Cubing each term separately is incorrect.

Factorisation reverses expansion. Always look for a common factor first, then inspect the remaining expression.

Example 4: common factors and difference of two squares

Section titled “Example 4: common factors and difference of two squares”

Factorise 12x375x12x^3-75x fully.

First take out the highest common factor:

12x375x=3x(4x225).12x^3-75x=3x(4x^2-25).

The bracket is a difference of squares:

4x225=(2x)252=(2x5)(2x+5).4x^2-25=(2x)^2-5^2=(2x-5)(2x+5).

Therefore

12x375x=3x(2x5)(2x+5).12x^3-75x=3x(2x-5)(2x+5).

Factorise x3+2x29x18x^3+2x^2-9x-18.

Group pairs whose remaining factors match:

x3+2x29x18=x2(x+2)9(x+2)=(x+2)(x29)=(x+2)(x3)(x+3).\begin{aligned} x^3+2x^2-9x-18 &=x^2(x+2)-9(x+2)\\ &=(x+2)(x^2-9)\\ &=(x+2)(x-3)(x+3). \end{aligned}

This method is useful when the four terms naturally form two pairs. It is not guaranteed to work for every cubic.

If

P(x)=(xa)Q(x),P(x)=(x-a)Q(x),

then xax-a is a factor. Setting P(x)=0P(x)=0 gives

xa=0quadorquadQ(x)=0,x-a=0quad\text{or}quad Q(x)=0,

so x=ax=a is a root. Notice the sign:

  • the factor x4x-4 gives the root 44
  • the factor x+4x+4 gives the root 4-4
  • the factor 2x32x-3 gives the root 32\frac32

Repeated factors produce repeated roots. For example,

P(x)=(x2)2(x+5)P(x)=(x-2)^2(x+5)

has a repeated root x=2x=2 and a root x=5x=-5.

Polynomial division has the same structure as integer division:

dividend=(divisor)(quotient)+remainder.\text{dividend}=(\text{divisor})(\text{quotient})+\text{remainder}.

When a polynomial P(x)P(x) is divided by a non-zero linear expression, the quotient has degree one less than P(x)P(x) and the remainder is a constant.

Divide 2x3+3x211x62x^3+3x^2-11x-6 by x+3x+3.

The leading term 2x32x^3 divided by xx gives 2x22x^2. Multiply back and subtract:

2x23x2x+32x3+3x211x62x3+6x2\cline253x211x3x29x\cline352x62x6\cline450\begin{array}{r|rrrr} &2x^2&-3x&-2\\ x+3&2x^3&+3x^2&-11x&-6\\ &2x^3&+6x^2&&\\ \cline{2-5} &&-3x^2&-11x&\\ &&-3x^2&-9x&\\ \cline{3-5} &&&-2x&-6\\ &&&-2x&-6\\ \cline{4-5} &&&&0 \end{array}

Hence

2x3+3x211x6=(x+3)(2x23x2).2x^3+3x^2-11x-6=(x+3)(2x^2-3x-2).

The quadratic factor can be factorised further:

2x23x2=(2x+1)(x2).2x^2-3x-2=(2x+1)(x-2).

Therefore

2x3+3x211x6=(x+3)(2x+1)(x2).2x^3+3x^2-11x-6=(x+3)(2x+1)(x-2).

Divide x34x+7x^3-4x+7 by x2x-2.

Include the missing square term:

x3+0x24x+7.x^3+0x^2-4x+7.

Long division gives quotient x2+2xx^2+2x and remainder 77, so

x34x+7=(x2)(x2+2x)+7.x^3-4x+7=(x-2)(x^2+2x)+7.

Check by expanding:

(x2)(x2+2x)+7=x3+2x22x24x+7=x34x+7.(x-2)(x^2+2x)+7=x^3+2x^2-2x^2-4x+7=x^3-4x+7.

Because the remainder is not zero, x2x-2 is not a factor.

Do not treat 2x12x-1 as if it were x1x-1. The leading term of the divisor matters.

For example, divide 6x3+x24x+16x^3+x^2-4x+1 by 2x12x-1.

6x3÷2x=3x2,(6x3+x2)(6x33x2)=4x2,4x2÷2x=2x,(4x24x)(4x22x)=2x,2x÷2x=1.\begin{aligned} 6x^3\div2x&=3x^2,\\ (6x^3+x^2)-(6x^3-3x^2)&=4x^2,\\ 4x^2\div2x&=2x,\\ (4x^2-4x)-(4x^2-2x)&=-2x,\\ -2x\div2x&=-1. \end{aligned}

The subtraction leaves no remainder, so

6x3+x24x+1=(2x1)(3x2+2x1).6x^3+x^2-4x+1=(2x-1)(3x^2+2x-1).

The factor theorem states:

xa is a factor of P(x)P(a)=0.x-a\text{ is a factor of }P(x)\quad\Longleftrightarrow\quad P(a)=0.

More generally,

axb is a factor of P(x)P(ba)=0.ax-b\text{ is a factor of }P(x)\quad\Longleftrightarrow\quad P\left(\frac ba\right)=0.

This works because division by xax-a gives

P(x)=(xa)Q(x)+r.P(x)=(x-a)Q(x)+r.

Substituting x=ax=a produces P(a)=rP(a)=r. This is also the remainder theorem: the remainder on division by xax-a is P(a)P(a).

Show that x2x-2 is a factor of

P(x)=x3+x28x4.P(x)=x^3+x^2-8x-4.

Evaluate P(2)P(2):

P(2)=23+228(2)4=8+4164=8.P(2)=2^3+2^2-8(2)-4=8+4-16-4=-8.

Since P(2)0P(2)\ne0, the claim is false: x2x-2 is not a factor. This example matters because a request to “show” something does not make it true if the polynomial has been copied incorrectly. Trust the mathematics and check the signs.

However,

P(2)=(2)3+(2)28(2)4=8+4+164=8,P(-2)=(-2)^3+(-2)^2-8(-2)-4=-8+4+16-4=8,

so x+2x+2 is not a factor either.

Factorise

P(x)=2x35x24x+3,P(x)=2x^3-5x^2-4x+3,

given that x3x-3 is a factor.

First verify the information:

P(3)=544512+3=0.P(3)=54-45-12+3=0.

Divide by x3x-3:

P(x)=(x3)(2x2+x1).P(x)=(x-3)(2x^2+x-1).

Then factorise the quadratic:

2x2+x1=(2x1)(x+1).2x^2+x-1=(2x-1)(x+1).

Thus

P(x)=(x3)(2x1)(x+1),P(x)=(x-3)(2x-1)(x+1),

and the roots are

x=3,qquadx=12,qquadx=1.x=3,qquad x=\frac12,qquad x=-1.

The polynomial

P(x)=2x3+kx213x+6P(x)=2x^3+kx^2-13x+6

has factor x2x-2. Find kk.

The factor theorem gives P(2)=0P(2)=0:

2(2)3+k(2)213(2)+6=0.2(2)^3+k(2)^2-13(2)+6=0.

Therefore

16+4k26+6=0,16+4k-26+6=0,

so

4k4=0quad\Longrightarrowquadk=1.4k-4=0quad\Longrightarrowquad k=1.

The polynomial

P(x)=x3+ax2+bx+6P(x)=x^3+ax^2+bx+6

has factors x1x-1 and x+2x+2. Find aa and bb.

From x1x-1:

P(1)=1+a+b+6=0,P(1)=1+a+b+6=0,

so

a+b=-7.\tag{1}

From x+2x+2:

P(2)=8+4a2b+6=0,P(-2)=-8+4a-2b+6=0,

so

2a-b=1.\tag{2}

Adding equations (1)(1) and (2)(2) gives

3a=6,3a=-6,

hence a=2a=-2 and then b=5b=-5. Therefore

P(x)=x32x25x+6.P(x)=x^3-2x^2-5x+6.

Since two linear factors are known, its final factor can be found by division:

P(x)=(x1)(x+2)(x3).P(x)=(x-1)(x+2)(x-3).

If an integer-coefficient polynomial has a rational root pq\frac pq in lowest terms, then pp divides the constant term and qq divides the leading coefficient. This result narrows the candidates but does not prove that any candidate is a root.

For

P(x)=2x33x28x+12,P(x)=2x^3-3x^2-8x+12,

possible rational roots include

±1, ±2, ±3, ±4, ±6, ±12,±12, ±32.\pm1,\ \pm2,\ \pm3,\ \pm4,\ \pm6,\ \pm12, \quad \pm\frac12,\ \pm\frac32.

Testing simple values first,

P(2)=161216+12=0.P(2)=16-12-16+12=0.

Thus x2x-2 is a factor. Division gives

P(x)=(x2)(2x2+x6)=(x2)(2x3)(x+2).P(x)=(x-2)(2x^2+x-6)=(x-2)(2x-3)(x+2).

At A-level, a question may give one factor or expect you to spot a small root. Systematic testing is safer than guessing randomly.

An equation is true only for particular values of its variable. An identity is true for every permitted value and is written with \equiv.

For example,

(x+2)(ax2+bx+c)3x3+4x25x+2.(x+2)(ax^2+bx+c)\equiv 3x^3+4x^2-5x+2.

Expanding the left side gives

ax3+(b+2a)x2+(c+2b)x+2c.ax^3+(b+2a)x^2+(c+2b)x+2c.

Equal polynomials have equal coefficients of every power, so

a=3,qquadb+2a=4,qquadc+2b=5,qquad2c=2.a=3,qquad b+2a=4,qquad c+2b=-5,qquad 2c=2.

These give a=3a=3, b=2b=-2 and c=1c=1, which satisfy all four equations. Comparing coefficients is especially useful when an identity contains unknown constants.

In

P(x)(x23x+4),P(x)-(x^2-3x+4),

the second polynomial becomes

x2+3x4.-x^2+3x-4.

Every sign changes.

When dividing x35x+2x^3-5x+2, write

x3+0x25x+2.x^3+0x^2-5x+2.

The placeholder keeps powers aligned.

For factor x+3x+3, test P(3)P(-3), not P(3)P(3). Solve the factor equation x+3=0x+3=0 first if uncertain.

The expression

2x(x29)2x(x^2-9)

is factorised, but not fully factorised. Continue to

2x(x3)(x+3).2x(x-3)(x+3).

x5x-5 is an expression and may be a factor. 55 is a number and may be a root. They encode the same information but are not interchangeable objects.

A cubic has three roots over the complex numbers when multiplicity is counted, but it may have only one real root. Polynomial factorisation over the real numbers can therefore leave an irreducible quadratic factor.

Try these without looking back. Expand or factorise fully unless stated otherwise.

  1. Expand (3x+2)(x22x+5)(3x+2)(x^2-2x+5).
  2. Factorise 18x38x18x^3-8x.
  3. Find the remainder when P(x)=2x3x2+4x7P(x)=2x^3-x^2+4x-7 is divided by x+1x+1.
  4. Given that x2x-2 is a factor of x3+kx29x+2x^3+kx^2-9x+2, find kk.
  5. Factorise x32x25x+6x^3-2x^2-5x+6 fully.
  6. The polynomial P(x)=2x3+ax2+bx3P(x)=2x^3+ax^2+bx-3 has factors x1x-1 and 2x+12x+1. Find aa and bb.
  1. 3x34x2+11x+103x^3-4x^2+11x+10.
  2. 2x(3x2)(3x+2)2x(3x-2)(3x+2).
  3. P(1)=2147=14P(-1)=-2-1-4-7=-14.
  4. P(2)=8+4k18+2=0P(2)=8+4k-18+2=0, so k=2k=2.
  5. (x1)(x+2)(x3)(x-1)(x+2)(x-3).
  6. P(1)=0P(1)=0 gives a+b=1a+b=1. Since 2x+1=02x+1=0 at x=12x=-\frac12, P(12)=0P(-\frac12)=0 gives a2b=13a-2b=13. Hence a=5a=5 and b=4b=-4.
  • Study quadratics for quadratic roots, discriminants and graph structure.
  • Study functions to connect polynomial formulae with domains, ranges and mappings.
  • Study partial fractions to reverse the process of combining rational expressions.
  • Revisit this lesson before polynomial differentiation, integration and numerical methods, where correct algebra is essential.