## 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) = 0$ is the x-axis.
• The graph of a degree 1 polynomial (or linear function ) $f(x) = a_0 + a_1x$, where $a_1 \neq 0$, is a straight line with y-intercept $a_0$ and slope $a_1$.
• The graph of a degree 2 polynomial $f(x) = a_0 + a_1x + a_2x^2$, where $a_2 \neq 0$  is a parabola.
• The graph of any polynomial with degree 2 or greater $f(x) = a_0 + a_1x + a_2x^2 +… + a_nx^n$, where $a_n \neq 0$ and $n \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 $a_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 polynomial of degree $3$: Graph of a polynomial function with equation $y = \frac {x^3}{4} + \frac {3x^2}{4} – \frac {3x}{2} – 2.$

### Zeros

If we factorize the above function we see that $y = \frac{1}{4}(x-2)(x+1)(x+4)$, so the zeros of the polynomial are $2, -1$ and $-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 $x$-axis.

### Behavior Near Infinity

As $\frac {x^3}{4}$ tends to be much larger (in absolute value) than $\frac {3x^2}{4} - \frac {3x}{2} - 2$ when $x$ tends to positive or negative infinity, we see that $y$ goes, like $\frac {x^3}{4}$, to negative infinity when $x$ goes to negative infinity, and to positive infinity when $x$ 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 $x$ goes to infinity. Functions of odd degree will go to negative or positive infinity when $x$ 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)$ for each root $z$. 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 = -4$, when our graph rises above the $x$-axis. At some point it starts to descend again, until we reach $x=-1$ and the graph goes below the $x$-axis again till $x=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 $y$-axis, as this equals the function value in the point zero, which equals the constant term of the polynomial. We also call this the $y$-intercept of the function. So if we draw our smooth line, we make sure it crosses the $y$-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 $y$-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)=0$ is the $x$-axis, since all real numbers are zeros.
• The graph of a degree $0$ polynomial $f(x)=a_0$, where $a_0 \not = 0$, is a horizontal line with $y$-intercept $a_0$.
• The graph of a degree 1 polynomial (or linear function)$f(x) = a_0 + a_1x$, where $a_1 \not = 0$, is a straight line with $y$-intercept $a_0$ and slope $a_1$.
• The graph of a degree 2 polynomial $f(x) = a_0 + a_1x + a_2x^2$, where $a_2 \neq 0$ is a parabola.
• The graph of a degree 3 polynomial $f(x) = a_0 + a_1x + a_2x^2 + a_3x^3$, where $a_3 \neq 0$, is a cubic curve.
• The graph of any polynomial with degree 2 or greater $f(x) = a_0 + a_1x + a_2x^2 +… + a_nx^n$, where $a_n \neq 0$ and $n \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. 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. 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.

Analysis of a polynomial reveals whether the function will increase or decrease as $x$ 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 $x$ values approach positive and negative infinity.
• If $n$ is odd and $a_n$ is positive, the function declines to the left and inclines to the right.
• If $n$ is odd and $a_n$ is negative, the function inclines to the left and declines to the right.
• If $n$ is even and $a_n$ is positive, the function inclines both to the left and to the right.
• If $n$ is even and $a_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.

All polynomial functions of first or higher order either increase or decrease indefinitely as $x$ values grow larger and smaller. It is possible to determine the end behavior (i.e. the behavior when $x$ tends to infinity) of a polynomial function without using a graph. Consider the polynomial function:

$f(x)=a_nx^n + a_{n-1}x^{n-1}+…+a_1x+a_0$

$a_nx^n$ is called the leading term of $f(x)$, while $a_n \not = 0$ is known as the leading coefficient. The properties of the leading term and leading coefficient indicate whether $f(x)$ increases or decreases continually as the $x$-values approach positive and negative infinity:

• If $n$ is odd and $a_n$ is positive, the function declines to the left and inclines to the right.
• If $n$ is odd and $a_n$ is negative, the function inclines to the left and declines to the right.
• If $n$ is even and $a_n$ is positive, the function inclines both to the left and to the right.
• If $n$ is even and $a_n$ is negative, the function declines both to the left and to the right.

### Examples

Consider the polynomial

$f(x) = \frac {x^3}{4} + \frac {3x^2}{4} - \frac {3x}{2} -2.$

In the leading term, $a_n$ equals $\frac {1}{4}$ and $n$ equals $3$. Because $n$ is odd and $a$ is positive, the graph declines to the left and inclines to the right. This can be seen on its graph below: A polynomial of degree $3$: Graph of a polynomial with equation $f(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) = - \frac{1}{14} (x+4)(x+1)(x-1)(x-3) + \frac{1}{2}$

which has $-\frac {x^4}{14}$ as its leading term and $- \frac{1}{14}$ as its leading coefficient. Thus $g(x)$approaches negative infinity as $x$ approaches either positive or negative infinity; the graph declines both to the left and to the right as seen in the next figure: A polynomial of degree 4: Graph of $g(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.

Intuitively, one can see why we need to look at the leading coefficient to see how a polynomial behaves at infinity: When $x$ 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 $x - 1000$ differs a lot from $x$ when $x = 0$ or $1000$, but (relatively) not when $x = 9999999999999$ or $-9999999999999999$. Indeed, both functions can be described as “very big and positive” in the first point and “very big and negative” in the second.
$f(x) = a_nx^n + \ldots + a_0$
and the absolute value of $x$ is bigger than $MnK$, where $M$ is the absolute value of the largest coefficient divided by the leading coefficient, $n$ is the degree of the polynomial and $K$ is a big number, then the absolute value of $a_nx^n$ will be bigger than $nK$ times the absolute value of any other term, and bigger than $K$ times the other terms combined! So when $x$ grows very large, $f(x)$ very much resembles its leading term $a_n x^n.$ This function grows very big as $x$ grows very big.
Now $a_nx^n$ takes on the sign of $a_n$ if $x^n$ is positive, which happens if $x$ is positive or if $n$ is even, and the opposite sign of $a_n$ if $x^n$ is negative, which happens if $x$ is negative and $n$ is odd. (Notice that we do not care about $x = 0$ since we are only interested in very large $x.$)
Thus, $a_nx^n$  (and thus $f(x)$, in the neighborhood of infinity) goes up (as $x$ approaches infinity) if $a^n$ is positive and down if $a_n$ is negative. Except when $x$ is negative and $n$ is odd; then the opposite is true.