Additional Topics for the TMUA

Multivariate Factorisation using the Factor Theorem

What you will get from this section. You will learn how to factorise expressions involving two or more variables, such as y3+xy22x3y^3+xy^2-2x^3, by treating one variable as the unknown and the others as constants. We can then apply the familiar factor theorem to identify factors that might otherwise be difficult to spot.

TMUA Relevance Score: 6/10

The factor theorem

You already know the factor theorem for a polynomial in a single variable. If f(x)f(x) is a polynomial, then

It turns out that exactly the same idea works when the “constants” are themselves expressions involving another variable — provided we treat that variable as fixed while considering the polynomial in xx. And really, why wouldn't it?

A motivating example

Consider x3+x22x^3+x^2-2. Notice that x=1x=1 is a root, so (x1)(x-1) is a factor.

Wait, I meant consider x3+kx22k3x^3+kx^2-2k^3. Notice that x=kx=k is a root, so (xk)(x-k) is a factor.

Oh, actually, I mean x3+yx22y3x^3+yx^2-2y^3. Notice that x=yx=y makes the expression zero, so (xy)(x-y) is a factor.

Therefore, we may divide by (xy)(x-y) to obtain x3+yx22y3=(xy)(x2+2xy+2y2)x^3+yx^2-2y^3=(x-y)(x^2+2xy+2y^2).

Multivariate factor theorem

Joking aside, I hope this example demonstrates the key idea. I will refer to this natural extension as the multivariate factor theorem. We can write it more formally as:

If you are slightly lost in the rigorous notation, it is basically saying this: if you have an expression involving xx and yy, and replacing every xx with some expression in yy, say h(y)=2yh(y)=2y, makes the whole expression equal to 00 for all yy, then xh(y)=x2yx-h(y)=x-2y is a factor of the original expression.

There is, of course, nothing special about treating xx as the variable. We could just as well consider our example x3+yx22y3x^3+yx^2-2y^3 as a polynomial in yy. Substituting y=xy=x makes the expression zero, so (yx)(y-x) is a factor.

Why is it useful and how do you apply it?

In some TMUA questions, there are critical steps where you are expected to recognise such a factorisation by inspection in order to continue making progress. A good example is 2017 Paper 1 Question 20, where you eventually need to factorise a22ad3d2a^2-2ad-3d^2 as (a+d)(a3d)(a+d)(a-3d), which is not immediately obvious to many students.

The way to apply the theorem is simple. Treat aa as the variable and ask: can you spot a simple expression in dd that makes the whole expression zero? If so, you can immediately deduce a factor. In this example, setting a=da=-d makes the expression zero, so (a+d)(a+d) must be a factor.

The biggest takeaway I hope you get from this topic is that whenever you see a polynomial involving two variables:

Type 1 examples: Two-variable expressions where every term has the same total degree

There is a particularly useful trick when every term has the same total degree. For example, in x3+yx22y3x^3+yx^2-2y^3, every term has total degree 33. Such expressions are sometimes called homogeneous polynomials.

The standard approach to multivariate factorisation is to treat one of xx or yy as the variable, try to spot a root in terms of the other variable, and hence obtain a factor. This is still my recommended approach.

However, when every term has the same total degree, there is a variation of this method which is a little more mechanical, but makes finding possible roots much more tractable. In our example, we can use the substitution x=tyx=ty. This turns the two-variable expression into an ordinary polynomial in tt, multiplied by a power of yy. We can then use the usual factor theorem to find roots t=ct=c, which correspond to factors of the form (xcy)(x-cy).

Example 1

Consider again x3+yx22y3x^3+yx^2-2y^3. Put x=tyx=ty. We obtain (ty)3+y(ty)22y3=y3(t3+t22)(ty)^3+y(ty)^2-2y^3=y^3(t^3+t^2-2).

