Omni Calculator logo

Polynomial Graphing Calculator

Created by Maciej Kowalski, PhD candidate
Reviewed by Anna Szczepanek, PhD and Steven Wooding
Last updated: Jan 18, 2024


Welcome to Omni's polynomial graphing calculator, where we'll study how to graph polynomial functions. Obviously, the task gets more and more difficult when we raise the degree, and it becomes really complicated from five upwards. That's why we'll focus on polynomial function equations of degree at most four, where we're able to find the zeros of the polynomial, as well as its extrema and inflection points. Still, we'll also show a few universal tricks that you can apply to other cases, such as determining the end behavior of polynomial functions based on the leading coefficient of a polynomial.

Polynomial function examples

By definition, polynomials are algebraic expressions in which variables appear only in non-negative integer powers. In other words, the letters cannot be, e.g., under roots, in the denominator of a rational expression, or inside a function. Let's see some polynomial function examples to get a grip on what we're talking about:

  • 2x2x;
  • (3)z30.5(-3) \cdot z^3 \cdot 0.5;
  • πr2\pi r^2;
  • x+2yx + 2y;
  • a2+2ab+ba^2 + 2ab + b: and
  • n30.7n+(3/8)n^3 - 0.7n + (3/8).

Let us attract your attention to a few things here:

  1. A polynomial can have several variables. In fact, it can even have none and still be called a polynomial (of degree zero).
  2. The expression doesn't have to be in its simplest form. For instance, the product in the second expression above can surely be written in an easier way, yet we call both polynomials.
  3. A polynomial's coefficients can be any real number. Note how above, we have integers, negative numbers, fractions, decimals, and even the π\pi from circle calculations.
  4. Some polynomials have their special names. Those with only one expression (i.e., one summand) are monomials (e.g., the first three above). Those with two are binomials (e.g., the fourth above), and those with three are trinomials (e.g., the last two).
  5. For polynomials with one variable, the coefficient next to the highest power of the variable is called the leading coefficient of the polynomial. It'll be crucial when studying the end behavior of polynomial functions in the next section.

🙋 You can obtain new polynomials with numerous operations: discover them at Omni's adding and subtracting polynomials calculator, multiplying binomials calculator, and the general multiplying polynomials calculator!

Now that we know the terminology, it's time to get the crayons ready. Omni's polynomial graphing calculator focuses on expressions with one variable, which we denote xx. We refer to the polynomial by P(x)P(x) and treat it as a function of the variable.

In a moment, we'll see how to graph such polynomial functions on the two-dimensional Cartesian plane. The task requires finding the zeros of the polynomial as well as some of its most interesting points. It is in itself rather lengthy and difficult, but before we get to that, let's cover something simpler: the end behavior of polynomial functions.

The end behavior of polynomial functions

In our case, "the end" refers to either minus or plus infinity. In other words, we wish to check what happens with our expressions when the variable xx is extremely small (as a negative number) or extremely large.

For instance, take two polynomial function equations: P(x)=x2P(x) = x^2 and R(x)=x3R(x) = x^3. Let's see how their values change for several instances of xx.

x\boldsymbol{x}

P(x)\boldsymbol{P(x)}

R(x)\boldsymbol{R(x)}

100-100

1000010000

1000000-1000000

50-50

25002500

125000-125000

10-10

100100

1000-1000

5-5

2525

125-125

2-2

44

8-8

1-1

11

1-1

00

00

00

11

11

11

22

44

88

55

2525

125125

1010

100100

10001000

5050

25002500

125000125000

100100

1000010000

10000001000000

We see that P(x)P(x) and R(x)R(x) both rise quickly for large (positive) xx. On the other hand, if we go with xx the other way, i.e., make it negative, then P(x)P(x) increases but R(x)R(x) decreases. We can easily imagine that the trend continues for values beyond the ones in the table above.

All in all, we can describe the end behavior of the polynomial functions as follows:

  • When xx goes towards plus infinity:
    • P(x)P(x) goes to plus infinity; and
    • R(x)R(x) goes to plus infinity.
  • When xx goes towards minus infinity:
    • P(x)P(x) goes to plus infinity; and
    • R(x)R(x) goes to minus infinity.

It's easy to see that the thing depended only on the parity of the exponent: the squared function killed the minus, while the cubed one didn't. Furthermore, observe how the signs would flip if we had S(x)=x2S(x) = -x^2 and T(x)=x3T(x) = -x^3 instead.

In fact, even for more complicated expressions such as, say, x217x89x^2 - 17x - 89, it boils down to the single summand with the highest power of xx. That is because the highest exponent dominates over any lower ones for extreme values. Therefore, we only need to check what is called the leading coefficient of the polynomial. However, note how it doesn't really matter if it's 2x22x^2 or 361x2361x^2: the function will still go to plus infinity, though slightly faster in the second case.

