*i.e.*you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

### Section 1.4 : Polynomials

In this section we will start looking at polynomials. Polynomials will show up in pretty much every section of every chapter in the remainder of this material and so it is important that you understand them.

We will start off with **polynomials in one variable**. Polynomials in one variable are algebraic expressions that consist of terms in the form \(a{x^n}\) where \(n\) is a non-negative (*i.e.* positive or zero) integer and \(a\) is a real number and is called the **coefficient** of the term. The **degree** of a polynomial in one variable is the largest exponent in the polynomial.

Note that we will often drop the “in one variable” part and just say polynomial.

Here are examples of polynomials and their degrees.

\[\begin{align*}& 5{x^{12}} - 2{x^6} + {x^5} - 198x + 1 & \hspace{0.5in} & {\mbox{degree :}}\,\,12\\ & {x^4} - {x^3} + {x^2} - x + 1 & \hspace{0.5in} & {\mbox{degree :}}\,\,4\\ & 56{x^{23}}\hspace{0.5in} & \hspace{0.5in} & {\mbox{degree :}}\,\,23\\ & 5x - 7 & \hspace{0.5in} & {\mbox{degree :}}\,\,1\\ & - 8& \hspace{0.5in} & {\mbox{degree :}}\,\,0\end{align*}\]So, a polynomial doesn’t have to contain all powers of \(x\) as we see in the first example. Also, polynomials can consist of a single term as we see in the third and fifth example.

We should probably discuss the final example a little more. This really is a polynomial even it may not look like one. Remember that a polynomial is any algebraic expression that consists of terms in the form \(a{x^n}\). Another way to write the last example is

\[ - 8{x^0}\]Written in this way makes it clear that the exponent on the \(x\) is a zero (this also explains the degree…) and so we can see that it really is a polynomial in one variable.

Here are some examples of things that aren’t polynomials.

\[\begin{align*}& 4{x^6} + 15{x^{ - 8}} + 1\\ & 5\sqrt x - x + {x^2}\\ & \frac{2}{x} + {x^3} - 2\end{align*}\]The first one isn’t a polynomial because it has a negative exponent and all exponents in a polynomial must be positive.

To see why the second one isn’t a polynomial let’s rewrite it a little.

\[5\sqrt x - x + {x^2} = 5{x^{\frac{1}{2}}} - x + {x^2}\]By converting the root to exponent form we see that there is a rational root in the algebraic expression. All the exponents in the algebraic expression must be non-negative integers in order for the algebraic expression to be a polynomial. As a general rule of thumb if an algebraic expression has a radical in it then it isn’t a polynomial.

Let’s also rewrite the third one to see why it isn’t a polynomial.

\[\frac{2}{x} + {x^3} - 2 = 2{x^{ - 1}} + {x^3} - 2\]So, this algebraic expression really has a negative exponent in it and we know that isn’t allowed. Another rule of thumb is if there are any variables in the denominator of a fraction then the algebraic expression isn’t a polynomial.

Note that this doesn’t mean that radicals and fractions aren’t allowed in polynomials. They just can’t involve the variables. For instance, the following is a polynomial

\[\sqrt[3]{5}\,{x^4} - \frac{7}{{12}}{x^2} + \frac{1}{{\sqrt 8 }}x - 5\,\,\sqrt[{14}]{{113}}\]There are lots of radicals and fractions in this algebraic expression, but the denominators of the fractions are only numbers and the radicands of each radical are only a numbers. Each \(x\) in the algebraic expression appears in the numerator and the exponent is a positive (or zero) integer. Therefore this is a polynomial.

Next, let’s take a quick look at **polynomials in two variables**. Polynomials in two variables are algebraic expressions consisting of terms in the form \(a{x^n}{y^m}\). The degree of each term in a polynomial in two variables is the sum of the exponents in each term and the **degree** of the polynomial is the largest such sum.

Here are some examples of polynomials in two variables and their degrees.

\[\begin{align*} & {x^2}y - 6{x^3}{y^{12}} + 10{x^2} - 7y + 1 & \hspace{0.5in} & {\mbox{degree : }}15\\ & 6{x^4} + 8{y^4} - x{y^2} & \hspace{0.5in} & {\mbox{degree : 4}}\\ & {x^4}{y^2} - {x^3}{y^3} - xy + {x^4} & \hspace{0.5in} & {\mbox{degree : 6}}\\ & 6{x^{14}} - 10{y^3} + 3x - 11y & \hspace{0.5in} & {\mbox{degree : 14}}\end{align*}\]In these kinds of polynomials not every term needs to have both \(x\)’s and \(y\)’s in them, in fact as we see in the last example they don’t need to have any terms that contain both \(x\)’s and \(y\)’s. Also, the degree of the polynomial may come from terms involving only one variable. Note as well that multiple terms may have the same degree.

