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✓ |
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.
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 a2−b2. 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.
Determine the leading term and the degree of each example polynomial:
Polynomial | Leading Term | Degree |
1.12x2+5.4x−1.7 | 1.12x2 | 2 |
21+3w4−w2 | 3w4 | 4 |
10+2x+4xy−7xy2 | 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:
Evaluate 2x2−4x+6 when x=−4.
2x2−4x+6Replace variable x with −42(−4)2−4(−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.
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 3−9+2(3)+6Multiply−9+6+6Add3Our Solution✓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.
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:
Add the two cubic polynomials.
(4x3−2x+8)+(3x3−9x2−11)Combine like terms:4x3+3x3=7x3and 8−11=−37x3−9x2−2x−3Our 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: −3−2x−9x2+7x3 or −2x+7x3−3−9x2, 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.
Subtract the two quadratic polynomials.
(5x2−2x+7)−(3x2+6x−4)Distribute negative through second part5x2−2x+7−3x2−6x+4Combine like terms:5x2−3x2=2x2 and −2x−6x=−8xand 7+4=112x2−8x+11Our Solution✓Addition and subtraction can also be combined into the same problem as shown in this final example:
Simplify.
(2x2−4x+3)+(5x2−6x+1)−(x2−9x+8)Distribute negative through2x2−4x+3+5x2−6x+1−x2+9x−8Combine like terms6x2−x−4Our Solution✓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):
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.
Multiply (4x+3)(3x−2).
4x(3x−2)+3(3x−2)Each term of the first multiplies the second12x2−8x+9x−6Combine like terms12x2+x−6Our Solution✓Multiply (x−2)(4x2−x+5).
x(4x2−x+5)−2(4x2−x+5)Each term of the first multiplies the second4x3−x2+5x−8x2+2x−10Combine like terms4x3−9x2+7x−10Our Solution✓What happens if we multiply in the reverse order?
Multiply (4x2−x+5)(x−2).
4x2(x−2)−x(x−2)+5(x−2)Each term of the first multiplies the second4x3−8x2−x2+2x+5x−10Combine like terms4x3−9x2+7x−10We got the same thing---that's good!✓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.
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.✓
Consider the graph of g(x)=−x2−x+2.
The y-intercept is easy to find:
y=−02−0+2y=2The x-intercept takes a little more work: How to find when 0=−x2−x+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=−x2−x+2Multiply both sides by −10=x2+x−2Let's focus on the polynomial and set up to factor (x+◻)(x+◻)We need values which multiply to get −2(x−2)(x+1)Try −2 and 1 and check to see if they work: (x−2)(x+1)=x(x+1)−2(x+1)=x2+x−2x−2=x2−x−2≠x2+x−2−2 and 1 don't work, so try 2 and −1:
(x+2)(x−1)=x(x−1)+2(x−1)=x2−x+2x−22=x2+x−2BingoNow, back to the equation: 0=x2+x−2=(x+2)(x−1). The only way to get zero when two numbers are multiplied is for one of the numbers to be zero:
x+2=0orx−1=0x=−2orx=1To 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:
Consider the graph h(x)=27x3−17x2−3x.
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=27x3−17x2−3x=17x(2x2−x−21)=17x(2x−7)(x+3)So,
17x=0or2x−7=0orx+3=0x=0orx=72orx=−3For 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:
Consider the graph k(x)=x4−2x3−2x2.
The y-intercept is at y=0, but we have a problem when trying to factor to find the x-intercepts:
x4−2x3−2x2=x2(x2−2x−2)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)(x−2)=x2−x−2 and (x−1)(x+2)=x2+x−2But neither gives x2−2x−2. Luckily, for quadratic polynomials, there is a formula which will give the solutions to equations like, x2−2x−2=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±√b2−4ac2aNow 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 x4−2x3−2x2=x2(x2−2x−2) which means
x2=0 or x2−2x−2=0and clearly, x=0 is one of the x-intercepts. Now, consider the “not so easy” to factor part: x2−2x−2=0. Here, a=1, b=−2 and c=−2. With help from the Quadratic Formula:
x=−(−2)±√(−2)2−4(1)(−2)2(1)=2±√4+82=2±√122x=2+√122 or x=2−√122and using a calculator: x=2+√122≈2.732 or x=2−√122≈−0.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:
We should probably work a few problems with the Quadratic Formula, just for practice:
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+3x−1=0With 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±√32−4(1)(−1)2(1)=−3±√9+42=−3±√132Remember that there are two values here. We wrote ± as a short-cut. The answers are: x=−3+√132 or x=−3−√132.
Solve: x2+x+5=0
Note that a=1, b=1 and c=5:
x=−1±√12−4(1)(5)2(1)=−1±√1−202=−1±√−192But, 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.
Solve: 8x3−24x2+18x=0
This equation is not a quadratic, but if we factor it we get: 2x(4x2−12x+9)=0. One solution is x=0 since we could have 2x=0. Using the quadratic formula for 4x2−12x+9=0 with a=4, b=−12 and c=9:
x=−(−12)±√(−12)2−4(4)(9)2(4)=12±√144−1448=12±√08=128=32Hence, 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)=x−16x3+1120x5 approximates the function g(x)=sin(x) for −3≤x≤3.