Skip to main content
Mathematics LibreTexts

9.1: Graphs of polynomials

  • Page ID
    49003
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    We now discuss the shape of the graphs of polynomial functions. Recall that a polynomial function \(f\) of degree \(n\) is a function of the form

    \[f(x)=a_n x^n+a_{n-1} x^{n-1}+\dots +a_2 x^2+ a_1 x + a_0 \nonumber \]

    Observation: Graphs of Polynomials

    We already know from Section 2.1, that the graphs of polynomials \(f(x)=ax+b\) of degree \(1\) are straight lines.

    clipboard_eeeb98e9df1f8a4c458a58844d1d54093.png


    Polynomials of degree \(1\) have only one root.

    It is also easy to sketch the graphs of functions \(f(x)=x^n\).

    Observation: Graph of Function \(f(x)=x^n\)

    Graphing \(y=x^2\), \(y=x^3\), \(y=x^4\), \(y=x^5\), we obtain:

    clipboard_efcad3af545133e1bf7d80cbe37c31738.png

    From this, we see that the shape of the graph of \(f(x)=x^n\) depends on \(n\) being even or odd.

    clipboard_ea3c8a96312424c833e9d84836ce32e2d.png

    We now make some observations about graphs of general polynomials of degrees \(2\), \(3\), \(4\), \(5\), and, more generally, of any degree \(n\). In particular, we will be interested in the number of roots and the number of extrema (that is the number of maxima or a minima) of the graph of a polynomial \(f\).

    Observation: Graph of Parabola

    Let \(f(x)=ax^2+bx+c\) be a polynomial of degree \(2\). The graph of \(f\) is a parabola.

    • \(f\) has at most \(2\) roots. \(f\) has one extremum (that is one maximum or minimum).

    clipboard_ee5b92ff1f394d933c843c3ce1afd879d.png

    • If \(a>0\) then \(f\) opens upwards, if \(a<0\) then \(f\) opens downwards.

    clipboard_e5db641d459efabccfd32c5e49a1cee63.png

    Observation: Graph of Polynomial of degree \(3\)

    Let \(f(x)=ax^3+bx^2+cx+d\) be a polynomial of degree \(3\). The graph may change its direction at most twice.

    • \(f\) has at most \(3\) roots. \(f\) has at most \(2\) extrema.

    clipboard_e89fb3d1db22bb84b8a4c2f16f1625c8c.png

    • If \(a>0\) then \(f(x)\) approaches \(+\infty\) when \(x\) approaches \(+\infty\) (that is, \(f(x)\) gets large when \(x\) gets large), and \(f(x)\) approaches \(-\infty\) when \(x\) approaches \(-\infty\). If \(a<0\) then \(f(x)\) approaches \(-\infty\) when \(x\) approaches \(+\infty\), and \(f(x)\) approaches \(+\infty\) when \(x\) approaches \(-\infty\).

    clipboard_edeb8efde9ce4bd5fda246fabe148129d.png

    Above, we have a first instance of a polynomial of degree \(n\) which “changes its direction” one more time than a polynomial of one lesser degree \(n-1\). Below, we give examples of this phenomenon for higher degrees as well.

    Observation: Graph of Polynomial of degree \(4\)

    Let \(f(x)=ax^4+bx^3+cx^2+dx+e\) be a polynomial of degree \(4\).

    • \(f\) has at most \(4\) roots. \(f\) has at most \(3\) extrema. If \(a>0\) then \(f\) opens upwards, if \(a<0\) then \(f\) opens downwards.

    clipboard_e68cb89e0d72af4366e85a135b62b3e6b.png

    Observation: Graph of Polynomial of degree \(5\)

    Let \(f\) be a polynomial of degree \(5\).

    • \(f\) has at most \(5\) roots. \(f\) has at most \(4\) extrema. If \(a>0\) then \(f(x)\) approaches \(+\infty\) when \(x\) approaches \(+\infty\), and \(f(x)\) approaches \(-\infty\) when \(x\) approaches \(-\infty\). If \(a<0\) then \(f(x)\) approaches \(-\infty\) when \(x\) approaches \(+\infty\), and \(f(x)\) approaches \(+\infty\) when \(x\) approaches \(-\infty\).

    clipboard_e257234788678c7dffa00512f9b70dff7.png

    Observation: Graph of Polynomial of degree \(n\)

    • Let \(f(x)=a_n x^n+a_{n-1} x^{n-1}+\dots +a_2 x^2+ a_1 x + a_0\) be a polynomial of degree \(n\). Then \(f\) has at most \(n\) roots, and at most \(n-1\) extrema.

    clipboard_ec3c68a2a23cd770fa751cf425445a4d6.png

    • Assume the degree of \(f\) is even \(n=2, 4, 6, \dots\). If \(a_n>0\), then the polynomial opens upwards. If \(a_n<0\) then the polynomial opens downwards.

    clipboard_eddf64fd1e0901c1127bb1f0f2e593b63.png

    • Assume the degree of \(f\) is odd, \(n=1, 3, 5, \dots\). If \(a_n>0\), then \(f(x)\) approaches \(+\infty\) when \(x\) approaches \(+\infty\), and \(f(x)\) approaches \(-\infty\) as \(x\) approaches \(-\infty\). If \(a_n<0\), then \(f(x)\) approaches \(-\infty\) when \(x\) approaches \(+\infty\), and \(f(x)\) approaches \(+\infty\) as \(x\) approaches \(-\infty\).

    clipboard_e72de476813537ef69342e889bdae4a5b.png

    • The domain of a polynomial \(f\) is all real numbers, and \(f\) is continuous for all real numbers (there are no jumps in the graph). The graph of \(f\) has no horizontal or vertical asymptotes, no discontinuities (jumps in the graph), and no corners. Furthermore, \(f(x)\) approaches \(\pm \infty\) when \(x\) approaches \(\pm \infty\). Therefore, the following graphs cannot be graphs of polynomials.

    clipboard_e3031983c4a9836203bd56f32dbe311e4.png

    Example \(\PageIndex{1}\)

    Which of the following graphs could be the graphs of a polynomial? If the graph could indeed be a graph of a polynomial then determine a possible degree of the polynomial.

    1. clipboard_e964938a91cc8d707a351c4257347a6b3.png
    2. clipboard_e10d77e57a4ca2c42826aae8236772a68.png
    3. clipboard_eb989060a0f3b2f48fdf4aa41d8e720dc.png
    4. clipboard_e340a7e763f7ffd6aebfefd5adeae0a36.png
    5. clipboard_e94dc462ae8456292e43ab57d877cb852.png

    Solution

    1. Yes, this could be a polynomial. The degree could be, for example, \(4\).
    2. No, since the graph has a pole.
    3. Yes, this could be a polynomial. A possible degree would be degree \(3\).
    4. No, since the graph has a corner.
    5. No, since \(f(x)\) does not approach \(\infty\) or \(-\infty\) as \(x\) approaches \(\infty\). (In fact \(f(x)\) approaches \(0\) as \(x\) approaches \(\pm\infty\) and we say that the function (or graph) has a horizontal asymptote \(y=0\).)

    Example \(\PageIndex{2}\)

    Identify the graphs of the polynomials in (a), (b) and (c) with the functions (i), (ii), and (iii).

    1. clipboard_ee3a598460a32b28d21e34ae64583002b.png
    2. clipboard_e22abef6946143d5ced70ce85fdf932fb.png
    3. clipboard_e7af8214c34fc2d6b390466e28ab6f35c.png
    1. \(f(x)=-x^3+9x^2-27x+29\)
    2. \(f(x)=-x^2+6x-7\)
    3. \(f(x)=x^4-12x^3+54x^2-108x+83\)

    Solution

    The only odd degree function is (i) and it must therefore correspond to graph (c). For (ii), since the leading coefficient is negative, we know that the function opens downwards, so that it corresponds to graph (a). Finally (iii) opens upwards, since the leading coefficient is positive, so that its graph is (b).

    When graphing a function, we need to make sure to draw the function in a window that expresses all the interesting features of the graph. More precisely, we need to make sure that the graph includes all essential parts of the graph, such as all intercepts (both \(x\)-intercepts and \(y\)-intercept), all roots, all asymptotes (this will be discussed in the next part), and the long range behavior of the function (that is how the function behaves when \(x\) approaches \(\pm \infty\)). We also want to include all extrema (that is all maxima and minima) of the function.

    Example \(\PageIndex{3}\)

    Graph of the given function with the TI-84. Include all extrema and intercepts of the graph in your viewing window.

    1. \(f(x)=-x^3+26x^2-129x+175\)
    2. \(f(x)=.1x^4-2.4x^2+6.4x-35\)
    3. \(f(x)=-5x^3+75x^2-374.998x+630\)
    4. \(f(x)=-.01x^4+.4x^3+.0025x^2-160x+1600\)

    Solution

    1. The graph in the standard window looks as follows:

    clipboard_ea33e22507050e408bcbf4c2ed941cd0c.png

    However, since the function is of degree \(3\), this cannot be the full graph, as \(f(x)\) has to approach \(-\infty\) when \(x\) approaches \(\infty\). Zooming out, and rescaling appropriately for the following setting the following graph.

    clipboard_e954dd63fd7de03984e9775337b6da10a.png

    1. The graph in the standard window is drawn on the left below. After rescaling to \(-10\leq x\leq 10\) and \(-100 \leq y\leq 30\) we obtain the graph on the right.

    clipboard_ea35e87021bab415c0e7d9ec5a64e54f0.png

    1. The graph in the standard window is drawn on the left. Zooming to the interesting part of the graph, we obtain the graph on the right. (Below, we have chosen a window of \(4.94\leq x\leq 5.06\) and \(5.00995 \leq y\leq 5.01005\).)

    clipboard_ebcd0755046300156ff4dc9823b65546a.png

    1. The standard window (see left graph) shows an empty coordinate system without any part of the graph. However, zooming out to \(-30\leq x\leq 40\) and \(-1000 \leq y\leq 4000\), we obtain the middle graph. There is another interesting part of the graph displayed on the right, coming from zooming to the plateau on the right (here shown at \(19.2\leq x\leq 20.8\) and \(0.9 \leq y\leq 1.1\)).

    clipboard_e208ea88ab3c2a5f996348e696fdbd974.png


    This page titled 9.1: Graphs of polynomials is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Thomas Tradler and Holly Carley (New York City College of Technology at CUNY Academic Works) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.