We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > Boundless Algebra

Graphing Polynomial Functions

Basics of Graphing Polynomial Functions

A polynomial function in one real variable can be represented by a graph.

Learning Objectives

Discuss the factors that affect the graph of a polynomial

Key Takeaways

Key Points

  • The graph of the zero polynomial f(x)=0f(x) = 0 is the x-axis.
  • The graph of a degree 1 polynomial (or linear function ) f(x)=a0+a1xf(x) = a_0 + a_1x, where a10a_1 \neq 0, is a straight line with y-intercept a0a_0 and slope a1a_1.
  • The graph of a degree 2 polynomial f(x)=a0+a1x+a2x2f(x) = a_0 + a_1x + a_2x^2, where a20a_2 \neq 0  is a parabola.
  • The graph of any polynomial with degree 2 or greater f(x)=a0+a1x+a2x2+...+anxnf(x) = a_0 + a_1x + a_2x^2 +... + a_nx^n, where an0a_n \neq 0 and n2n \geq 2 is a continuous non-linear curve.

Key Terms

  • polynomial: an expression consisting of a sum of a finite number of terms, each term being the product of a constant coefficient and one or more variables raised to a non-negative integer power, such as anxn+an1xn1+...+a0x0a_n x^n + a_{n-1}x^{n-1} +... + a_0 x^0. Importantly, because all exponents are positive, it is impossible to divide by x.
  • indeterminate: not accurately determined or determinable.
  • term: any value (variable or constant) or expression separated from another term by a space or an appropriate character, in an overall expression or table.
Polynomials appear in a wide variety of areas of mathematics and science. To better study and understand a polynomial, we sometimes like to draw its graph.

Visible Properties of a Polynomial

A typical graph of a polynomial function of degree 3 is the following:
A cubic function with three roots and one maximum followed by one minimum. It increases, decreases, then increases again. A polynomial of degree 33: Graph of a polynomial function with equation y=x34+3x243x22.y = \frac {x^3}{4} + \frac {3x^2}{4} - \frac {3x}{2} - 2.

Zeros

If we factorize the above function we see that y=14(x2)(x+1)(x+4)y = \frac{1}{4}(x-2)(x+1)(x+4), so the zeros of the polynomial are 2,12, -1 and 4-4. This is one thing we can read from the graph. In general, we can read the number of zeros from a polynomial just by looking at how many times it meets the xx-axis.

Behavior Near Infinity

As x34\frac {x^3}{4} tends to be much larger (in absolute value) than 3x243x22\frac {3x^2}{4} - \frac {3x}{2} - 2 when xx tends to positive or negative infinity, we see that yy goes, like x34\frac {x^3}{4}, to negative infinity when xx goes to negative infinity, and to positive infinity when xx goes to positive infinity. This is again something we can read from the graph. In general, polynomials will show the same behavior as their highest-degree term. Functions of even degree will go to positive or negative infinity (depending on the sign of the coefficient of the highest-degree term) if xx goes to infinity. Functions of odd degree will go to negative or positive infinity when xx goes to negative infinity and vice versa, again depending on the highest-degree term coefficient.

How to Sketch a Graph

Conversely, if we know the zeros of a polynomial, and we know how it behaves near infinity, we can already make a nice sketch of the graph. We can exactly draw the points (z,0)(z,0) for each root zz. Between two zeros (and before the smallest zero, and after the greatest zero) a function will always be either positive, or negative. We know whether it is positive or negative at infinity. Every time we cross a zero of odd multiplicity (if the number of zeros equals the degree of the polynomial, all zeros have multiplicity one and thus odd multiplicity) we change sign. So in our example, we start with a negative sign until we reach x=4x = -4, when our graph rises above the xx-axis. At some point it starts to descend again, until we reach x=1x=-1 and the graph goes below the xx-axis again till x=2x=2, where it becomes positive again. With this procedure, we can draw a reasonable sketch of our graph, by only looking at the sign of the function and drawing a smooth line with the same sign! However, we can do better. For example, the number of times a function reaches a local minimum or maximum (i.e. a point where the graph descends and then starts to ascend again, or vice versa) is finite. In particular, it is smaller than the degree of the given polynomial. So if you draw a graph, make sure you draw no more local extremum points than you should.

