This is “Quadratic Functions and Their Graphs”, section 6.4 from the book Advanced Algebra (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

6.4 Quadratic Functions and Their Graphs

Learning Objectives

  1. Graph a parabola.
  2. Find the intercepts and vertex of a parabola.
  3. Find the maximum and minimum y-value.
  4. Find the vertex of a parabola by completing the square.

The Graph of a Quadratic Function

A quadratic function is a polynomial function of degree 2 which can be written in the general form,

f(x)=ax2+bx+c

Here a, b and c represent real numbers where a0. The squaring function f(x)=x2 is a quadratic function whose graph follows.

This general curved shape is called a parabolaThe U-shaped graph of any quadratic function defined by f(x)=ax2+bx+c, where a, b, and c are real numbers and a0. and is shared by the graphs of all quadratic functions. Note that the graph is indeed a function as it passes the vertical line test. Furthermore, the domain of this function consists of the set of all real numbers (,) and the range consists of the set of nonnegative numbers [0,).

When graphing parabolas, we want to include certain special points in the graph. The y-intercept is the point where the graph intersects the y-axis. The x-intercepts are the points where the graph intersects the x-axis. The vertexThe point that defines the minimum or maximum of a parabola. is the point that defines the minimum or maximum of the graph. Lastly, the line of symmetryThe vertical line through the vertex, x=b2a, about which the parabola is symmetric. (also called the axis of symmetryA term used when referencing the line of symmetry.) is the vertical line through the vertex, about which the parabola is symmetric.

For any parabola, we will find the vertex and y-intercept. In addition, if the x-intercepts exist, then we will want to determine those as well. Guessing at the x-values of these special points is not practical; therefore, we will develop techniques that will facilitate finding them. Many of these techniques will be used extensively as we progress in our study of algebra.

Given a quadratic function f(x)=ax2+bx+c, find the y-intercept by evaluating the function where x=0. In general, f(0)=a(0)2+b(0)+c=c, and we have

y-intercept(0,c)

Next, recall that the x-intercepts, if they exist, can be found by setting f(x)=0. Doing this, we have a2+bx+c=0, which has general solutions given by the quadratic formula, x=b±b24ac2a. Therefore, the x-intercepts have this general form:

x-intercepts(bb24ac2a,0)and(b+b24ac2a,0)

Using the fact that a parabola is symmetric, we can determine the vertical line of symmetry using the x-intercepts. To do this, we find the x-value midway between the x-intercepts by taking an average as follows:

x=(bb24ac2a+b+b24ac2a)÷2=(bb24acb+b24ac2a)÷(21)=2b2a12=b2a

Therefore, the line of symmetry is the vertical line x=b2a. We can use the line of symmetry to find the the vertex.

LineofsymmetryVertexx=b2a(b2a,f(b2a))

Generally three points determine a parabola. However, in this section we will find five points so that we can get a better approximation of the general shape. The steps for graphing a parabola are outlined in the following example.

Example 1

Graph: f(x)=x22x+3.

Solution:

Step 1: Determine the y-intercept. To do this, set x=0 and find f(0).

f(x)=x22x+3f(0)=(0)22(0)+3=3

The y-intercept is (0,3).

Step 2: Determine the x-intercepts if any. To do this, set f(x)=0 and solve for x.

f(x)=x22x+3Setf(x)=0.0=x22x+3Multiplybothsidesby1.0=x2+2x3Factor.0=(x+3)(x1)Seteachfactorequaltozero.x+3=0orx1=0x=3x=1

Here where f(x)=0, we obtain two solutions. Hence, there are two x-intercepts, (3,0) and (1,0).

Step 3: Determine the vertex. One way to do this is to first use x=b2a to find the x-value of the vertex and then substitute this value in the function to find the corresponding y-value. In this example, a=1 and b=2.

x=b2a=(2)2(1)=22=1

Substitute −1 into the original function to find the corresponding y-value.

f(x)=x22x+3f(1)=(1)22(1)+3=1+2+3=4

The vertex is (1,4).

Step 4: Determine extra points so that we have at least five points to plot. Ensure a good sampling on either side of the line of symmetry. In this example, one other point will suffice. Choose x=2 and find the corresponding y-value.

xyPoint23f(2)=(2)22(2)+3=4+4+3=3(2,3)

Our fifth point is (2,3).

Step 5: Plot the points and sketch the graph. To recap, the points that we have found are

y-intercept:(0,3)x-intercepts:(3,0) and (1,0)Vertex:(1,4)Extrapoint:(2,3)

Answer:

The parabola opens downward. In general, use the leading coefficient to determine if the parabola opens upward or downward. If the leading coefficient is negative, as in the previous example, then the parabola opens downward. If the leading coefficient is positive, then the parabola opens upward.

All quadratic functions of the form f(x)=ax2+bx+c have parabolic graphs with y-intercept (0,c). However, not all parabolas have x-intercepts.

Example 2

Graph: f(x)=2x2+4x+5.

Solution:

Because the leading coefficient 2 is positive, we note that the parabola opens upward. Here c = 5 and the y-intercept is (0, 5). To find the x-intercepts, set f(x)=0.

f(x)=2x2+4x+50=2x2+4x+5

In this case, a = 2, b = 4, and c = 5. Use the discriminant to determine the number and type of solutions.

b24ac=(4)24(2)(5)=1640=24

Since the discriminant is negative, we conclude that there are no real solutions. Because there are no real solutions, there are no x-intercepts. Next, we determine the x-value of the vertex.

x=b2a=(4)2(2)=44=1

Given that the x-value of the vertex is −1, substitute −1 into the original equation to find the corresponding y-value.

f(x)=2x2+4x+5f(1)=2(1)2+4(1)+5=24+5=3

The vertex is (−1, 3). So far, we have only two points. To determine three more, choose some x-values on either side of the line of symmetry, x = −1. Here we choose x-values −3, −2, and 1.

xyPoints311f(3)=2(3)2+4(3)+5=1812+5=11(3,11)25f(2)=2(2)2+4(2)+5=88+5=5(2,5)111f(1)=2(1)2+4(1)+5=2+4+5=11(1,11)

To summarize, we have

y-intercept:(0,5)x-intercepts:NoneVertex:(1,3)Extrapoints:(3,11),(2,5),(1,11)

Plot the points and sketch the graph.

Answer:

Example 3

Graph: f(x)=x22x1.

Solution:

Since a = 1, the parabola opens upward. Furthermore, c = −1, so the y-intercept is (0,1). To find the x-intercepts, set f(x)=0.

f(x)=x22x10=x22x1

In this case, solve using the quadratic formula with a = 1, b = −2, and c = −1.

x=b±b24ac2a=(2)±(2)24(1)(1)2(1)=2±82=2±222=2(1±2)2=1±2

Here we obtain two real solutions for x, and thus there are two x-intercepts:

(12,0)and(1+2,0)Exactvalues(0.41,0)(2.41,0)Approximatevalues

Approximating the x-intercepts using a calculator will help us plot the points. However, we will present the exact x-intercepts on the graph. Next, find the vertex.

x=b2a=(2)2(1)=22=1

Given that the x-value of the vertex is 1, substitute into the original equation to find the corresponding y-value.

y=x22x1=(1)22(1)1=121=2

The vertex is (1, −2). We need one more point.

xyPoint21f(2)=(2)22(2)1=441=1(2,1)

To summarize, we have

y-intercept:(0,1)x-intercepts:(12,0)and(1+2,0)Vertex:(1,2)Extrapoint:(2,1)

Plot the points and sketch the graph.

Answer:

Try this! Graph: g(x)=4x2+12x9.

Answer:

Finding the Maximum or Minimum

It is often useful to find the maximum and/or minimum values of functions that model real-life applications. To find these important values given a quadratic function, we use the vertex. If the leading coefficient a is positive, then the parabola opens upward and there will be a minimum y-value. If the leading coefficient a is negative, then the parabola opens downward and there will be a maximum y-value.

Example 4

Determine the maximum or minimum: y=4x2+24x35.

Solution:

Since a = −4, we know that the parabola opens downward and there will be a maximum y-value. To find it, first find the x-value of the vertex.

x=b2ax-valueofthevertex.=242(4)Substitutea=-4andb=24.=248Simplify.=3

The x-value of the vertex is 3. Substitute this value into the original equation to find the corresponding y-value.

y=4x2+24x35Substitutex=3.=4(3)2+24(3)35Simplify.=36+7235=1

The vertex is (3, 1). Therefore, the maximum y-value is 1, which occurs where x = 3, as illustrated below:

Note: The graph is not required to answer this question.

Answer: The maximum is 1.

Example 5

Determine the maximum or minimum: y=4x232x+62.

Solution:

Since a = 4, the parabola opens upward and there is a minimum y-value. Begin by finding the x-value of the vertex.

x=b2a=322(4)Substitutea=4andb=-32.=328Simplify.=4

Substitute x = 4 into the original equation to find the corresponding y-value.

y=4x232x+62=4(4)232(4)+62=64128+62=2

The vertex is (4, −2). Therefore, the minimum y-value of −2 occurs where x = 4, as illustrated below:

Answer: The minimum is −2.

Example 6

The height in feet of a projectile is given by the function h(t)=16t2+72t, where t represents the time in seconds after launch. What is the maximum height reached by the projectile?

Solution:

Here a=16, and the parabola opens downward. Therefore, the y-value of the vertex determines the maximum height. Begin by finding the time at which the vertex occurs.

t=b2a=722(16)=7232=94

The maximum height will occur in 94 seconds (or 214 seconds). Substitute this time into the function to determine the maximum height attained.

h(94)=16(94)2+72(94)=16(8116)+72(94)=81+162=81

Answer: The maximum height of the projectile is 81 feet.

Finding the Vertex by Completing the Square

In this section, we demonstrate an alternate approach for finding the vertex. Any quadratic function f(x)=ax2+bx+c can be rewritten in vertex formA quadratic function written in the form f(x)=a(xh)2+k.,

f(x)=a(xh)2+k

In this form, the vertex is (h,k). To see that this is the case, consider graphing f(x)=(x2)2+3 using the transformations.

y=x2Basicsquaringfunctiony=(x2)2Horizontalshiftright2unitsy=(x2)2+3Verticalshiftup3units

Use these translations to sketch the graph,

Here we can see that the vertex is (2, 3).

f(x)=a(xh)2+kf(x)=(x2)2+3

When the equation is in this form, we can read the vertex directly from it.

Example 7

Determine the vertex: f(x)=2(x+3)22.

Solution:

Rewrite the equation as follows before determining h and k.

f(x)=a(xh)2+kf(x)=2[x(3)]2+(2)

Here h = −3 and k = −2.

Answer: The vertex is (−3, −2).

Often the equation is not given in vertex form. To obtain this form, complete the square.

Example 8

Rewrite in vertex form and determine the vertex: f(x)=x2+4x+9.

Solution:

Begin by making room for the constant term that completes the square.

f(x)=x2+4x+9=x2+4x+___+9___

The idea is to add and subtract the value that completes the square, (b2)2, and then factor. In this case, add and subtract (42)2=(2)2=4.

f(x)=x2+4x+9Addandsubtract4.=x2+4x+4+94Factor.=(x2+4x+4)+5.=(x+3)(x+2)+5=(x+2)2+5

Adding and subtracting the same value within an expression does not change it. Doing so is equivalent to adding 0. Once the equation is in this form, we can easily determine the vertex.

f(x)=a(xh)2+kf(x)=(x(2))2+5

Here h = −2 and k = 5.

Answer: The vertex is (−2, 5).

If there is a leading coefficient other than 1, then we must first factor out the leading coefficient from the first two terms of the trinomial.

Example 9

Rewrite in vertex form and determine the vertex: f(x)=2x24x+8.

Solution:

Since a = 2, factor this out of the first two terms in order to complete the square. Leave room inside the parentheses to add and subtract the value that completes the square.

f(x)=2x24x+8=2(x22x)+8

Now use −2 to determine the value that completes the square. In this case, (22)2=(1)2=1. Add and subtract 1 and factor as follows:

f(x)=2x24x+8=2(x22x+____)+8Addandsubtract1.=2(x22x+11)+8Factor.=2[ (x1)(x1)1 ]+8=2[ (x1)21 ]+8Distributethe2.=2(x1)22+8=2(x1)2+6

In this form, we can easily determine the vertex.

f(x)=a(xh)2+kf(x)=2(x1)2+6

Here h = 1 and k = 6.

Answer: The vertex is (1, 6).

Try this! Rewrite in vertex form and determine the vertex: f(x)=2x212x+3.

Answer: f(x)=2(x+3)2+21; vertex: (3,21)

Key Takeaways

  • The graph of any quadratic function f(x)=ax2+bx+c, where a, b, and c are real numbers and a0, is called a parabola.
  • When graphing a parabola always find the vertex and the y-intercept. If the x-intercepts exist, find those as well. Also, be sure to find ordered pair solutions on either side of the line of symmetry, x=b2a.
  • Use the leading coefficient, a, to determine if a parabola opens upward or downward. If a is positive, then it opens upward. If a is negative, then it opens downward.
  • The vertex of any parabola has an x-value equal to b2a. After finding the x-value of the vertex, substitute it into the original equation to find the corresponding y-value. This y-value is a maximum if the parabola opens downward, and it is a minimum if the parabola opens upward.
  • The domain of a parabola opening upward or downward consists of all real numbers. The range is bounded by the y-value of the vertex.
  • An alternate approach to finding the vertex is to rewrite the quadratic function in the form f(x)=a(xh)2+k. When in this form, the vertex is (h,k) and can be read directly from the equation. To obtain this form, take f(x)=ax2+bx+c and complete the square.

Topic Exercises

    Part A: The Graph of Quadratic Functions

      Does the parabola open upward or downward? Explain.

    1. y=x29x+20

    2. y=x212x+32

    3. y=2x2+5x+12

    4. y=6x2+13x6

    5. y=64x2

    6. y=3x+9x2

      Determine the x- and y-intercepts.

    1. y=x2+4x12

    2. y=x213x+12

    3. y=2x2+5x3

    4. y=3x24x4

    5. y=5x23x+2

    6. y=6x2+11x4

    7. y=4x227

    8. y=9x250

    9. y=x2x+1

    10. y=x26x+4

      Find the vertex and the line of symmetry.

    1. y=x2+10x34

    2. y=x26x+1

    3. y=4x2+12x7

    4. y=9x2+6x+2

    5. y=4x21

    6. y=x216

      Graph. Find the vertex and the y-intercept. In addition, find the x-intercepts if they exist.

    1. f(x)=x22x8

    2. f(x)=x24x5

    3. f(x)=x2+4x+12

    4. f(x)=x22x+15

    5. f(x)=x210x

    6. f(x)=x2+8x

    7. f(x)=x29

    8. f(x)=x225

    9. f(x)=1x2

    10. f(x)=4x2

    11. f(x)=x22x+1

    12. f(x)=x2+4x+4

    13. f(x)=4x2+12x9

    14. f(x)=4x24x+3

    15. f(x)=x22

    16. f(x)=x23

    17. f(x)=4x2+4x3

    18. f(x)=4x2+4x+3

    19. f(x)=x22x2

    20. f(x)=x26x+6

    21. f(x)=2x2+6x3

    22. f(x)=4x2+4x+1

    23. f(x)=x2+3x+4

    24. f(x)=x2+3x4

    25. f(x)=2x2+3

    26. f(x)=2x21

    27. f(x)=2x2+4x3

    28. f(x)=3x2+2x2

    Part B: Finding the Maximum or Minimum

      Determine the maximum or minimum y-value.

    1. y=x26x+1

    2. y=x24x+8

    3. y=25x210x+5

    4. y=16x224x+7

    5. y=x2

    6. y=19x2

    7. y=20x10x2

    8. y=12x+4x2

    9. y=3x24x2

    10. y=6x28x+5

    11. y=x25x+1

    12. y=1xx2

      Given the following quadratic functions, determine the domain and range.

    1. f(x)=3x2+30x+50

    2. f(x)=5x210x+1

    3. g(x)=2x2+4x+1

    4. g(x)=7x214x9

    5. f(x)=x2+x1

    6. f(x)=x2+3x2

    7. The height in feet reached by a baseball tossed upward at a speed of 48 feet per second from the ground is given by the function h(t)=16t2+48t, where t represents the time in seconds after the ball is thrown. What is the baseball’s maximum height and how long does it take to attain that height?

    8. The height in feet of a projectile launched straight up from a mound is given by the function h(t)=16t2+96t+4, where t represents seconds after launch. What is the maximum height?

    9. The profit in dollars generated by producing and selling x custom lamps is given by the function P(x)=10x2+800x12,000. What is the maximum profit?

    10. The profit in dollars generated from producing and selling a particular item is modeled by the formula P(x)=100x0.0025x2, where x represents the number of units produced and sold. What number of units must be produced and sold to maximize revenue?

    11. The average number of hits to a radio station Web site is modeled by the formula f(x)=450t23,600t+8,000, where t represents the number of hours since 8:00 a.m. At what hour of the day is the number of hits to the Web site at a minimum?

    12. The value in dollars of a new car is modeled by the formula V(t)=125t23,000t+22,000, where t represents the number of years since it was purchased. Determine the minimum value of the car.

    13. The daily production cost in dollars of a textile manufacturing company producing custom uniforms is modeled by the formula C(x)=0.02x220x+10,000, where x represents the number of uniforms produced.

      1. How many uniforms should be produced to minimize the daily production costs?
      2. What is the minimum daily production cost?
    14. The area in square feet of a certain rectangular pen is given by the formula A=14ww2, where w represents the width in feet. Determine the width that produces the maximum area.

    Part C: Finding the Vertex by Completing the Square

      Determine the vertex.

    1. y=(x5)2+3

    2. y=2(x1)2+7

    3. y=5(x+1)2+6

    4. y=3(x+4)2+10

    5. y=5(x+8)21

    6. y=(x+2)25

      Rewrite in vertex form y=a(xh)2+k and determine the vertex.

    1. y=x214x+24

    2. y=x212x+40

    3. y=x2+4x12

    4. y=x2+6x1

    5. y=2x212x3

    6. y=3x26x+5

    7. y=x2+16x+17

    8. y=x2+10x

      Graph. Find the vertex and the y-intercept. In addition, find the x-intercepts if they exist.

    1. f(x)=x21

    2. f(x)=x2+1

    3. f(x)=(x1)2

    4. f(x)=(x+1)2

    5. f(x)=(x4)29

    6. f(x)=(x1)24

    7. f(x)=2(x+1)2+8

    8. f(x)=3(x+2)2+12

    9. f(x)=5(x1)2

    10. f(x)=(x+2)2

    11. f(x)=4(x1)22

    12. f(x)=9(x+1)2+2

    13. f(x)=(x+5)215

    14. f(x)=2(x5)23

    15. f(x)=2(x4)2+22

    16. f(x)=2(x+3)213

    Part D: Discussion Board

    1. Write down your plan for graphing a parabola on an exam. What will you be looking for and how will you present your answer? Share your plan on the discussion board.

    2. Why is any parabola that opens upward or downward a function? Explain to a classmate how to determine the domain and range.

    3. Research and discuss ways of finding a quadratic function that has a graph passing through any three given points. Share a list of steps as well as an example of how to do this.

Answers

  1. Upward

  2. Downward

  3. Downward

  4. x-intercepts: (−6, 0), (2, 0);y-intercept: (0, −12)

  5. x-intercepts: (−3, 0), (12,0); y-intercept: (0, −3)

  6. x-intercepts: (−1, 0), (25,0); y-intercept: (0, 2)

  7. x-intercepts: (332,0), (332,0); y-intercept: (0, −27)

  8. x-intercepts: none; y-intercept: (0, 1)

  9. Vertex: (5, −9); line of symmetry: x=5

  10. Vertex: (32,2); line of symmetry: x=32

  11. Vertex: (0, −1); line of symmetry: x=0

  1. Maximum: y = 10

  2. Minimum: y = 4

  3. Maximum: y = 0

  4. Maximum: y = 10

  5. Minimum: y=103

  6. Minimum: y=214

  7. Domain: (,); range: [25,)

  8. Domain: (,); range: (,3]

  9. Domain: (,); range: [54,)

  10. The maximum height of 36 feet occurs after 1.5 seconds.

  11. $4,000

  12. 12:00 p.m.

    1. 500 uniforms
    2. $5,000
  1. (5, 3)

  2. (−1, 6)

  3. (−8, −1)

  4. y=(x7)225; vertex: (7, −25)

  5. y=(x+2)216; vertex: (−2, −16)

  6. y=2(x3)221; vertex: (3, −21)

  7. y=(x8)2+81; vertex: (8, 81)

  1. Answer may vary

  2. Answer may vary