To sum it all up, let's have a neat instruction on how to determine the end behavior of polynomial functions based on the leading coefficient of the polynomial.

If the highest exponent of a polynomial is:

  • Even and the leading coefficient is:
    • Positive, then the function goes to:
      • Plus infinity for xx going to plus infinity; and
      • Plus infinity for xx going to minus infinity.
    • Negative, then the function goes to:
      • Minus infinity for xx going to plus infinity; and
      • Minus infinity for xx going to minus infinity.
  • Odd and the leading coefficient is:
    • Positive, then the function goes to:
      • Plus infinity for xx going to plus infinity; and
      • minus infinity for xx going to minus infinity.
    • Negative, then the function goes to:
      • Minus infinity for xx going to plus infinity; and
      • Plus infinity for xx going to minus infinity.

Alright, we've figured out how to graph polynomial functions, or at least, their ends. Let's now see how to deal with everything that happens in between.

Finding the zeros of the polynomial and its critical points

🙋 For a detailed analysis of this topic, visit our rational zeros calculator!

A zero of a polynomial (also called its root; not to be confused with radicals) is a point where the function is equal to zero. For example, P(x)=x22x+1P(x) = x^2 - 2x + 1 has a zero in x=1x = 1 since:

P(1)=1221+1=12+1=0\begin{split} P(1)& = 1^2 -2\cdot1+1\\ &=1-2+1=0 \end{split}

For linear equations (i.e., polynomials of degree 11), finding their root is simple: it boils down to a couple of arithmetic operations. For quadratic ones, we have some nice formulas that use the discriminant, so it's not too bad. Still, this time, there may be two, one, or zero solutions, so the matter is a bit more complicated.

In fact, there are formulas for polynomials of degree 33 and 44 too. However, this time the word "complicated" doesn't really touch the surface: they are extremely long, require tedious work, and, as before, there may be different numbers of solutions for various polynomial function examples. If you're interested, make sure to read more about cubic functions and quartic functions.

Either way, finding the zeros of a polynomial is often the first step when drawing the function on the Cartesian plane. For a given P(x)P(x), this means solving the associated polynomial function equation: P(x)=0P(x) = 0. The solutions are the zeros, i.e., the points where the graph of P(x)P(x) touches the horizontal line.

💡 If you only need to know the number of positive/negative zeros without actually determining them, try the Descartes' rule of signs calculator.

Next, we look for the critical points of the function. While the roots told us where the graph meets the horizontal line, these new points describe what happens in between: if the values increase or decrease and until what number.

By definition, a critical point of a polynomial is a value x0x_0 where the derivative vanishes. Therefore, for a given P(x)P(x), we need to solve the equation P(x)=0P'(x) = 0 to get the zeros of the derivative, i.e., the critical points of P(x)P(x). Recall that for:

P(x)=anxn+an1xn1+an2xn2++a1x+a0\footnotesize \begin{split} P(x) = a_nx^n + a_{n-1}x^{n-1} + a_{n-2}x^{n-2}\\ + \ldots +a_1x + a_0 \end{split}

we have:

P(x)=nanxn1+(n1)an1xn2+(n2)an2xn3++a1\footnotesize \begin{split} P'(x) = na_nx^{n-1} + (n\!-\!1)a_{n-1}x^{n-2}\\ + (n\!-\!2)a_{n-2}x^{n-3} + \ldots + a_1 \end{split}

Observe that the degree of the derivative is always 11 smaller than that of the initial polynomial. As such, finding the critical points of, e.g., a cubic equation requires solving a quadratic equation.

We distinguish two types of critical points: extrema and inflection points.

  1. Extrema

    Or, more precisely, local extrema. They are points where the polynomial (not the derivative, mind you!) attains extreme values. To be precise, around that point (or, as mathematicians call it, in its neighborhood), all other values are smaller (which means it's a maximum) or larger (which means it's a minimum): believe it or not but we have a calculator for this too, the minimum and maximum calculator!

    The best example of a polynomial function's extremum is the vertex of a parabola — you can learn how to calculate it here, at the parabola calculator. For instance, draw the functions P(x)=x2P(x) = x^2 and R(x)=x2R(x) = -x^2. Both of them have their vertices in point (0,0)(0,0), but they are, respectively, the local minimum (since all other values of P(x)P(x) are larger than 00) and local maximum (since all other values of R(x)R(x) are smaller than 00).

  2. Inflection points

    These are points that wanted to be extrema, but mom didn't let them.

    Recall the two polynomial function examples from point 1. above: P(x)=x2P(x) = x^2 and R(x)=x2R(x) = -x^2. In both cases, the graphs flatten when they approach the point x=0x = 0 from either side and when they pass 00, they change their course.

    When a graph approaches its inflection point, it also flattens. However, in this case, it doesn't change the course once it passes. Instead, it repeats what it has been doing: decreases if it has been decreasing or increases if it has been increasing.

    As an example, consider the polynomial function equations S(x)=x3S(x) = x^3 and T(x)=x3T(x) = -x^3. Both of them flatten when they approach the point x=0x = 0 from either side and continue the previous pattern when they pass it. Note how in point 1., we distinguished between the two examples and had minima or maxima. Here, on the other hand, we call both instances simply inflection points.