Easy Points to Draw

Another easy point to draw is the intersection with the yy-axis, as this equals the function value in the point zero, which equals the constant term of the polynomial. We also call this the yy-intercept of the function. So if we draw our smooth line, we make sure it crosses the yy-axis in the same place. In general, the more function values we compute, the more points of the graph we know, and the more accurate our graph will be. Conversely, we can easily read the constant term of the polynomial by looking at its intersection with the yy-axis if its graph is given (and indeed, we can readily read any function value if the graph is given).

 Examples

  • The graph of the zero polynomial f(x)=0f(x)=0 is the xx-axis, since all real numbers are zeros.
  • The graph of a degree 00 polynomial f(x)=a0f(x)=a_0, where a00a_0 \not = 0, is a horizontal line with yy-intercept a0a_0.
  • The graph of a degree 1 polynomial (or linear function)f(x)=a0+a1xf(x) = a_0 + a_1x, where a10a_1 \not = 0, is a straight line with yy-intercept a0a_0 and slope a1a_1.
  • The graph of a degree 2 polynomial f(x)=a0+a1x+a2x2f(x) = a_0 + a_1x + a_2x^2, where a20a_2 \neq 0 is a parabola.
  • The graph of a degree 3 polynomial f(x)=a0+a1x+a2x2+a3x3f(x) = a_0 + a_1x + a_2x^2 + a_3x^3, where a30a_3 \neq 0, is a cubic curve.
  • The graph of any polynomial with degree 2 or greater f(x)=a0+a1x+a2x2+...+anxnf(x) = a_0 + a_1x + a_2x^2 +... + a_nx^n, where an0a_n \neq 0 and n2n \geq 2 is a continuous non-linear curve.
  • The graph of a non-constant (univariate) polynomial always tends to infinity when the variable increases indefinitely (in absolute value).

Examples

Below are some examples of graphs of functions.
The function has 3 local minima and 2 local maxima and goes to positive infinity in both the left and right directions. It is not symmetric; the maxima and minima take different values and the zeroes are not symmetric over the y-axis. A polynomial of degree 6: A polynomial of degree 6. Its constant term is between -1 and 0. Its highest-degree coefficient is positive. It has exactly 6 zeroes and 5 local extrema.
The function goes to negative infinity to the left and positive infinity to the right. Two of its zeroes being complex means that the change in increasing and decreasing does not result in the polynomial crossing the x-axis. The function increases, crosses the x-axis, reaches a peak, decreases to a trough without crossing the x-axis, increases to another peak, decreases to a trough, crossing the x-axis, then increases to infinity, crossing the x-axis again. A polynomial of degree 5: A polynomial of degree 5. Its constant term is between 3 and 4. Its highest-degree coefficient is positive. It has 3 real zeros (and two complex ones). However, it has 4 local extrema.

The Leading-Term Test

Analysis of a polynomial reveals whether the function will increase or decrease as xx approaches positive and negative infinity.

Learning Objectives

Use the leading-term test to describe the end behavior of a polynomial graph

Key Takeaways

Key Points

  • Properties of the leading term of a polynomial reveal whether the function increases or decreases continually as xx values approach positive and negative infinity.
  • If nn is odd and ana_n is positive, the function declines to the left and inclines to the right.
  • If nn is odd and ana_n is negative, the function inclines to the left and declines to the right.
  • If nn is even and ana_n is positive, the function inclines both to the left and to the right.
  • If nn is even and ana_n is negative, the function declines both to the left and to the right.

Key Terms

  • Leading term: The term in a polynomial in which the independent variable is raised to the highest power.
  • Leading coefficient: The coefficient of the leading term.

Leading Term, Leading Coefficient and Leading Test