We can also talk about polynomials in three variables, or four variables or as many variables as we need. The vast majority of the polynomials that we’ll see in this course are polynomials in one variable and so most of the examples in the remainder of this section will be polynomials in one variable.

Next, we need to get some terminology out of the way. A **monomial** is a polynomial that consists of exactly one term. A **binomial** is a polynomial that consists of exactly two terms. Finally, a **trinomial** is a polynomial that consists of exactly three terms. We will use these terms off and on so you should probably be at least somewhat familiar with them.

Now we need to talk about adding, subtracting and multiplying polynomials. You’ll note that we left out division of polynomials. That will be discussed in a later section where we will use division of polynomials quite often.

Before actually starting this discussion we need to recall the distributive law. This will be used repeatedly in the remainder of this section. Here is the distributive law.

\[a\left( {b + c} \right) = ab + ac\]We will start with adding and subtracting polynomials. This is probably best done with a couple of examples.

- Add \(6{x^5} - 10{x^2} + x - 45\) to \(13{x^2} - 9x + 4\).
- Subtract \(5{x^3} - 9{x^2} + x - 3\) from \({x^2} + x + 1\).

The first thing that we should do is actually write down the operation that we are being asked to do.

\[\left( {6{x^5} - 10{x^2} + x - 45} \right) + \left( {13{x^2} - 9x + 4} \right)\]In this case the parenthesis are not required since we are adding the two polynomials. They are there simply to make clear the operation that we are performing. To add two polynomials all that we do is **combine like terms**. This means that for each term with the same exponent we will add or subtract the coefficient of that term.

In this case this is,

\[\begin{align*}\left( {6{x^5} - 10{x^2} + x - 45} \right) + \left( {13{x^2} - 9x + 4} \right) & = 6{x^5} + \left( { - 10 + 13} \right){x^2} + \left( {1 - 9} \right)x - 45 + 4\\ & = 6{x^5} + 3{x^2} - 8x - 41\end{align*}\]b Subtract \(5{x^3} - 9{x^2} + x - 3\) from \({x^2} + x + 1\). Show Solution

Again, let’s write down the operation we are doing here. We will also need to be very careful with the order that we write things down in. Here is the operation

\[{x^2} + x + 1 - \left( {5{x^3} - 9{x^2} + x - 3} \right)\]This time the parentheses around the second term are absolutely required. We are subtracting the whole polynomial and the parenthesis must be there to make sure we are in fact subtracting the whole polynomial.

In doing the subtraction the first thing that we’ll do is **distribute the minus sign** through the parenthesis. This means that we will change the sign on every term in the second polynomial. Note that all we are really doing here is multiplying a “-1” through the second polynomial using the distributive law. After distributing the minus through the parenthesis we again combine like terms.

Here is the work for this problem.

\[\begin{align*}{x^2} + x + 1 - \left( {5{x^3} - 9{x^2} + x - 3} \right) & = {x^2} + x + 1 - 5{x^3} + 9{x^2} - x + 3\\ & = - 5{x^3} + 10{x^2} + 4\end{align*}\]Note that sometimes a term will completely drop out after combing like terms as the \(x\) did here. This will happen on occasion so don’t get excited about it when it does happen.

Now let’s move onto multiplying polynomials. Again, it’s best to do these in an example.

- \(4{x^2}\left( {{x^2} - 6x + 2} \right)\)
- \(\left( {3x + 5} \right)\left( {x - 10} \right)\)
- \(\left( {4{x^2} - x} \right)\left( {6 - 3x} \right)\)
- \(\left( {3x + 7y} \right)\left( {x - 2y} \right)\)
- \(\left( {2x + 3} \right)\left( {{x^2} - x + 1} \right)\)

This one is nothing more than a quick application of the distributive law.

\[4{x^2}\left( {{x^2} - 6x + 2} \right) = 4{x^4} - 24{x^3} + 8{x^2}\]b \(\left( {3x + 5} \right)\left( {x - 10} \right)\) Show Solution

\[\left( {3x + 5} \right)\left( {x - 10} \right)\]This one will use the FOIL method for multiplying these two binomials.

\[\require{color}\left( {3x + 5} \right)\left( {x - 10} \right) = \underbrace {\,\,\,\,3{x^2}\,\,}_{{{\color{Red}\mbox{F}}\mbox{irst Terms}}} - \underbrace {\,\,\,30x\,\,\,}_{{\color{Red}\mbox{O}}{\mbox{uter Terms}}} + \underbrace {\,\,\,\,5x\,\,\,\,}_{{\color{Red}\mbox{I}}{\mbox{nner Terms}}} - \underbrace {\,\,\,\,50\,\,\,\,}_{{\color{Red}\mbox{L}}{\mbox{ast Terms}}} = 3{x^2} - 25x - 50\]Recall that the FOIL method will only work when multiplying two binomials. If either of the polynomials isn’t a binomial then the FOIL method won’t work.