Now we only need to consider t3+t22t^3+t^2-2. Since t=1t=1 makes this zero, this corresponds to x=yx=y, so (xy)(x-y) is a factor. Dividing gives x3+yx22y3=(xy)(x2+2xy+2y2)x^3+yx^2-2y^3=(x-y)(x^2+2xy+2y^2).

Example 2

Factorise a3+8b3a^3+8b^3.

Every term has total degree 33, so put a=tba=tb. Then a3+8b3=b3(t3+8)a^3+8b^3=b^3(t^3+8). Since t=2t=-2 makes t3+8=0t^3+8=0, this corresponds to a=2ba=-2b, so (a+2b)(a+2b) is a factor. Dividing gives a3+8b3=(a+2b)(a22ab+4b2)a^3+8b^3=(a+2b)(a^2-2ab+4b^2).

Type 2 examples: Two-variable expressions where the terms do not all have the same total degree

When the terms have different total degrees, we go back to the main idea: treat one variable as the variable and look for an expression in the other that makes the whole polynomial zero.

When looking for a root, there is often a particular part of the expression that gives you a clue about what to try.

Example 3

Factorise y2x2+3y+3xy^2-x^2+3y+3x.

Treat this as a polynomial in yy. The particular giveaway here is 3y+3x3y+3x, which becomes zero when y=xy=-x, so this is a natural value to try. Substituting y=xy=-x gives x2x23x+3x=0x^2-x^2-3x+3x=0, so (y+x)(y+x) is a factor. Dividing gives y2x2+3y+3x=(y+x)(yx+3)y^2-x^2+3y+3x=(y+x)(y-x+3).

Example 4

Factorise a2+ab2b2+aba^2+ab-2b^2+a-b.

Treat aa as the variable. The particular giveaway here is aba-b, which becomes zero when a=ba=b, so this is a natural value to try. Substituting a=ba=b gives b2+b22b2+bb=0b^2+b^2-2b^2+b-b=0, so (ab)(a-b) is a factor. Dividing gives a2+ab2b2+ab=(ab)(a+2b+1)a^2+ab-2b^2+a-b=(a-b)(a+2b+1).

Example 5

Factorise x2+xy4x2y+4x^2+xy-4x-2y+4.

This time, notice that the root does not necessarily have to involve the other variable. Treating xx as the variable, try the simple numerical value x=2x=2. Substituting gives 4+2y82y+4=04+2y-8-2y+4=0 for all yy, so (x2)(x-2) is a factor. Dividing gives x2+xy4x2y+4=(x2)(x+y2)x^2+xy-4x-2y+4=(x-2)(x+y-2).

This is still exactly the same theorem: the constant 22 is simply a constant polynomial in yy. The root does not have to involve the other variable. An ordinary numerical root is just a special case.

Type 3 examples: Three-variable expressions

Nothing particularly dramatic happens when a third variable appears. We simply treat two variables as fixed and regard the expression as a polynomial in the remaining variable.

The idea is exactly the same as before: choose one variable and look for a simple expression involving the other two that makes the whole polynomial zero. If you find one, it immediately gives you a factor.

Example 6

Factorise x2+xy+xz2y2yzx^2+xy+xz-2y^2-yz.

Treat xx as the variable. Trying x=yx=y gives y2+y2+yz2y2yz=0y^2+y^2+yz-2y^2-yz=0, so (xy)(x-y) is a factor. Dividing gives x2+xy+xz2y2yz=(xy)(x+2y+z)x^2+xy+xz-2y^2-yz=(x-y)(x+2y+z).

Admittedly, there is not much here to tell you what to try. However, if a factorisation of this kind appears in a TMUA question, the intended root is almost certainly going to be something reasonably simple to spot, such as x=yx=y, x=zx=-z — rather than some horrible expression you would never realistically guess.

Why insist that h(y)h(y) is a polynomial?

I restricted h(y)h(y) to be a polynomial partly because we are interested in polynomial factorisation, and partly in case some smart student writes to me with a comical example claiming the maths is wrong!

