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.

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 $a≠0.$ 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 $a≠0.$ 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±b2−4ac2a.$ Therefore, the x-intercepts have this general form:

$x-intercepts(−b−b2−4ac2a,0) and (−b+b2−4ac2a,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=(−b−b2−4ac2a+−b+b2−4ac2a) ÷2=(−b−b2−4ac−b+b2−4ac2a)÷(21)=−2b2a⋅12=−b2a$

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

$Line of symmetryVertexx=−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)=−x2−2x+3.$

Solution:

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

$f(x)=−x2−2x+3f(0)=−(0)2−2(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)=−x2−2x+3Set f(x)=0.0=−x2−2x+3Multiply both sides by −1.0=x2+2x−3Factor.0=(x+3)(x−1)Set each factor equal to zero.x+3=0orx−1=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)=2−2=−1$

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

$f(x)=−x2−2x+3f(−1)=−(−1)2−2(−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.

$x yPoint−2 3f(−2)=−(−2)2−2(−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)Extra point:(−2,3)$

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.

$b2−4ac=(4)2−4(2)(5)=16−40=−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=2−4+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.

$x yPoints−3 11f(−3)=2(−3)2+4(−3)+5=18−12+5=11(−3,11)−2 5f(−2)=2(−2)2+4(−2)+5=8−8+5=5(−2,5)1 11f(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)Extra points:(−3,11),(−2,5),(1,11)$

Plot the points and sketch the graph.

### Example 3

Graph: $f(x)=x2−2x−1.$

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)=x2−2x−10=x2−2x−1$

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

$x=−b±b2−4ac2a=−(−2)±(−2)2−4(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:

$(1−2,0)and(1+2,0)Exact values(−0.41,0)(2.41,0)Approximate values$

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=x2−2x−1=(1)2−2(1)−1=1−2−1=−2$

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

$x yPoint2 −1f(2)=(2)2−2(2)−1=4−4−1=−1(2,−1)$

To summarize, we have

$y-intercept:(0,−1)x-intercepts:(1−2,0) and (1+2,0)Vertex:(1,−2)Extra point:(2,−1)$

Plot the points and sketch the graph.

Try this! Graph: $g(x)=−4x2+12x−9.$

## 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+24x−35.$

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-value of the vertex.=−242(−4)Substitute a = -4 and b = 24.=−24−8Simplify.=3$

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

$y=−4x2+24x−35Substitute x = 3.=−4(3)2+24(3)−35Simplify.=−36+72−35=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.

### Example 5

Determine the maximum or minimum: $y=4x2−32x+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)Substitute a = 4 and b = -32.=−−328Simplify.=4$

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

$y=4x2−32x+62=4(4)2−32(4)+62=64−128+62=−2$

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

### 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(x−h)2+k.$,

$f(x)=a(x−h)2+k$

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

$y=x2Basic squaring functiony=(x−2)2Horizontal shift right 2 unitsy=(x−2)2+3Vertical shift up 3 units$

Use these translations to sketch the graph,

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

$f(x)=a(x−h)2+k↓↓f(x)=(x−2)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)2−2.$

Solution:

Rewrite the equation as follows before determining h and k.

$f(x)=a(x−h)2+k↓↓f(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+9Add and subtract 4.=x2+4x +4+9 −4Factor.=(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(x−h)2+k↓↓f(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)=2x2−4x+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)=2x2−4x+8=2(x2−2x )+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)=2x2−4x+8=2(x2−2x+__−__)+8Add and subtract 1.=2(x2−2x +1−1)+8 Factor.=2[ (x−1)(x−1)−1 ]+8=2[ (x−1)2−1 ]+8Distribute the 2.=2(x−1)2−2+8=2(x−1)2+6$

In this form, we can easily determine the vertex.

$f(x)=a(x−h)2+k↓↓f(x)=2(x−1)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)=−2x2−12x+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 $a≠0$, 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(x−h)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.