Note how Omni's polynomial graphing calculator automatically calculates the functions roots, critical points, extrema, and inflection points. We encourage you to seek the values on the graph provided by the tool to see how they affect the function. In fact, let us do just that on a simple example and take the opportunity to present the functionalities of the polynomial graphing calculator.

Example: using the graphing polynomial functions calculator

Let's see how to graph the polynomial function P(x)=x3xP(x) = x^3 - x.

First of all, we use Omni's polynomial graphing calculator to do the work for us. There, we begin by telling what type of a function we have. In our case, it's a cubic polynomial, so we choose 33 under "Polynomial degree." That'll show a symbolic representation of such an expression underneath and corresponding variable fields farther down. Looking back at our polynomial function example, we input:

a3=1a2=0a1=1a0=0\begin{split} a_3 &= 1\\ a_2&=0\\ a_1&=-1\\ a_0&=0\\ \end{split}

Note how we have a=0a₂ = 0 and a=0a₀ = 0 since P(x)P(x) has no terms with x2x^2 or with no xx at all. Also, we input a3=1a_3 = 1 and a1=1a_1 = -1 even though there are no numbers in the corresponding places in P(x)P(x). That's because, by convention, we don't write 11-s in front of variables. However, observe that we needed to remember about the minus in a1a_1.

The moment we input the last coefficient, Omni's polynomial graphing calculator will draw the graph, as well as find the zeros of the polynomial together with its critical points, extrema, and inflection points. Let us also mention that in case you'd like to see some other section of the graph than the one presented, you may go into the advanced mode and input a custom interval.

Now let's try to describe the graph ourselves. First of all, we need to find the zeros of the polynomial, so we solve the equation P(x)=0P(x) = 0:

x3x=0x(x21)=0x(x1)(x+1)=0\begin{split} &x^3-x=0\\ &x\cdot(x^2-1)=0\\ &x\cdot(x-1)\cdot(x+1)=0 \end{split}

We obtained a product which is equal to 00, which means one of its factors must be zero. In other words, we have x=0x = 0, x1=0x - 1 = 0, or x+1=0x + 1 = 0, which gives us three solutions: x=0x = 0, x=1x = 1, and x=1x = -1.

🙋 How did we do this Our factoring trinomials calculator has the answer!

Next, we look for critical points. For that, we compute the derivative P(x)P'(x) according to the formula from the above section:

P(x)=(x3x)=3x21P'(x) = (x^3 - x)' = 3x^2 - 1

Now, we solve the equation P(x)=0P'(x) = 0:

3x21=03x2=1x2=13\begin{split} &3x^2-1=0\\ &3x^2=1\\ &x^2=\frac{1}{3} \end{split}

which gives us two solutions (i.e., critical points): 3/30.577-\sqrt{3}/3\approx -0.577 and 3/30.577\sqrt{3}/3\approx 0.577.

Lastly, we draw the graph. Note that the leading coefficient of the polynomial is positive (i.e., equal to 11), and it's in front of an odd power of xx (i.e., x3x^3). That means the end behavior of the polynomial function is as follows:

  • P(x)P(x) goes to plus infinity when xx goes to plus infinity; and
  • P(x)P(x) goes to minus infinity when xx goes to minus infinity.

In between, the graph must touch the vertical axis in points 1-1, 00, and 11, and flatten in 0.577-0.577 and 0.5770.577. That takes us to the conclusion that P(x)P(x) has a local maximum in x=0.577x = -0.577 and a local minimum in x=0.577x = 0.577; it has no inflection points.

All in all, the graph of P(x)=x3xP(x) = x^3 - x looks like this:

A polynomial function example.

Make sure to experiment with the polynomial graphing calculator to see how different coefficients affect the zeros and the bumps.

FAQ

How do I graph polynomial functions?

