Skip to main content
Mathematics LibreTexts

3.2: Quadratic Equations by Graphing

  • Page ID
    141502
  • \( \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}}\)

    Learning Objectives
    • Identify the number of solutions of a quadratic equation.
    • Solve quadratic equations by graphing.
    • Analyze quadratic functions using a graphing calculator.
    • Solve real-world problems by graphing quadratic functions.

    Introduction

    Solving a quadratic equation means finding the x-values that will make the quadratic function equal zero; in other words, it means finding the points where the graph of the function crosses the x-axis. The solutions to a quadratic equation are also called the roots or zeros of the function, and in this section we'll learn how to find them by graphing the function.

    Identify the Number of Solutions of a Quadratic Equation

    Three different situations can occur when graphing a quadratic function:

    Case 1: The parabola crosses the \(x\)-axis at two points. An example of this is \(y=x^2+x-6\) :

    undefined
    Figure \(\PageIndex{1}\)

    Looking at the graph, we see that the parabola crosses the \(x\)-axis at \(x=-3\) and \(x=2\).

    We can also find the solutions to the equation \(x^2+x-6=0\) by setting \(y=0\). We solve the equation by factoring:
    \[
    (x+3)(x-2)=0 \text {, so } x=-3 \text { or } x=2 \text {. }
    \]
    When the graph of a quadratic function crosses the \(x\)-axis at two points, we get two distinct solutions to the quadratic equation.

    Case 2: The parabola touches the \(x\)-axis at one point. An example of this is \(y=x^2-2 x+1\) :

    undefined
    Figure \(\PageIndex{2}\)

    We can see that the graph touches the \(x\)-axis at \(x=1\).

    We can also solve this equation by factoring. If we set \(y=0\) and factor, we obtain \((x-1)^2=0\), so \(x=1\). Since the quadratic function is a perfect square, we get only one solution for the equation-it's just the same solution repeated twice over.

    When the graph of a quadratic function touches the \(x\)-axis at one point, the quadratic equation has one solution and the solution is called a double root.

    Case 3: The parabola does not cross or touch the \(x\)-axis. An example of this is \(y=x^2+4\) :

    undefined
    Figure \(\PageIndex{3}\)

    If we set \(y=0\) we get \(x^2+4=0\). This quadratic polynomial does not factor.

    When the graph of a quadratic function does not cross or touch the \(x-\) axis, the quadratic equation has no real solutions.

    Solve Quadratic Equations by Graphing

    So far we've found the solutions to quadratic equations using factoring. However, in real life very few functions factor easily. As you just saw, graphing a function gives a lot of information about the solutions. We can find exact or approximate solutions to a quadratic equation by graphing the function associated with it.

    Example \(\PageIndex{1}\)

    Find the solutions to the following quadratic equations by graphing.
    a) \(-x^2+3=0\)
    b) \(2 x^2+5 x-7=0\)
    c) \(-x^2+x-3=0\)
    d) \(y=-x^2+4 x-4\)

    Solution

    Since we can't factor any of these equations, we won't be able to graph them using intercept form (if we could, we wouldn't need to use the graphs to find the intercepts!) We'll just have to make a table of arbitrary values to graph each one.

    a)

    x

    \(y=-x^2+3\)

    -3

    \(y=-(-3)^2+3=-6\)

    -2

    \(y=-(-2)^2+3=-1\)

    -1

    \(y=-(-1)^2+3=2\)

    0

    \(y=-(0)^2+3=3\)

    1

    \(y=-(1)^2+3=2\)

    2

    \(y=-(2)^2+3=-1\)

    3

    \(y=-(3)^2+3=-6\)

    We plot the points and get the following graph:

    undefined
    Figure \(\PageIndex{4}\)

    From the graph we can read that the x-intercepts are approximately x=1.7 and x=−1.7. These are the solutions to the equation.

    b)

    X

    \(y=2 x^2+5 x-7\)

    -5

    \(y=2(-5)^2+5(-5)-7=18\)

    -4

    \(y=2(-4)^2+5(-4)-7=5\)

    -3

    \(y=2(-3)^2+5(-3)-7=-4\)

    -2

    \(y=2(-2)^2+5(-2)-7=-9\)

    -1

    \(y=2(-1)^2+5(-1)-7=-10\)

    0

    \(y=2(0)^2+5(0)-7=-7\)

    1

    \(y=2(1)^2+5(1)-7=0\)

    2

    \(y=2(2)^2+5(2)-7=11\)

    3

    \(y=2(3)^2+5(3)-7=26\)

    We plot the points and get the following graph:

    undefined
    Figure \(\PageIndex{5}\)

    From the graph we can read that the x-intercepts are x=1 and x=−3.5. These are the solutions to the equation.

    c)

    X

    \(y=-x^2+x-3\)

    -3

    \(y=-(-3)^2+(-3)-3=-15\)

    -2

    \(y=-(-2)^2+(-2)-3=-9\)

    -1

    \(y=-(-1)^2+(-1)-3=-5\)

    0

    \(y=-(0)^2+(0)-3=-3\)

    1

    \(y=-(1)^2+(1)-3=-3\)

    2

    \(y=-(2)^2+(2)-3=-5\)

    3

    \(y=-(3)^2+(3)-3=-9\)

    We plot the points and get the following graph:

    undefined
    Figure \(\PageIndex{6}\)

    The graph curves up toward the x-axis and then back down without ever reaching it. This means that the graph never intercepts the x-axis, and so the corresponding equation has no real solutions.

    d)

    x

    \(y=-x^2+4 x-4\)

    -3

    \(y=-(-3)^2+4(-3)-4=-25\)

    -2

    \( y=-(-2)^2+4(-2)-4=-16\)

    -1

    \(y=-(-1)^2+4(-1)-4=-9\)

    0

    \(y=-(0)^2+4(0)-4=-4\)

    1

    \(y=-(1)^2+4(1)-4=-1\)

    2

    \(y=-(2)^2+4(2)-4=0\)

    3

    \(y=-(3)^2+4(3)-4=-1\)

    4

    \(y=-(4)^2+4(4)-4=-4\)

    5

    \(y=-(5)^2+4(5)-4=-9\)

    Here is the graph of this function:

    undefined
    Figure \(\PageIndex{7}\)

    The graph just touches the x-axis at x=2, so the function has a double root there. x=2 is the only solution to the equation.

    Analyze Quadratic Functions Using a Graphing Calculator

    A graphing calculator is very useful for graphing quadratic functions. Once the function is graphed, we can use the calculator to find important information such as the roots or the vertex of the function.

    Example \(\PageIndex{2}\)

    Use a graphing calculator to analyze the graph of \(y=x^2−20x+35\).

    Solution
    1. Graph the function.

    Press the [Y=] button and enter " \(x^2−20x+35\) " next to \([Y_1=]\). Press the [GRAPH] button. This is the plot you should see:

    undefined
    Figure \(\PageIndex{8}\)

    [Figure 8]

    If this is not what you see, press the [WINDOW] button to change the window size. For the graph shown here, the x-values should range from -10 to 30 and the y-values from -80 to 50 .

    1. Find the roots.

    There are at least three ways to find the roots:

    Use [TRACE] to scroll over the x-intercepts. The approximate value of the roots will be shown on the screen. You can improve your estimate by zooming in.

    OR

    Use [TABLE] and scroll through the values until you find values of y equal to zero. You can change the accuracy of the solution by setting the step size with the [TBLSET] function.

    OR

    Use [2nd] [TRACE] (i.e. 'calc' button) and use option 'zero'.

    Move the cursor to the left of one of the roots and press [ENTER]

    Move the cursor to the right of the same root and press [ENTER].

    Move the cursor close to the root and press [ENTER].

    The screen will show the value of the root. Repeat the procedure for the other root.

    Whichever technique you use, you should get about x=1.9 and x=18 for the two roots.

    3. Find the vertex.

    There are three ways to find the vertex:

    Use [TRACE] to scroll over the highest or lowest point on the graph. The approximate value of the roots will be shown on the screen.

    OR

    Use [TABLE] and scroll through the values until you find values the lowest or highest value of y. You can change the accuracy of the solution by setting the step size with the [TBLSET] function.

    OR

    Use [2nd] [TRACE] and use the option 'maximum' if the vertex is a maximum or 'minimum' if the vertex is a minimum.

    Move the cursor to the left of the vertex and press [ENTER].

    Move the cursor to the right of the vertex and press [ENTER].

    Move the cursor close to the vertex and press [ENTER].

    The screen will show the x - and y-values of the vertex.

    Whichever method you use, you should find that the vertex is at (10,−65).

    Solve Real-World Problems by Graphing Quadratic Functions

    Here's a real-world problem we can solve using the graphing methods we've learned.

    Example \(\PageIndex{3}\)

    Andrew is an avid archer. He launches an arrow that takes a parabolic path. The equation of the height of the ball with respect to time is y=−4.9t^2+48t, where y is the height of the arrow in meters and t is the time in seconds since Andrew shot the arrow. Find how long it takes the arrow to come back to the ground.

    Solution

    Let's graph the equation by making a table of values.

    x

    \(y=-4.9 t^2+48 t\)

    0

    \(y=-4.9(0)^2+48(0)=0\)

    1

    \(y=-4.9(1)^2+48(1)=43.1\)

    2

    \(y=-4.9(2)^2+48(2)=76.4\)

    3

    \(y=-4.9(3)^2+48(3)=99.9\)

    4

    \(y=-4.9(4)^2+48(4)=113.6\)

    5

    \(y=-4.9(5)^2+48(5)=117.6\)

    6

    \(y=-4.9(6)^2+48(6)=111.6\)

    7

    \(y=-4.9(7)^2+48(7)=95.9\)

    8

    \(y=-4.9(8)^2+48(8)=70.4\)

    9

    \(y=-4.9(9)^2+48(9)=35.1\)

    10

    \(y=-4.9(10)^2+48(10)=-10\)

    Here's the graph of the function:

    undefined
    Figure \(\PageIndex{9}\)

    The roots of the function are approximately x=0sec and x=9.8sec. The first root tells us that the height of the arrow was 0 meters when Andrew first shot it. The second root says that it takes approximately 9.8 seconds for the arrow to return to the ground.

    Further Practice

    Now that you've learned how to solve quadratic equations by graphing them, you can sharpen your skills even more by learning how to find an equation from the graph alone. Go to the page linked in the previous section, http://www.analyzemath.com/quadraticg/quadraticg.htm (http://www.analyzemath.com/quadraticg/quadraticg.htm), and scroll down to section E. Read the example there to learn how to find the equation of a quadratic function by reading off a few key values from the graph; then click the "Click here to start" button to try a problem yourself. The "New graph" button will give you a new problem when you finish the first one.

    Review Questions

    Find the solutions of the following equations by graphing.
    1. \(x^2+3 x+6=0\)
    2. \(-2 x^2+x+4=0\)
    3. \(x^2-9=0\)
    4. \(x^2+6 x+9=0\)
    5. \(10 x-3 x^2=0\)
    6. \(\frac{1}{2} x^2-2 x+3=0\)

    Find the roots of the following quadratic functions by graphing.
    7. \(y=-3 x^2+4 x-1\)
    8. \(y=9-4 x^2\)
    9. \(y=x^2+7 x+2\)
    10. \(y=-x^2-10 x-25\)
    11. \(y=2 x^2-3 x\)
    12. \(y=x^2-2 x+5\)

    Using your graphing calculator, find the roots and the vertex of each polynomial.
    13. \(y=x^2+12 x+5\)
    14. \(y=x^2+3 x+6\)
    15. \(y=-x^2-3 x+9\)
    16. \(y=-x^2+4 x-12\)
    17. \(y=2 x^2-4 x+8\)
    18. \(y=-5 x^2-3 x+2\)

    19. Graph the equations \(y=2 x^2-4 x+8\) and \(y=x^2-2 x+4\) on the same screen. Find their roots and vertices.
    a. What is the same about the graphs? What is different?
    b. How are the two equations related to each other? (Hint: factor them.)
    c. What might be another equation with the same roots? Graph it and see.

    20. Graph the equations \(y=x^2-2 x+2\) and \(y=x^2-2 x+4\) on the same screen. Find their roots and vertices.
    a. What is the same about the graphs? What is different?
    b. How are the two equations related to each other?

    21. Phillip throws a ball and it takes a parabolic path. The equation of the height of the ball with respect to time is \(y=-16 t^2+60 t\), where \(y\) is the height in feet and \(t\) is the time in seconds. Find how long it takes the ball to come back to the ground.

    22. Use your graphing calculator to solve Ex. 3. You should get the same answers as we did graphing by hand, but a lot quicker!


    3.2: Quadratic Equations by Graphing is shared under a CK-12 license and was authored, remixed, and/or curated by LibreTexts.

    CK-12 Foundation
    LICENSED UNDER
    CK-12 Foundation is licensed under CK-12 Curriculum Materials License
    • Was this article helpful?