✖

Polynomials

A polynomial is an expression containing the variable x and the standard operations of addition, multiplication and raising to a non-negative integer power. We can add, subtract, multiply, divide and raise polynomials to a power.

Basic ideas

A simple example of a polynomial is

2x2+5x−12

In general we can write a polynomial like this:

anxn+an−1xn−1+…+a1x1+a0x0,

where the real numbers in front of x, that is an, are called coefficients, and n is called the degree of the polynomial. The number n is the highest power in the polynomial for which an ≠ 0. If an were zero, we would in effect get rid of the variable x that the coefficient belongs to, because zero times anything is zero:

0⋅x3=0.

So the first polynomial above has degree two, because the highest power of x with a non-zero coefficient is two. For another polynomial,

7x2+5x4+15x

the degree is 4 (the highest index is 4). We usually write polynomials in descending order of powers, so that the term with the highest power comes first. We can therefore rewrite the previous polynomial like this:

5x4+7x2+15x.

Notice that the polynomial has no terms where the variable has index three or zero. That does not matter at all: we simply imagine that the coefficients of these terms are zero. We could write

5x4+0x3+7x2+15x1+0x0.

Now every term is there, but the polynomial is needlessly cluttered, so we usually leave out the terms with zero coefficients.

Adding and subtracting polynomials

Adding and subtracting polynomials is fairly straightforward. We just add or subtract the coefficients of terms with the same power. So

axn+bxn=(a+b)xn.

A simple example:

3x2+5x2=(3+5)x2=8x2

To add longer polynomials, we always have to collect the terms with the same power of the variable.

(7x3+5x2+x)+(2x3−3x2+9x)==(7+2)x3+(5−3)x2+(1+9)x.

If a term with a given power does not appear in one of the polynomials, it stays unchanged (imagine that the other polynomial has such a term, but with a zero coefficient).

(x3+2x)+(4x2+5x+3)=x3+4x2+7x+3

Subtracting polynomials works just like adding them, except that we first multiply the second polynomial by minus one, that is, we change all the signs. Here is an example:

(3x2+6x)−(2x2+14x)=(3x2+6x)+(−2x2−14x)

That is now ordinary addition of polynomials, so we can add as usual:

(3x2+6x)+(−2x2−14x)=x2−8x

Remember that a negative term in the second polynomial becomes positive after this step.

(x2+2x)−(3x2−10x)==(x2+2x)+(−3x2+10x)==−2x2+12x

Multiplying polynomials

To multiply polynomials, we multiply every term of the first polynomial by every term of the second. We multiply the coefficients as ordinary real numbers, but we simply add the indices of the variables, following the rules for powers. Here is an example:

(3x2+4x)⋅5x2=(3⋅5)x2+2+(4⋅5)x1+2=15x4+20x3

This example multiplied by a single term, so it did not show clearly how every term is multiplied by every other. Here is a slightly bigger example:

(x3+2x)⋅(4x2+7x)==(1⋅4)x3+2+(1⋅7)x3+1+(2⋅4)x1+2+(2⋅7)x1+1

If there is a minus sign in a polynomial, it carries through into the multiplication as usual.

(x3−2x)⋅(4x2−7x)==(1⋅4)x3+2+(1⋅(−7))x3+1+(−2⋅4)x1+2++(−2⋅(−7))x1+1=4x5−7x4−8x3+14x2

Simplifying polynomials

When we simplify polynomials, we usually want to make the expression simpler. For that we use things like writing equivalent fractions, cancelling, taking out common factors, applying formulae and so on. It is a good idea to know these formulae. Here we will use some of them, and I will mention them as we go. A classic formula is

(a+b)2=a2+2ab+b2

If you wonder where this formula comes from, just expand the brackets.

(a+b)2=(a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2

Let’s start with a simple example.

(a+b)2+(a+2b)2−3a⋅2b==a2+2ab+b2+a2+4ab+4b2−6ab==2a2+5b2

We expanded both squared brackets using the formula above. Remember that we expanded the second bracket as

(a+2b)2=a2+4ab+4b2.

Another classic formula is

a2−b2=(a+b)(a−b).

The second example is an algebraic fraction. The numerator and denominator are both polynomials, and we will try to rewrite them so that the whole fraction cancels nicely. In the first step we apply the first formula to the numerator, but in reverse. In the denominator we apply the second formula. At the end we simply cancel (a + b).

a2+2ab+b2a2−b2=(a+b)2(a+b)(a−b)=(a+b)(a+b)(a+b)(a−b)=a+ba−b

In the third example we try taking out a common factor. In the numerator we first take out 3a3 and then factorise the bracket (4a2 − 1) using the difference of two squares a2 − b2, making use of the fact that

12=11→(a2−12)=(a+1)(a−1).

In the denominator we first simply multiply the first two terms, then take out 3a3 too, and finally cancel everything.

12a5−3a32a2⋅3a2+3a3=3a3(4a2−1)6a4+3a3=3a3(2a+1)(2a−1)3a3(2a+1)=2a−1

Chapters: Polynomials, Dividing a polynomial by a polynomial, Root of a polynomial, Factorising polynomials