Also note that all we are really doing here is multiplying every term in the second polynomial by every term in the first polynomial. The FOIL acronym is simply a convenient way to remember this.

c \(\left( {4{x^2} - x} \right)\left( {6 - 3x} \right)\) Show Solution

Again, we will just FOIL this one out.

\[\left( {4{x^2} - x} \right)\left( {6 - 3x} \right) = 24{x^2} - 12{x^3} - 6x + 3{x^2} = - 12{x^3} + 27{x^2} - 6x\]d \(\left( {3x + 7y} \right)\left( {x - 2y} \right)\) Show Solution

We can still FOIL binomials that involve more than one variable so don’t get excited about these kinds of problems when they arise.

\[\left( {3x + 7y} \right)\left( {x - 2y} \right) = 3{x^2} - 6xy + 7xy - 14{y^2} = 3{x^2} + xy - 14{y^2}\]e \(\left( {2x + 3} \right)\left( {{x^2} - x + 1} \right)\) Show Solution

In this case the FOIL method won’t work since the second polynomial isn’t a binomial. Recall however that the FOIL acronym was just a way to remember that we multiply every term in the second polynomial by every term in the first polynomial.

That is all that we need to do here.

\[\left( {2x + 3} \right)\left( {{x^2} - x + 1} \right) = 2{x^3} - 2{x^2} + 2x + 3{x^2} - 3x + 3 = 2{x^3} + {x^2} - x + 3\]Let’s work another set of examples that will illustrate some nice formulas for some special products. We will give the formulas after the example.

- \(\left( {3x + 5} \right)\left( {3x - 5} \right)\)
- \({\left( {2x + 6} \right)^2}\)
- \({\left( {1 - 7x} \right)^2}\)
- \(4{\left( {x + 3} \right)^2}\)

We can use FOIL on this one so let’s do that.

\[\left( {3x + 5} \right)\left( {3x - 5} \right) = 9{x^2} - 15x + 15x - 25 = 9{x^2} - 25\]In this case the middle terms drop out.

b \({\left( {2x + 6} \right)^2}\) Show Solution

Now recall that \({4^2} = \left( 4 \right)\left( 4 \right) = 16\). Squaring with polynomials works the same way. So in this case we have,

\[{\left( {2x + 6} \right)^2} = \left( {2x + 6} \right)\left( {2x + 6} \right) = 4{x^2} + 12x + 12x + 36 = 4{x^2} + 24x + 36\]c \({\left( {1 - 7x} \right)^2}\) Show Solution

This one is nearly identical to the previous part.

\[{\left( {1 - 7x} \right)^2} = \left( {1 - 7x} \right)\left( {1 - 7x} \right) = 1 - 7x - 7x + 49{x^2} = 1 - 14x + 49{x^2}\]d \(4{\left( {x + 3} \right)^2}\) Show Solution

This part is here to remind us that we need to be careful with coefficients. When we’ve got a coefficient we MUST do the exponentiation first and then multiply the coefficient.

\[4{\left( {x + 3} \right)^2} = 4\left( {x + 3} \right)\left( {x + 3} \right) = 4\left( {{x^2} + 6x + 9} \right) = 4{x^2} + 24x + 36\]You can only multiply a coefficient through a set of parenthesis if there is an exponent of “1” on the parenthesis. If there is any other exponent then you CAN’T multiply the coefficient through the parenthesis.

Just to illustrate the point.

\[4{\left( {x + 3} \right)^2} \ne {\left( {4x + 12} \right)^2} = \left( {4x + 12} \right)\left( {4x + 12} \right) = 16{x^2} + 96x + 144\]This is clearly not the same as the correct answer so be careful!

The parts of this example all use one of the following special products.

\[\begin{align*}\left( {a + b} \right)\left( {a - b} \right) & = {a^2} - {b^2}\\ {\left( {a + b} \right)^2} & = {a^2} + 2ab + {b^2}\\ {\left( {a - b} \right)^2} & = {a^2} - 2ab + {b^2}\end{align*}\]Be careful to not make the following mistakes!

\[\begin{align*}{\left( {a + b} \right)^2} & \ne {a^2} + {b^2}\\ {\left( {a - b} \right)^2} & \ne {a^2} - {b^2}\end{align*}\]These are very common mistakes that students often make when they first start learning how to multiply polynomials.