To graph polynomial functions, say, P(x), you need to:

  1. Solve the equation P(x) = 0 to find the zeros of P(x).

  2. Determine the end behavior by checking the leading coefficient.

  3. Compute the derivative P'(x).

  4. Solve the equation P'(x) = 0 to find the critical points of P(x).

  5. Evaluate the polynomial in all the critical points.

  6. For each point in 4., check if it's an extremum or an inflection point.

  7. Draw the actual graph:

    • Mark all the zeros and critical points.
    • Draw the ends according to point 2.
    • Graph the polynomial in between by:
      • Starting from the right end.
      • Touching the vertical axis in the zeros.
      • Reflecting the line in the extrema.
      • Passing through the inflection points.

How do I determine the end behavior of a polynomial function?

To determine the end behavior of a polynomial function in x, you need to:

  1. Find the parity of the highest variable power in the polynomial.
  2. Determine its coefficient: is it positive or negative?
  3. If the exponent is:
    • Even, then:
      • For a positive leading coefficient, the function tends to:
        • +∞ for x approaching +∞; and
        • +∞ for x approaching -∞.
      • For a negative leading coefficient, the function tends to:
        • -∞ for x approaching +∞; and
        • -∞ for x approaching -∞.
    • Odd, then:
      • For a positive leading coefficient, the function tends to:
        • +∞ for x approaching +∞; and
        • -∞ for x approaching -∞.
      • For a negative leading coefficient, the function tends to:
        • -∞ for x approaching +∞; and
        • +∞ for x approaching -∞.

How do I draw the graph of a quadratic polynomial?

To draw the graph of a quadratic polynomial P(x) = ax² + bx + c, you need to:

  1. Find the real solutions to P(x) = 0 (i.e., the zeros).
  2. Solve the derivative equation 2ax + b = 0.
  3. Evaluate P(x) in the point obtained in 2.
  4. Mark the values from points 1-2. on the vertical axis.
  5. Mark the parabola's vertex given by points 2-3.
  6. Draw the actual graph:
    • Start from the vertex and draw the arms:
      • Upwards if a > 0; or
      • Downwards if a < 0.
    • Make sure the arms cross the vertical axis in the zeros (if there are any).

How do I analyze graphs of polynomial functions?

To analyze graphs of polynomial functions, make sure to check where the graph:

  • Touches the vertical axis (those are the polynomial's zeros);
  • Tends to on the far-left and far right (those describe the end behavior);
  • Has bumps (those are the function's extrema); and
  • Flattens, but then continues increasing/decreasing (those are the inflection points).

How does the degree of a polynomial affect the graph?

The degree of a polynomial affects the graph in the following ways:

  • The degree's parity determines the end behavior: whether it's the same on both ends or not;
  • The number of zeros: the graph may touch the vertical axis at most as many times as given by the degree; and
  • The number of critical points: the number of extrema and inflection points is, at most, one smaller than the degree.

How do I draw the graph of a cubic polynomial?

To draw the graph of a cubic polynomial P(x) = ax³ + bx² + cx + d, you need to:

  1. Find the real solutions to P(x) = 0.
  2. Solve the derivative equation 3ax² + 2bx + c = 0.
  3. Evaluate P(x) in the points obtained in 2. (if there are any).
  4. Mark the values from points 1-2. on the vertical axis.
  5. Mark the critical points given by points 2-3. (if there are any).
  6. Draw the actual graph:
    • Start from:
      • The upper right if a > 0; or
      • The bottom right if a < 0.
    • Make sure to touch the vertical line in all the points from 1.
    • If in point 2. you got:
      • Two values reflect the graph in points from 5. (they are extrema);
      • One value, go through the point from 5. and continue increasing/decreasing (it's an inflection point); or
      • No values, do none of the above.
    • Make sure to finish the graph on:
      • The bottom left if a > 0; or
      • The upper left if a < 0.
Maciej Kowalski, PhD candidate
Polynomial degree
2
P(x) = a₂x² + a₁x + a₀
a₂
a₁
a₀
Check out 46 similar coordinate geometry calculators 📈
Average rate of changeBilinear interpolationCatenary curve… 43 more
People also viewed…

Christmas tree

Welcome to the Christmas tree calculator, where you will find out how to decorate your Christmas tree in the best way. Take a look at the perfect Christmas tree formula prepared by math professors and improved by physicists. Plan in advance how many lights and decorations you'll need!

Completing the square works

Let's discuss why solving quadratic equations by completing the square works!

Condition number

The condition number calculator finds the condition number of a matrix. It supports the use of popular matrix norms and can find a 2×2 or 3×3 matrix's condition number.

Grams to cups

The grams to cups converter converts between cups and grams. You can choose between 20 different popular kitchen ingredients or directly type in the product density.
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service