All polynomial functions of first or higher order either increase or decrease indefinitely as xx values grow larger and smaller. It is possible to determine the end behavior (i.e. the behavior when xx tends to infinity) of a polynomial function without using a graph. Consider the polynomial function: f(x)=anxn+an1xn1+...+a1x+a0f(x)=a_nx^n + a_{n-1}x^{n-1}+...+a_1x+a_0 anxna_nx^n is called the leading term of f(x)f(x), while an0a_n \not = 0 is known as the leading coefficient. The properties of the leading term and leading coefficient indicate whether f(x)f(x) increases or decreases continually as the xx-values approach positive and negative infinity:
  • If nn is odd and ana_n is positive, the function declines to the left and inclines to the right.
  • If nn is odd and ana_n is negative, the function inclines to the left and declines to the right.
  • If nn is even and ana_n is positive, the function inclines both to the left and to the right.
  • If nn is even and ana_n is negative, the function declines both to the left and to the right.

Examples

Consider the polynomial f(x)=x34+3x243x22.f(x) = \frac {x^3}{4} + \frac {3x^2}{4} - \frac {3x}{2} -2. In the leading term, ana_n equals 14\frac {1}{4} and nn equals 33. Because nn is odd and aa is positive, the graph declines to the left and inclines to the right. This can be seen on its graph below:
image A polynomial of degree 33: Graph of a polynomial with equation f(x)=x34+3x243x22f(x) = \frac {x^3}{4} + \frac {3x^2}{4} - \frac{3x}{2} - 2. Because the degree is odd and the leading coefficient  is positive, the function declines to the left and inclines to the right.

Another example is the function

g(x)=114(x+4)(x+1)(x1)(x3)+12g(x) = - \frac{1}{14} (x+4)(x+1)(x-1)(x-3) + \frac{1}{2} which has x414-\frac {x^4}{14} as its leading term and 114- \frac{1}{14} as its leading coefficient. Thus g(x)g(x)approaches negative infinity as xx approaches either positive or negative infinity; the graph declines both to the left and to the right as seen in the next figure:
image A polynomial of degree 4: Graph of g(x)=114(x+4)(x+1)(x1)(x3)+12g(x) = - \frac{1}{14} (x+4)(x+1)(x-1)(x-3) + \frac{1}{2}. As the degree is even and the leading coefficient is negative, the function declines both to the left and to the right.

The Leading Test Explained

Intuitively, one can see why we need to look at the leading coefficient to see how a polynomial behaves at infinity: When xx is very big (in absolute value ), then the highest degree term will be much bigger (in absolute value) than the other terms combined. For example x1000x - 1000 differs a lot from xx when x=0x = 0 or 10001000, but (relatively) not when x=9999999999999x = 9999999999999 or 9999999999999999-9999999999999999. Indeed, both functions can be described as "very big and positive" in the first point and "very big and negative" in the second. In general, when we have a polynomial f(x)=anxn++a0f(x) = a_nx^n + \ldots + a_0 and the absolute value of xx is bigger than MnKMnK, where MM is the absolute value of the largest coefficient divided by the leading coefficient, nn is the degree of the polynomial and KK is a big number, then the absolute value of anxna_nx^n will be bigger than nKnK times the absolute value of any other term, and bigger than KK times the other terms combined! So when xx grows very large, f(x)f(x) very much resembles its leading term anxn.a_n x^n. This function grows very big as xx grows very big. Now anxna_nx^n takes on the sign of ana_n if xnx^n is positive, which happens if xx is positive or if nn is even, and the opposite sign of ana_n if xnx^n is negative, which happens if xx is negative and nn is odd. (Notice that we do not care about x=0x = 0 since we are only interested in very large x.x.) Thus, anxna_nx^n  (and thus f(x)f(x), in the neighborhood of infinity) goes up (as xx approaches infinity) if ana^n is positive and down if ana_n is negative. Except when xx is negative and nn is odd; then the opposite is true.

Licenses & Attributions