### Part A: The Graph of Quadratic Functions

Does the parabola open upward or downward? Explain.

1. $y=x2−9x+20$

2. $y=x2−12x+32$

3. $y=−2x2+5x+12$

4. $y=−6x2+13x−6$

5. $y=64−x2$

6. $y=−3x+9x2$

Determine the x- and y-intercepts.

1. $y=x2+4x−12$

2. $y=x2−13x+12$

3. $y=2x2+5x−3$

4. $y=3x2−4x−4$

5. $y=−5x2−3x+2$

6. $y=−6x2+11x−4$

7. $y=4x2−27$

8. $y=9x2−50$

9. $y=x2−x+1$

10. $y=x2−6x+4$

Find the vertex and the line of symmetry.

1. $y=−x2+10x−34$

2. $y=−x2−6x+1$

3. $y=−4x2+12x−7$

4. $y=−9x2+6x+2$

5. $y=4x2−1$

6. $y=x2−16$

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

1. $f(x)=x2−2x−8$

2. $f(x)=x2−4x−5$

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

4. $f(x)=−x2−2x+15$

5. $f(x)=x2−10x$

6. $f(x)=x2+8x$

7. $f(x)=x2−9$

8. $f(x)=x2−25$

9. $f(x)=1−x2$

10. $f(x)=4−x2$

11. $f(x)=x2−2x+1$

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

13. $f(x)=−4x2+12x−9$

14. $f(x)=−4x2−4x+3$

15. $f(x)=x2−2$

16. $f(x)=x2−3$

17. $f(x)=−4x2+4x−3$

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

19. $f(x)=x2−2x−2$

20. $f(x)=x2−6x+6$

21. $f(x)=−2x2+6x−3$

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

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

24. $f(x)=−x2+3x−4$

25. $f(x)=−2x2+3$

26. $f(x)=−2x2−1$

27. $f(x)=2x2+4x−3$

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

### Part B: Finding the Maximum or Minimum

Determine the maximum or minimum y-value.

1. $y=−x2−6x+1$

2. $y=−x2−4x+8$

3. $y=25x2−10x+5$

4. $y=16x2−24x+7$

5. $y=−x2$

6. $y=1−9x2$

7. $y=20x−10x2$

8. $y=12x+4x2$

9. $y=3x2−4x−2$

10. $y=6x2−8x+5$

11. $y=x2−5x+1$

12. $y=1−x−x2$

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

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

2. $f(x)=5x2−10x+1$

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

4. $g(x)=−7x2−14x−9$

5. $f(x)=x2+x−1$

6. $f(x)=−x2+3x−2$

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+800x−12,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)=100x−0.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)=450t2−3,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)=125t2−3,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.02x2−20x+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=14w−w2$, 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=−(x−5)2+3$

2. $y=−2(x−1)2+7$

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

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

5. $y=−5(x+8)2−1$

6. $y=(x+2)2−5$

Rewrite in vertex form $y=a(x−h)2+k$ and determine the vertex.

1. $y=x2−14x+24$

2. $y=x2−12x+40$

3. $y=x2+4x−12$

4. $y=x2+6x−1$

5. $y=2x2−12x−3$

6. $y=3x2−6x+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)=x2−1$

2. $f(x)=x2+1$

3. $f(x)=(x−1)2$

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

5. $f(x)=(x−4)2−9$

6. $f(x)=(x−1)2−4$

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

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

9. $f(x)=−5(x−1)2$

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

11. $f(x)=−4(x−1)2−2$

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

13. $f(x)=(x+5)2−15$

14. $f(x)=2(x−5)2−3$

15. $f(x)=−2(x−4)2+22$

16. $f(x)=2(x+3)2−13$

### 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.

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=(x−7)2−25$; vertex: (7, −25)

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

6. $y=2(x−3)2−21$; vertex: (3, −21)

7. $y=−(x−8)2+81$; vertex: (8, 81)