Processing math: 100%
Skip to main content

Section3.BPolynomial Functions

  • 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, 2y3, 4 and ab3c 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=x1
2y3 2 3
4 4 0 since 4=4(1) and 1=x0
ab3c 1 (why?) 5 since ab3c=a1b3c1 and 1+3+1=5

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 3x2. A binomial has two terms, such as a2b2. A trinomial has three terms, such as ax2+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.12x2+5.4x1.7 1.12x2 2
21+3w4w2 3w4 4
10+2x+4xy7xy2 7xy2 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 2x24x+6 when x=4.

2x24x+6Replace variable x with 42(4)24(4)+6Exponents first2(16)4(4)+6Multiplication (we can do all terms at once)32+16+6Add54Our Solution

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 32=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. However, consider the next example.

Example3.B.4Polynomial Evaluation

Evaluate x2+2x+6 when x=3.

x2+2x+6Replace variable x with 3(3)2+2(3)+6Exponent only on the 3, not negative 39+2(3)+6Multiply9+6+6Add3Our Solution
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.

(4x32x+8)+(3x39x211)Combine like terms:4x3+3x3=7x3and 811=37x39x22x3Our Solution

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 x0=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: 32x9x2+7x3 or 2x+7x339x2, 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.

(5x22x+7)(3x2+6x4)Distribute negative through second part5x22x+73x26x+4Combine like terms:5x23x2=2x2 and 2x6x=8xand 7+4=112x28x+11Our Solution

Addition and subtraction can also be combined into the same problem as shown in this final example:

Example3.B.7Polynomial Addition and Subtraction

Simplify.

(2x24x+3)+(5x26x+1)(x29x+8)Distribute negative through2x24x+3+5x26x+1x2+9x8Combine like terms6x2x4Our Solution

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)(3x2):

  • 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)(3x2).

4x(3x2)+3(3x2)Each term of the first multiplies the second12x28x+9x6Combine like terms12x2+x6Our Solution
Example3.B.9Polynomial Multiplication

Multiply (x2)(4x2x+5).

x(4x2x+5)2(4x2x+5)Each term of the first multiplies the second4x3x2+5x8x2+2x10Combine like terms4x39x2+7x10Our Solution

What happens if we multiply in the reverse order?

Example3.B.10Polynomial Multiplication (Reverse Order)

Multiply (4x2x+5)(x2).

4x2(x2)x(x2)+5(x2)Each term of the first multiplies the second4x38x2x2+2x+5x10Combine like terms4x39x2+7x10We got the same thing---that's good!

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)=x2+1. 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=x2+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, 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, we clearly get large positive values for y. We are confident this graph extends upward in both directions.

Example3.B.12Graph Quadratic Polynomial

Consider the graph of g(x)=x2x+2.

The y-intercept is easy to find:

y=020+2y=2

The x-intercept takes a little more work: How to find when 0=x2x+2? 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.

0=x2x+2Multiply both sides by 10=x2+x2Let's focus on the polynomial and set up to factor (x+)(x+)We need values which multiply to get 2(x2)(x+1)Try 2 and 1 and check to see if they work: (x2)(x+1)=x(x+1)2(x+1)=x2+x2x2=x2x2x2+x2

2 and 1 don't work, so try 2 and 1:

(x+2)(x1)=x(x1)+2(x1)=x2x+2x22=x2+x2Bingo

Now, back to the equation: 0=x2+x2=(x+2)(x1). The only way to get zero when two numbers are multiplied is for one of the numbers to be zero:

x+2=0orx1=0x=2orx=1

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, the leading term makes: (10)2=100. The rest of the polynomial only contributes, (10)+2=8. If we go just a little further out, say x=15, compare the leading term's value to the rest of the polynomial: (15)2=225 versus (15)+2=13. What about the graph for negative values of x? Check out: (15)2=225 versus (15)+2=17. 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)=27x317x23x.

It's easy to see that the y-intercept is at y=0. 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 17, we have to adjust the 3 so that if the 17 were multiplied back in, we'd still have 3.

0=27x317x23x=17x(2x2x21)=17x(2x7)(x+3)

So,

17x=0or2x7=0orx+3=0x=0orx=72orx=3

For the end behavior: The leading term is 27x3, 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)=x42x32x2.

The y-intercept is at y=0, but we have a problem when trying to factor to find the x-intercepts:

x42x32x2=x2(x22x2)

The only two combinations that multiply to get 2 for a "nice" factorization are 1 and 2, or 1 and 2. Checking we see that

(x+1)(x2)=x2x2 and (x1)(x+2)=x2+x2

But neither gives x22x2. Luckily, for quadratic polynomials, there is a formula which will give the solutions to equations like, x22x2=0, the Quadratic Formula. We pause to recall what it says:

Quadratic Formula For ax2+bx+c=0, the solutions are found by

x=b±b24ac2a

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 x42x32x2=x2(x22x2) which means

x2=0 or x22x2=0

and clearly, x=0 is one of the x-intercepts. Now, consider the “not so easy” to factor part: x22x2=0. Here, a=1, b=2 and c=2. With help from the Quadratic Formula:

x=(2)±(2)24(1)(2)2(1)=2±4+82=2±122x=2+122 or x=2122

and using a calculator: x=2+1222.732 or x=21220.732. At last! We have the x-intercepts and we only need to determine the end behavior. The leading term is x4 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:

  1. Solve: x2+3x=1

    First, we must rewrite this as an equivalent equation equalling 0. We subtract 1 from both sides of the equation.

    x2+3x=1x2+3x1=0

    With just a few tries, we can see that we are not going to make a 3 from integers that multiply to get 1. This indicates we must use the Quadratic Formula: ax2+bx+c=0. For this particular equation we have a=1, b=3 and c=1:

    x=3±324(1)(1)2(1)=3±9+42=3±132

    Remember that there are two values here. We wrote ± as a short-cut. The answers are: x=3+132 or x=3132.

  2. Solve: x2+x+5=0

    Note that a=1, b=1 and c=5:

    x=1±124(1)(5)2(1)=1±1202=1±192

    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: No solution.

  3. Solve: 8x324x2+18x=0

    This equation is not a quadratic, but if we factor it we get: 2x(4x212x+9)=0. One solution is x=0 since we could have 2x=0. Using the quadratic formula for 4x212x+9=0 with a=4, b=12 and c=9:

    x=(12)±(12)24(4)(9)2(4)=12±1441448=12±08=128=32

    Hence, the solutions are x=0 or x=32. (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)=x16x3+1120x5 approximates the function g(x)=sin(x) for 3x3.