For instance, if we allow h(y)=yh(y)=|y|, then substituting x=yx=|y| into x2y2x^2-y^2 gives y2y2=0|y|^2-y^2=0 for every real yy. So we could write x2y2=(xy)(x+y)x^2-y^2=(x-|y|)(x+|y|), which is perfectly true — just a rather silly way to factorise a polynomial! Since y|y| is not a polynomial, neither factor is a polynomial either.

So requiring h(y)h(y) to be a polynomial keeps us firmly in the world of polynomial factorisation — and hopefully saves me from a few emails beginning, “Hi Mr Joe, but what if...”

Summary

The multivariate factor theorem is simply the familiar factor theorem applied while treating the other variables as constants.

For homogeneous polynomials, where every term has the same total degree, a substitution such as x=tyx=ty can make possible factors easier to spot. Otherwise, direct inspection is usually the best approach.

Remember that the root may involve another variable, several other variables, or simply be an ordinary numerical value.

Bonus: Where the factor theorem actually comes from

I could quite happily finish the article here. However, there is one small piece of mathematical housekeeping that I have been mildly obsessed with since the 2017 A-level syllabus came out. 😂 The factor theorem is currently stated as a result to be used, but mathematically it is really just a particularly important special case of the remainder theorem, which used to sit alongside it in the A-level syllabus.

Now, I fully accept that this probably bothers me far more than it reasonably should! But I have an unfortunate tendency to want mathematical results to come with their family tree attached, so please indulge me for one bonus section. The remainder theorem is simple, its proof is short and beautiful, and once we have it, the factor theorem follows as a mere consequence.

The remainder theorem

Let f(x)f(x) be a polynomial. The remainder theorem says:

Proof

Let q(x)q(x) and rr be the quotient and remainder when f(x)f(x) is divided by (xa)(x-a). Since (xa)(x-a) has degree 11, the remainder rr must be a constant. Therefore, f(x)=(xa)q(x)+rf(x)=(x-a)q(x)+r, which is true for all real values of xx.

Now let x=ax=a. We immediately obtain f(a)=rf(a)=r, and the proof is complete.

The factor theorem

So according to the remainder theorem, for example:

  • f(b)=1f(b)=1 means the remainder when f(x)f(x) is divided by (xb)(x-b) is 11.
  • f(c)=2f(c)=2 means the remainder when f(x)f(x) is divided by (xc)(x-c) is 22.

Similarly, f(a)=0f(a)=0 means the remainder when f(x)f(x) is divided by (xa)(x-a) is 00. But this is equivalent to saying there is no remainder, which means (xa)(x-a) is a factor of f(x)f(x).

This is the factor theorem: simply the special case of the remainder theorem where the remainder is 00!

And our multivariate version follows in exactly the same way

There is also a rather satisfying connection back to the main topic of this article.

Treat f(x,y)f(x,y) as a polynomial in xx, and suppose we divide it by (xh(y))(x-h(y)). We may write f(x,y)=(xh(y))q(x,y)+r(y)f(x,y)=(x-h(y))q(x,y)+r(y), where the remainder r(y)r(y) does not involve xx.

Now substitute x=h(y)x=h(y). The first term disappears, leaving f(h(y),y)=r(y)f(h(y),y)=r(y).

So if f(h(y),y)=0f(h(y),y)=0 for all yy, then the remainder is identically zero, and therefore (xh(y))(x-h(y)) is a factor of f(x,y)f(x,y). Conversely, if (xh(y))(x-h(y)) is a factor, then substituting x=h(y)x=h(y) clearly makes the expression zero.

So even the multivariate factor theorem we have been using throughout this article is really just the same remainder theorem wearing slightly fancier clothes.

I feel better now. We may finish. 😄

PDF versionQuestions · Solutions

PDF versionQuestions · Solutions