Evaluate, add, subtract and multiply polynomials.
Identify graphs of polynomial functions.
Determine the degree and intercepts of polynomial functions.
Many applications in mathematics have to do with what are called polynomials. Polynomials are made up of terms. Terms are a product of numbers and/or variables. For example, \(5x\text{,}\) \(2y^3\text{,}\) \(-4\) and \(ab^3c\) are all terms. Each term has a coefficient, the number, and a degree, the power of the variable in the term – if there is more than one variable, then the degree is the sum of the exponents on the variables.
Example3.B.1Term Coefficients and Degrees
Determine the coefficient and the degree of each example term:
Term |
Coefficient |
Degree |
\(5x\) |
\(5\) |
\(1\) since \(x=x^1\) |
\(2y^3\) |
\(2\) |
\(3\) |
\(-4\) |
\(-4\) |
\(0\) since \(-4=-4(1)\) and \(1=x^0\) |
\(ab^3 c\) |
\(1\) (why?) |
\(5\) since \(ab^3c = a^1b^3c^1\) and \(1+3+1=5\checkmark\) |
Terms are connected to each other by addition or subtraction. Expressions are often named based on the number of terms in them. A monomial has one term, such as \(3x^2.\) A binomial has two terms, such as \(a^2 - b^2.\) A trinomial has three terms, such as \(ax^2 + bx + c.\) The term polynomial means many terms. Monomials, binomials, trinomials, and expressions with more terms all fall under the umbrella of “polynomials.” The term with the largest degree is called the leading term of the polynomial and the degree of the leading term is called the degree of the polynomial.
Example3.B.2Polynomial Leading Terms and Degrees
Determine the leading term and the degree of each example polynomial:
Polynomial |
Leading Term |
Degree |
\(1.12x^2 + 5.4x - 1.7\) |
\(1.12x^2\) |
\(2\) |
\(21 + 3w^4-w^2\) |
\(3w^4\) |
\(4\) |
\(10+2x+4xy- 7xy^2\) |
\(7xy^2\) |
\(3\) |
\(5x+2\) |
\(5x\) |
\(1\) |
\(-4\) |
\(-4\) |
\(0\) |
If we know what the variable in a polynomial represents we can replace the variable with the number and evaluate the polynomial as shown in the following example:
Example3.B.3Polynomial Evaluation
Evaluate \(2x^2 - 4x + 6\) when \(x = -4.\)
\begin{align*}
2x^2 - 4x + 6\amp\amp\amp\text{Replace variable \(x\) with \(-4\)}\\
2(-4)^2 - 4(-4) + 6\amp\amp\amp\text{Exponents first}\\
2(16) - 4(-4) + 6\amp\amp\amp\text{Multiplication (we can do all terms at once)}\\
32 + 16 + 6\amp\amp\amp\text{Add}\\
54\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
It is important to be careful with negative variables and exponents. Remember that the exponent only affects the number it is physically attached to. This means \(-3^2 = -9\) because the exponent is only attached to the \(3.\) Also, \((-3)^2=9\) because the exponent is attached to the parentheses and affects everything inside. When we replace a variable with parentheses, as in the previous example, the substituted value is in parentheses. So in the example, \((-4)^2 = 16\text{.}\) However, consider the next example.
Example3.B.4Polynomial Evaluation
Evaluate \(-x^2 + 2x + 6\) when \(x =3.\)
\begin{align*}
-x^2 + 2x + 6\amp\amp\amp\text{Replace variable \(x\) with \(3\)}\\
-(3)^2 + 2(3) + 6\amp\amp\amp\text{Exponent only on the \(3\), not negative \(3\)}\\
-9 + 2(3) + 6\amp\amp\amp\text{Multiply}\\
-9 + 6 + 6\amp\amp\amp\text{Add}\\
3\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
World View Note
Ada Lovelace in 1842 described a Difference Engine that would be used to calculate values of polynomials. Her work became the foundation for what would become the modern computer (the programming language Ada was named in her honor) more than 100 years after her death from cancer.
Subsection3.B.1Adding and Subtracting Polynomials
Generally when working with polynomials we do not know the value of the variable, so we will try to simplify instead. The simplest operation with polynomials is addition. When adding polynomials we are simply combining like terms. Consider the following example:
Example3.B.5Polynomial Addition
Add the two cubic polynomials.
\begin{align*}
(4x^3 - 2x + 8) + (3x^3 - 9x^2 - 11)\amp\amp\amp\text{Combine like terms:}\\
4x^3 + 3x^3 = 7x^3\amp\amp\amp\text{and }8-11=-3\\
7x^3 - 9x^2 - 2x - 3\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
Generally final answers for polynomials are written so the exponents on the variable count down. Example 3B-3 demonstrates this with the exponent counting down \(3,\) \(2,\) \(1,\) \(0\) (recall \(x^0=1\)). Note that this is not a rule for writing polynomials – just an easy way to organize the terms and to make the degree of the polynomial clear. The polynomial in Example 3.B.5 could just as well be written as: \(- 3 - 2x - 9x^2 + 7x^3\) or \(- 2x + 7x^3 - 3 - 9x^2\text{,}\) but then we have to "search" through the terms to determine the degree.
Subtracting polynomials is almost as fast. One extra step comes from the minus in front of the parentheses. When we have a negative in front of parentheses we distribute it through, changing the signs of everything inside. The same is done for the subtraction sign.
Example3.B.6Polynomial Subtraction
Subtract the two quadratic polynomials.
\begin{align*}
(5x^2 - 2x + 7) - (3x^2 + 6x - 4)\amp\amp\amp\text{Distribute negative through second part}\\
5x^2 - 2x + 7 - 3x^2 - 6x + 4\amp\amp\amp\text{Combine like terms:}\\
5x^2 - 3x^2 =2x^2\text{ and }-2x - 6x = -8x\amp\amp\amp\text{and }7 + 4 = 11\\
2x^2 - 8x + 11\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
Addition and subtraction can also be combined into the same problem as shown in this final example:
Example3.B.7Polynomial Addition and Subtraction
Simplify.
\begin{align*}
(2x^2 - 4x + 3) + (5x^2 - 6x + 1) - (x^2 - 9x + 8)\amp\amp\amp\text{Distribute negative through}\\
2x^2 - 4x + 3 + 5x^2 - 6x + 1 - x^2 + 9x - 8\amp\amp\amp\text{Combine like terms}\\
6x^2-x-4\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
Subsection3.B.2Multiplying Polynomials
Adding or subtracting polynomials is pretty straight forward – just combine terms which have the same variables with the same degrees. Multiplying polynomials may seem complicated, but the basic idea is that you must “thoroughly” multiply them together – every term in one must multiply every term in the other.
There are \(4\) multiplications when multiplying \((4x + 3) (3x - 2)\text{:}\)
- The term \(4x\) must be multiplied by both \(3x\) and \(-2\) (indicated by the red lines)
- The term \(3\) must also be multiplied by both \(3x\) and \(-2\) (indicated by the blue lines)
In the next two examples, the multiplication is written out so that you may see how every term in the first polynomial multiplies every term in the second. Sometimes you may see how to do the multiplication without writing down all the steps, but writing the steps helps make sure you get it right.
Example3.B.8Polynomial Multiplication
Multiply \((4x + 3) (3x - 2).\)
\begin{align*}
4x(3x-2) + 3(3x-2)\amp\amp\amp\text{Each term of the first multiplies the second}\\
12x^2 -8x + 9x - 6\amp\amp\amp\text{Combine like terms}\\
12x^2 + x - 6\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
Example3.B.9Polynomial Multiplication
Multiply \((x - 2) (4x^2 - x +5).\)
\begin{align*}
x(4x^2 - x +5) - 2(4x^2 - x +5)\amp\amp\amp\text{Each term of the first multiplies the second}\\
4x^3 - x^2 + 5x -8x^2 + 2x - 10\amp\amp\amp\text{Combine like terms}\\
4x^3 - 9x^2 + 7x - 10\amp\amp\amp\text{Our Solution}\checkmark
\end{align*}
What happens if we multiply in the reverse order?
Example3.B.10Polynomial Multiplication (Reverse Order)
Multiply \((4x^2 - x +5)(x - 2) .\)
\begin{align*}
4x^2(x-2) - x(x-2) +5(x-2)\amp\amp\amp\text{Each term of the first multiplies the second}\\
4x^3 - 8x^2 - x^2 +2x + 5x - 10\amp\amp\amp\text{Combine like terms}\\
4x^3 - 9x^2 + 7x - 10\amp\amp\amp\text{We got the same thing---that's good!}\checkmark
\end{align*}
Subsection3.B.3Graphs of Polynomials
So far, we have considered the terminology of polynomials and how to combine them with addition, subtraction and multiplication. Now let us consider them as functions. What does the graph of a polynomial look like? Here are a few examples:
Each of these graphs looks quite different from the others, but they share some characteristics.
- The graphs are all “connected” with smooth bends. They do not look like piece-wise functions.
- The domain of each consists of all real numbers. (Why?)
- The “ends” of the graph eventually settle into an upward or downward curve. (Note: The graph doesn't really “end”, it continues indefinitely, but if you go out far enough, eventually it will consistently move in one direction, either up or down.)
- The graphs all have one vertical intercept, but the number of horizontal intercepts varies from none to many.
Example3.B.11Graph Quadratic Polynomial
Consider the graph of \(f(x) = x^2+1\text{.}\) We'll use the low tech but effective method of plotting points:
\(x\) |
\(y\) |
\(-2\) |
\(5\) |
\(-1\) |
\(2\) |
\(0\) |
\(1\) |
\(1\) |
\(2\) |
\(2\) |
\(5\) |
The \(y\)-intercept is at \(y=1\) and there is no \(x\)-intercept since the equation \(0 = x^2+1\) has no solution that is a real number. Notice that if we plot points for values of \(x\) further to the left of \(-2\text{,}\) the function will produce large positive \(y\) values since any negative number squared is positive. If we try \(x\) values to the right of \(2\text{,}\) we clearly get large positive values for \(y\text{.}\) We are confident this graph extends upward in both directions.\(\checkmark\)
Example3.B.12Graph Quadratic Polynomial
Consider the graph of \(g(x) = -x^2-x+2\text{.}\)
The \(y\)-intercept is easy to find:
\begin{align*}
y \amp = -0^2 - 0 +2\\
y \amp = 2
\end{align*}
The \(x\)-intercept takes a little more work: How to find when \(0 =-x^2-x+2\text{?}\) Here's when all that time you spent learning how to factor comes in handy. We won't do a lot of factoring in this course and the "guess and check" method will be sufficient.
\begin{align*}
0 \amp=-x^2-x+2\amp\amp\text{Multiply both sides by } -1\\
0 \amp =x^2+x-2\amp\amp\text{Let's focus on the polynomial and set up to factor}
\end{align*}
\begin{align*}
(x + \Box )(x +\Box )\amp\text{We need values which multiply to get }-2\\
(x - 2 )(x + 1)\amp\text{Try \(-2\) and \(1\) and check to see if they work:}
\end{align*}
\begin{align*}
(x - 2 )(x + 1)\amp =x(x + 1) - 2(x + 1)\\
\amp = x^2 + x - 2x - 2\\
\amp = x^2 - x - 2 \neq x^2+x-2
\end{align*}
\(-2\) and \(1\) don't work, so try \(2\) and \(-1\text{:}\)
\begin{align*}
(x+2)(x-1) \amp = x(x - 1) + 2(x - 1)\amp\amp\\
\amp = x^2 - x + 2x - 22\amp\amp\\
\amp = x^2 + x - 2\amp\amp\text{Bingo}
\end{align*}
Now, back to the equation: \(0 =x^2+x-2= (x+2)(x-1)\text{.}\) The only way to get zero when two numbers are multiplied is for one of the numbers to be zero:
\begin{align*}
x + 2 \amp = 0\amp\amp\text{or} \amp x -1\amp = 0\\
x \amp = -2\amp\amp\text{or} \amp x \amp = 1
\end{align*}
To see what the “end behavior” is, note that the leading term produces values of much greater magnitude than the other terms in the polynomial. For example, when \(x = 10\text{,}\) the leading term makes: \(-(10)^2=-100\text{.}\) The rest of the polynomial only contributes, \(-(10)+2 = -8\text{.}\) If we go just a little further out, say \(x = 15\text{,}\) compare the leading term's value to the rest of the polynomial: \(-(15)^2=-225\) versus \(-(15)+2 = -13\text{.}\) What about the graph for negative values of \(x\text{?}\) Check out: \(-(-15)^2=-225\) versus \(-(-15)+2 = 17\text{.}\) We can see that the leading term will produce negative \(y\)-values for \(x\) values to the far left or right. Our analysis shows that both ends of \(g(x)\) are downward having negative \(y\) values.
Plotting a few more points gives the graph:
Example3.B.13Graph Cubic Polynomial
Consider the graph \(h(x) = \frac{2}{7}x^3-\frac{1}{7}x^2-3x.\)
It's easy to see that the \(y\)-intercept is at \(y=0\text{.}\) We need to factor the polynomial to find the \(x\)-intercepts. Here's a "tip of the day": factoring is easier if you factor out the denominators and anything else the terms have in common. Notice below that when we factor out the \(\frac{1}{7}\text{,}\) we have to adjust the \(3\) so that if the \(\frac{1}{7}\) were multiplied back in, we'd still have \(3\text{.}\)
\begin{align*}
0 \amp = \frac{2}{7}x^3-\frac{1}{7}x^2-3x\\
\amp = \frac{1}{7}x(2x^2-x-21)\\
\amp = \frac{1}{7}x(2x- 7)(x+3)
\end{align*}
So,
\begin{align*}
\frac{1}{7}x\amp = 0\amp\amp\text{or}\amp 2x - 7 \amp = 0\amp\amp\text{or}\amp x + 3 \amp = 0\\
x\amp = 0\amp\amp\text{or}\amp x \amp = \frac{7}{2} \amp\amp\text{or}\amp x \amp = -3
\end{align*}
For the end behavior: The leading term is \(\frac{2}{7}x^3\text{,}\) the power \(3\) will make negative \(y\) values for negative \(x\) values and positive \(y\) values for positive \(x\) values. The left end will be “down” and the right end will go “up”.
Plotting a few more points gives the graph:
Example3.B.14Graph Fourth-Degree Polynomial
Consider the graph \(k(x) = x^4-2x^3-2x^2.\)
The \(y\)-intercept is at \(y=0\text{,}\) but we have a problem when trying to factor to find the \(x\)-intercepts:
\begin{gather*}
x^4-2x^3-2x^2 = x^2(x^2 - 2x - 2)
\end{gather*}
The only two combinations that multiply to get \(-2\) for a "nice" factorization are \(1\) and \(-2\text{,}\) or \(-1\) and \(2\text{.}\) Checking we see that
\begin{gather*}
(x + 1)(x - 2) = x^2 - x - 2\text{ and }(x - 1)(x + 2) = x^2 + x - 2
\end{gather*}
But neither gives \(x^2 - 2x - 2\text{.}\) Luckily, for quadratic polynomials, there is a formula which will give the solutions to equations like, \(x^2 - 2x - 2 = 0\text{,}\) the Quadratic Formula. We pause to recall what it says:
Quadratic Formula For \(ax^2 + bx + c = 0\text{,}\) the solutions are found by
\begin{gather}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\label{quadratic-formula}\tag{3.B.1}
\end{gather}
Now we may breathe easier, knowing we can still find the \(x\)-intercepts even if we can't factor the polynomial. (By the way, the Quadratic formula works even if the polynomial factors nicely.)
Back to the graph: So far, we had \(x^4-2x^3-2x^2 = x^2(x^2 - 2x - 2)\) which means
\begin{gather*}
x^2 = 0\text{ or }x^2 - 2x - 2 = 0
\end{gather*}
and clearly, \(x=0\) is one of the \(x\)-intercepts. Now, consider the “not so easy” to factor part: \(x^2 - 2x - 2 = 0\text{.}\) Here, \(a=1\text{,}\) \(b=-2\) and \(c=-2\text{.}\) With help from the Quadratic Formula:
\begin{align*}
x \amp = \frac{-(-2) \pm \sqrt{(-2)^2-4(1)(-2)}}{2(1)}\\
\amp = \frac{2 \pm \sqrt{4+8}}{2}\\
\amp = \frac{2 \pm \sqrt{12}}{2}\\
x = \frac{2 + \sqrt{12}}{2} \amp\text{ or } x = \frac{2 - \sqrt{12}}{2}
\end{align*}
and using a calculator: \(x = \frac{2 + \sqrt{12}}{2} \approx 2.732\) or \(x = \frac{2 - \sqrt{12}}{2} \approx -0.732\text{.}\) At last! We have the \(x\)-intercepts and we only need to determine the end behavior. The leading term is \(x^4\) and any number raised to the \(4\)-th power produces a positive number. Hence, both ends are upward.
Plot a few more points and we are done:
Example3.B.15Quadratic Formula
We should probably work a few problems with the Quadratic Formula, just for practice:
-
Solve: \(x^2 + 3x = 1\)
First, we must rewrite this as an equivalent equation equalling \(0\text{.}\) We subtract \(1\) from both sides of the equation.
\begin{align*}
x^2 + 3x \amp = 1\\
x^2 + 3x - 1 \amp = 0
\end{align*}
With just a few tries, we can see that we are not going to make a \(3\) from integers that multiply to get \(-1\text{.}\) This indicates we must use the Quadratic Formula: \(ax^2 + bx + c = 0\text{.}\) For this particular equation we have \(a=1\text{,}\) \(b=3\) and \(c=-1\text{:}\)
\begin{align*}
x\amp = \frac{-3 \pm \sqrt{3^2 - 4(1)(-1)}}{2(1)}\\
\amp = \frac{-3 \pm \sqrt{9 +4}}{2}\\
\amp = \frac{-3 \pm \sqrt{13}}{2}
\end{align*}
Remember that there are two values here. We wrote \(\pm\) as a short-cut. The answers are: \(x = \frac{-3 + \sqrt{13}}{2}\) or \(x = \frac{-3 - \sqrt{13}}{2}.\)
-
Solve: \(x^2 + x + 5 = 0\)
Note that \(a = 1\text{,}\) \(b = 1\) and \(c = 5:\)
\begin{align*}
x\amp = \frac{-1 \pm \sqrt{1^2 - 4(1)(5)}}{2(1)}\\
\amp = \frac{-1 \pm \sqrt{1 - 20}}{2}\\
\amp = \frac{-1 \pm \sqrt{-19}}{2}
\end{align*}
But, there is no real number that squares itself to get \(-19.\) Since the Quadratic Formula always finds the solution to a quadratic equation, there must not be any solutions for this equation. Our answer is: \(\text{No solution}.\)
-
Solve: \(8x^3 - 24x^2 + 18x = 0\)
This equation is not a quadratic, but if we factor it we get: \(2x(4x^2 - 12x + 9) = 0\text{.}\) One solution is \(x = 0\) since we could have \(2x=0\text{.}\) Using the quadratic formula for \(4x^2 - 12x + 9=0\) with \(a=4\text{,}\) \(b=-12\) and \(c=9\text{:}\)
\begin{align*}
x\amp = \frac{-(-12) \pm \sqrt{(-12)^2 - 4(4)(9)}}{2(4)}\\
\amp = \frac{12 \pm \sqrt{144 - 144}}{8}\\
\amp = \frac{12 \pm \sqrt{0}}{8}\\
\amp = \frac{12}{8}\\
\amp = \frac{3}{2}
\end{align*}
Hence, the solutions are \(x = 0\) or \(x = \frac{3}{2}\text{.}\) (Seems like we should have more solutions for all that work!)
Note: Why study polynomials? What are they good for? Many functions are difficult to calculate without a calculator or computer, for example, trigonometric functions. How DO calculators or computers calculate values for these functions? The answer is based on polynomials which are easier to calculate since they only involve multiplying and addition/subtraction. The graph below shows how the polynomial \(f(x) = x - \frac{1}{6}x^3 + \frac{1}{120}x^5\) approximates the function \(g(x) = \sin(x)\) for \(-3 \leq x \leq3\text{.}\)