Login
📚 Precalculus
Chapters ▾

2.3 Quadratic Functions

You may recall studying quadratic equations in Intermediate Algebra. In this section, we review those equations in the context of our next family of functions: the quadratic functions.

The most basic quadratic function is f ( x ) = x 2 , whose graph appears below. Its shape should look familiar from Intermediate Algebra – it is called a parabola. The point ( 0 , 0 ) is called the vertex of the parabola. In this case, the vertex is a relative minimum and is also the where the absolute minimum value of f can be found.

Coordinate-plane figure.
Figure 2.54 f ( x ) = x 2

Much like many of the absolute value functions in Section, knowing the graph of f ( x ) = x 2 enables us to graph an entire family of quadratic functions using transformations.

A few remarks about Example Example 1 are in order. First note that neither the formula given for g ( x ) nor the one given for h ( x ) match the form given in Definition. We could, of course, convert both g ( x ) and h ( x ) into that form by expanding and collecting like terms. Doing so, we find g ( x ) = ( x + 2 ) 2 3 = x 2 + 4 x + 1 and h ( x ) = 2 ( x 3 ) 2 + 1 = 2 x 2 + 12 x 17 . While these `simplified' formulas for g ( x ) and h ( x ) satisfy Definition, they do not lend themselves to graphing easily. For that reason, the form of g and h presented in Example Example 2 is given a special name, which we list below, along with the form presented in Definition.

It is important to note at this stage that we have no guarantees that every quadratic function can be written in standard form. This is actually true, and we prove this later in the exposition, but for now we celebrate the advantages of the standard form, starting with the following theorem.

We can readily verify the formula given Theorem with the two functions given in Example Example 1. After a (slight) rewrite, g ( x ) = ( x + 2 ) 2 3 = ( x ( 2 ) ) 2 + ( 3 ) , and we identify h = 2 and k = 3 . Sure enough, we found the vertex of the graph of y = g ( x ) to be ( 2 , 3 ) . For h ( x ) = 2 ( x 3 ) 2 + 1 , no rewrite is needed. We can directly identify h = 3 and k = 1 and, sure enough, we found the vertex of the graph of y = h ( x ) to be ( 3 , 1 ) .

To see why the formula in Theorem produces the vertex, consider the graph of the equation y = a ( x h ) 2 + k . When we substitute x = h , we get y = k , so ( h , k ) is on the graph. If x h , then x h 0 so ( x h ) 2 is a positive number. If a > 0 , then a ( x h ) 2 is positive, thus y = a ( x h ) 2 + k is always a number larger than k . This means that when a > 0 , ( h , k ) is the lowest point on the graph and thus the parabola must open upwards, making ( h , k ) the vertex. A similar argument shows that if a < 0 , ( h , k ) is the highest point on the graph, so the parabola opens downwards, and ( h , k ) is also the vertex in this case.

Alternatively, we can apply the machinery in Section. Since the vertex of y = x 2 is ( 0 , 0 ) , we can determine the vertex of y = a ( x h ) 2 + k by determining the final destination of ( 0 , 0 ) as it is moved through each transformation. To obtain the formula f ( x ) = a ( x h ) 2 + k , we start with g ( x ) = x 2 and first define g 1 ( x ) = a g ( x ) = a x 2 . This is results in a vertical scaling and/or reflection.3 Since we multiply the output by a , we multiply the y -coordinates on the graph of g by a , so the point ( 0 , 0 ) remains ( 0 , 0 ) and remains the vertex. Next, we define g 2 ( x ) = g 1 ( x h ) = a ( x h ) 2 . This induces a horizontal shift right or left h units4 moves the vertex, in either case, to ( h , 0 ) . Finally, f ( x ) = g 2 ( x ) + k = a ( x h ) 2 + k which effects a vertical shift up or down k units5 resulting in the vertex moving from ( h , 0 ) to ( h , k ) .

In addition to verifying Theorem, the arguments in the two preceding paragraphs have also shown us the role of the number a in the graphs of quadratic functions. The graph of y = a ( x h ) 2 + k is a parabola `opening upwards' if a > 0 , and `opening downwards' if a < 0 . Moreover, the symmetry enjoyed by the graph of y = x 2 about the y -axis is translated to a symmetry about the vertical line x = h which is the vertical line through the vertex.6 This line is called the axis of symmetry of the parabola and is dashed in the figures below.

Coordinate-plane figure.
Figure 2.59
Coordinate-plane figure.
Figure 2.60

Graphs of y = a ( x h ) 2 + k .

Without a doubt, the standard form of a quadratic function, coupled with the machinery in Section, allows us to list the attributes of the graphs of such functions quickly and elegantly. What remains to be shown, however, is the fact that every quadratic function can be written in standard form. To convert a quadratic function given in general form into standard form, we employ the ancient rite of `Completing the Square'. We remind the reader how this is done in our next example.

With Example Example 2 fresh in our minds, we are now in a position to show that every quadratic function can be written in standard form. We begin with f ( x ) = a x 2 + b x + c , assume a 0 , and complete the square in complete generality.

f ( x ) = a x 2 + b x + c = a ( x 2 + b a x ) + c (Factor out coefficient of  x 2  from  x 2  and  x .) = a ( x 2 + b a x + b 2 4 a 2 ¯ b 2 4 a 2 ¯ ) + c = a ( x 2 + b a x + b 2 4 a 2 ) a ( b 2 4 a 2 ) + c (Group the perfect square trinomial.) = a ( x + b 2 a ) 2 + 4 a c b 2 4 a (Factor and get a common denominator.)

Comparing this last expression with the standard form, we identify ( x h ) with ( x + b 2 a ) so that h = b 2 a . Instead of memorizing the value k = 4 a c b 2 4 a , we see that f ( b 2 a ) = 4 a c b 2 4 a . As such, we have derived a vertex formula for the general form. We summarize both vertex formulas in the box at the top of the next page.

There are two more results which can be gleaned from the completed-square form of the general form of a quadratic function,

f ( x ) = a x 2 + b x + c = a ( x + b 2 a ) 2 + 4 a c b 2 4 a

We have seen that the number a in the standard form of a quadratic function determines whether the parabola opens upwards (if a > 0 ) or downwards (if a < 0 ). We see here that this number a is none other than the coefficient of x 2 in the general form of the quadratic function. In other words, it is the coefficient of x 2 alone which determines this behavior – a result that is generalized in Section. The second treasure is a re-discovery of the quadratic formula.

Assuming the conditions of Equation, the solutions to a x 2 + b x + c = 0 are precisely the zeros of f ( x ) = a x 2 + b x + c . Since

f ( x ) = a x 2 + b x + c = a ( x + b 2 a ) 2 + 4 a c b 2 4 a

the equation a x 2 + b x + c = 0 is equivalent to

a ( x + b 2 a ) 2 + 4 a c b 2 4 a = 0 .

Solving gives

a ( x + b 2 a ) 2 + 4 a c b 2 4 a = 0 a ( x + b 2 a ) 2 = 4 a c b 2 4 a 1 a [ a ( x + b 2 a ) 2 ] = 1 a ( b 2 4 a c 4 a ) ( x + b 2 a ) 2 = b 2 4 a c 4 a 2 x + b 2 a = ± b 2 4 a c 4 a 2 extract square roots x + b 2 a = ± b 2 4 a c 2 a x = b 2 a ± b 2 4 a c 2 a x = b ± b 2 4 a c 2 a

In our discussions of domain, we were warned against having negative numbers underneath the square root. Given that b 2 4 a c is part of the Quadratic Formula, we will need to pay special attention to the radicand b 2 4 a c . It turns out that the quantity b 2 4 a c plays a critical role in determining the nature of the solutions to a quadratic equation. It is given a special name.

The discriminant `discriminates' between the kinds of solutions we get from a quadratic equation. These cases, and their relation to the discriminant, are summarized below.

The proof of Theorem stems from the position of the discriminant in the quadratic equation, and is left as a good mental exercise for the reader. The next example exploits the fruits of all of our labor in this section thus far.

Our next example is another classic application of quadratic functions.

We conclude this section with the graph of a more complicated absolute value function.

If we take a step back and look at the graphs of g and f in the last example, we notice that to obtain the graph of f from the graph of g , we reflect a portion of the graph of g about the x -axis. We can see this analytically by substituting g ( x ) = x 2 x 6 into the formula for f ( x ) and calling to mind Theorem from Section.

f ( x ) = { g ( x ) , if g ( x ) < 0 g ( x ) , if g ( x ) 0

The function f is defined so that when g ( x ) is negative (i.e., when its graph is below the x -axis), the graph of f is its refection across the x -axis. This is a general template to graph functions of the form f ( x ) = | g ( x ) | . From this perspective, the graph of f ( x ) = | x | can be obtained by reflecting the portion of the line g ( x ) = x which is below the x -axis back above the x -axis creating the characteristic ` ' shape.

Exercises

In Exercises -, graph the quadratic function. Find the x - and y -intercepts of each graph, if any exist. If it is given in general form, convert it into standard form; if it is given in standard form, convert it into general form. Find the domain and range of the function and list the intervals on which the function is increasing or decreasing. Identify the vertex and the axis of symmetry and determine whether the vertex yields a relative and absolute maximum or minimum.

  1. f ( x ) = x 2 + 2
  2. f ( x ) = ( x + 2 ) 2
  3. f ( x ) = x 2 2 x 8
  4. f ( x ) = 2 ( x + 1 ) 2 + 4
  5. f ( x ) = 2 x 2 4 x 1
  6. f ( x ) = 3 x 2 + 4 x 7
  7. f ( x ) = x 2 + x + 1
  8. f ( x ) = 3 x 2 + 5 x + 4
  9. 10 f ( x ) = x 2 1 100 x 1

In Exercises -, the cost and price-demand functions are given for different scenarios. For each scenario,

  • Find the profit function P ( x ) .
  • Find the number of items which need to be sold in order to maximize profit.
  • Find the maximum profit.
  • Find the price to charge per item in order to maximize profit.
  • Find and interpret break-even points.
  • The cost, in dollars, to produce x “I'd rather be a Sasquatch” T-Shirts is C ( x ) = 2 x + 26 , x 0 and the price-demand function, in dollars per shirt, is p ( x ) = 30 2 x , 0 x 15 .
  • The cost, in dollars, to produce x bottles of 100 % All-Natural Certified Free-Trade Organic Sasquatch Tonic is C ( x ) = 10 x + 100 , x 0 and the price-demand function, in dollars per bottle, is p ( x ) = 35 x , 0 x 35 .
  • The cost, in cents, to produce x cups of Mountain Thunder Lemonade at Junior's Lemonade Stand is C ( x ) = 18 x + 240 , x 0 and the price-demand function, in cents per cup, is p ( x ) = 90 3 x , 0 x 30 .
  • The daily cost, in dollars, to produce x Sasquatch Berry Pies is C ( x ) = 3 x + 36 , x 0 and the price-demand function, in dollars per pie, is p ( x ) = 12 0.5 x , 0 x 24 .
  • The monthly cost, in hundreds of dollars, to produce x custom built electric scooters is C ( x ) = 20 x + 1000 , x 0 and the price-demand function, in hundreds of dollars per scooter, is p ( x ) = 140 2 x , 0 x 70 .
  • The International Silver Strings Submarine Band holds a bake sale each year to fund their trip to the National Sasquatch Convention. It has been determined that the cost in dollars of baking x cookies is C ( x ) = 0.1 x + 25 and that the demand function for their cookies is p = 10 .01 x . How many cookies should they bake in order to maximize their profit?
  • Using data from Bureau of Transportation Statistics , the average fuel economy F in miles per gallon for passenger cars in the US can be modeled by F ( t ) = 0.0076 t 2 + 0.45 t + 16 , 0 t 28 , where t is the number of years since 1980 . Find and interpret the coordinates of the vertex of the graph of y = F ( t ) .
  • The temperature T , in degrees Fahrenheit, t hours after 6 AM is given by:

    T ( t ) = 1 2 t 2 + 8 t + 32 , 0 t 12

    What is the warmest temperature of the day? When does this happen?

  • Suppose C ( x ) = x 2 10 x + 27 represents the costs, in hundreds, to produce x thousand pens. How many pens should be produced to minimize the cost? What is this minimum cost?
  • Skippy wishes to plant a vegetable garden along one side of his house. In his garage, he found 32 linear feet of fencing. Since one side of the garden will border the house, Skippy doesn't need fencing along that side. What are the dimensions of the garden which will maximize the area of the garden? What is the maximum area of the garden?
  • In the situation of Example Example 4, Donnie has a nightmare that one of his alpaca herd fell into the river and drowned. To avoid this, he wants to move his rectangular pasture away from the river. This means that all four sides of the pasture require fencing. If the total amount of fencing available is still 200 linear feet, what dimensions maximize the area of the pasture now? What is the maximum area? Assuming an average alpaca requires 25 square feet of pasture, how many alpaca can he raise now?
  • What is the largest rectangular area one can enclose with 14 inches of string?
  • The height of an object dropped from the roof of an eight story building is modeled by h ( t ) = 16 t 2 + 64 , 0 t 2 . Here, h is the height of the object off the ground, in feet, t seconds after the object is dropped. How long before the object hits the ground?
  • The height h in feet of a model rocket above the ground t seconds after lift-off is given by h ( t ) = 5 t 2 + 100 t , for 0 t 20 . When does the rocket reach its maximum height above the ground? What is its maximum height?
  • Carl's friend Jason participates in the Highland Games. In one event, the hammer throw, the height h in feet of the hammer above the ground t seconds after Jason lets it go is modeled by h ( t ) = 16 t 2 + 22.08 t + 6 . What is the hammer's maximum height? What is the hammer's total time in the air? Round your answers to two decimal places.
  • Assuming no air resistance or forces other than the Earth's gravity, the height above the ground at time t of a falling object is given by s ( t ) = 4.9 t 2 + v 0 t + s 0 where s is in meters, t is in seconds, v 0 is the object's initial velocity in meters per second and s 0 is its initial position in meters.

    1. What is the applied domain of this function?
    2. Discuss with your classmates what each of v 0 > 0 , v 0 = 0 and v 0 < 0 would mean.
    3. Come up with a scenario in which s 0 < 0 .
    4. Let's say a slingshot is used to shoot a marble straight up from the ground ( s 0 = 0 ) with an initial velocity of 15 meters per second. What is the marble's maximum height above the ground? At what time will it hit the ground?
    5. Now shoot the marble from the top of a tower which is 25 meters tall. When does it hit the ground?
    6. What would the height function be if instead of shooting the marble up off of the tower, you were to shoot it straight DOWN from the top of the tower?
  • The two towers of a suspension bridge are 400 feet apart. The parabolic cable11 attached to the tops of the towers is 10 feet above the point on the bridge deck that is midway between the towers. If the towers are 100 feet tall, find the height of the cable directly above a point of the bridge deck that is 50 feet to the right of the left-hand tower.
  • Graph f ( x ) = | 1 x 2 |
  • Find all of the points on the line y = 1 x which are 2 units from ( 1 , 1 ) .
  • Let L be the line y = 2 x + 1 . Find a function D ( x ) which measures the distance squared from a point on L to ( 0 , 0 ) . Use this to find the point on L closest to ( 0 , 0 ) .
  • With the help of your classmates, show that if a quadratic function f ( x ) = a x 2 + b x + c has two real zeros then the x -coordinate of the vertex is the midpoint of the zeros.
  • x 2 10 y 2 = 0 for x
  • y 2 4 y = x 2 4 for x
  • x 2 m x = 1 for x
  • y 2 3 y = 4 x for y
  • y 2 4 y = x 2 4 for y
  • g t 2 + v 0 t + s 0 = 0 for t (Assume g 0 .)

In Exercises -, solve the quadratic equation for the indicated variable.

Answers

  1. f ( x ) = x 2 + 2 (this is both forms!) No x -intercepts y -intercept ( 0 , 2 ) Domain: ( , ) Range: [ 2 , ) Decreasing on ( , 0 ] Increasing on [ 0 , ) Vertex ( 0 , 2 ) is a minimum Axis of symmetry x = 0

    Coordinate-plane figure.
    Figure 2.66
  2. f ( x ) = ( x + 2 ) 2 = x 2 4 x 4 x -intercept ( 2 , 0 ) y -intercept ( 0 , 4 ) Domain: ( , ) Range: ( , 0 ] Increasing on ( , 2 ] Decreasing on [ 2 , ) Vertex ( 2 , 0 ) is a maximum Axis of symmetry x = 2

    Coordinate-plane figure.
    Figure 2.67
  3. f ( x ) = x 2 2 x 8 = ( x 1 ) 2 9 x -intercepts ( 2 , 0 ) and ( 4 , 0 ) y -intercept ( 0 , 8 ) Domain: ( , ) Range: [ 9 , ) Decreasing on ( , 1 ] Increasing on [ 1 , ) Vertex ( 1 , 9 ) is a minimum Axis of symmetry x = 1

    Coordinate-plane figure.
    Figure 2.68
  4. f ( x ) = 2 ( x + 1 ) 2 + 4 = 2 x 2 4 x + 2 x -intercepts ( 1 2 , 0 ) and ( 1 + 2 , 0 ) y -intercept ( 0 , 2 ) Domain: ( , ) Range: ( , 4 ] Increasing on ( , 1 ] Decreasing on [ 1 , ) Vertex ( 1 , 4 ) is a maximum Axis of symmetry x = 1

    Coordinate-plane figure.
    Figure 2.69
  5. f ( x ) = 2 x 2 4 x 1 = 2 ( x 1 ) 2 3 x -intercepts ( 2 6 2 , 0 ) and ( 2 + 6 2 , 0 ) y -intercept ( 0 , 1 ) Domain: ( , ) Range: [ 3 , ) Increasing on [ 1 , ) Decreasing on ( , 1 ] Vertex ( 1 , 3 ) is a minimum Axis of symmetry x = 1

    Coordinate-plane figure.
    Figure 2.70
  6. f ( x ) = 3 x 2 + 4 x 7 = 3 ( x 2 3 ) 2 17 3 No x -intercepts y -intercept ( 0 , 7 ) Domain: ( , ) Range: ( , 17 3 ] Increasing on ( , 2 3 ] Decreasing on [ 2 3 , ) Vertex ( 2 3 , 17 3 ) is a maximum Axis of symmetry x = 2 3

    Coordinate-plane figure.
    Figure 2.71
  7. f ( x ) = x 2 + x + 1 = ( x + 1 2 ) 2 + 3 4 No x -intercepts y -intercept ( 0 , 1 ) Domain: ( , ) Range: [ 3 4 , ) Increasing on [ 1 2 , ) Decreasing on ( , 1 2 ] Vertex ( 1 2 , 3 4 ) is a minimum Axis of symmetry x = 1 2

    Coordinate-plane figure.
    Figure 2.72
  8. f ( x ) = 3 x 2 + 5 x + 4 = 3 ( x 5 6 ) 2 + 73 12 x -intercepts ( 5 73 6 , 0 ) and ( 5 + 73 6 , 0 ) y -intercept ( 0 , 4 ) Domain: ( , ) Range: ( , 73 12 ] Increasing on ( , 5 6 ] Decreasing on [ 5 6 , ) Vertex ( 5 6 , 73 12 ) is a maximum Axis of symmetry x = 5 6

    Coordinate-plane figure.
    Figure 2.73
  9. f ( x ) = x 2 1 100 x 1 = ( x 1 200 ) 2 40001 40000 x -intercepts ( 1 + 40001 200 ) and ( 1 40001 200 ) y -intercept ( 0 , 1 ) Domain: ( , ) Range: [ 40001 40000 , ) Decreasing on ( , 1 200 ] Increasing on [ 1 200 , ) Vertex ( 1 200 , 40001 40000 ) is a minimum12 Axis of symmetry x = 1 200

    Coordinate-plane figure.
    Figure 2.74
    • P ( x ) = 2 x 2 + 28 x 26 , for 0 x 15 .
    • 7 T-shirts should be made and sold to maximize profit.
    • The maximum profit is $ 72 .
    • The price per T-shirt should be set at $ 16 to maximize profit.
    • The break even points are x = 1 and x = 13 , so to make a profit, between 1 and 13 T-shirts need to be made and sold.
    • P ( x ) = x 2 + 25 x 100 , for 0 x 35
    • Since the vertex occurs at x = 12.5 , and it is impossible to make or sell 12.5 bottles of tonic, maximum profit occurs when either 12 or 13 bottles of tonic are made and sold.
    • The maximum profit is $ 56 .
    • The price per bottle can be either $ 23 (to sell 12 bottles) or $ 22 (to sell 13 bottles.) Both will result in the maximum profit.
    • The break even points are x = 5 and x = 20 , so to make a profit, between 5 and 20 bottles of tonic need to be made and sold.
    • P ( x ) = 3 x 2 + 72 x 240 , for 0 x 30
    • 12 cups of lemonade need to be made and sold to maximize profit.
    • The maximum profit is 192 ¢ or $ 1.92 .
    • The price per cup should be set at 54 ¢ per cup to maximize profit.
    • The break even points are x = 4 and x = 20 , so to make a profit, between 4 and 20 cups of lemonade need to be made and sold.
    • P ( x ) = 0.5 x 2 + 9 x 36 , for 0 x 24
    • 9 pies should be made and sold to maximize the daily profit.
    • The maximum daily profit is $ 4.50 .
    • The price per pie should be set at $ 7.50 to maximize profit.
    • The break even points are x = 6 and x = 12 , so to make a profit, between 6 and 12 pies need to be made and sold daily.
    • P ( x ) = 2 x 2 + 120 x 1000 , for 0 x 70
    • 30 scooters need to be made and sold to maximize profit.
    • The maximum monthly profit is 800 hundred dollars, or $ 80 , 000 .
    • The price per scooter should be set at 80 hundred dollars, or $ 8000 per scooter.
    • The break even points are x = 10 and x = 50 , so to make a profit, between 10 and 50 scooters need to be made and sold monthly.
  10. 495 cookies
  11. The vertex is (approximately) ( 29.60 , 22.66 ) , which corresponds to a maximum fuel economy of 22.66 miles per gallon, reached sometime between 2009 and 2010 (29 – 30 years after 1980.) Unfortunately, the model is only valid up until 2008 (28 years after 1908.) So, at this point, we are using the model to predict the maximum fuel economy.
  12. 64 at 2 PM (8 hours after 6 AM.)
  13. 5000 pens should be produced for a cost of $ 200 .
  14. 8 feet by 16 feet; maximum area is 128 square feet.
  15. 50 feet by 50 feet; maximum area is 2500 feet; he can raise 100 average alpacas.
  16. The largest rectangle has area 12.25 square inches.
  17. 2 seconds.
  18. The rocket reaches its maximum height of 500 feet 10 seconds after lift-off.
  19. The hammer reaches a maximum height of approximately 13.62 feet. The hammer is in the air approximately 1.61 seconds.
    1. The applied domain is [ 0 , ) .
    2. The height function is this case is s ( t ) = 4.9 t 2 + 15 t . The vertex of this parabola is approximately ( 1.53 , 11.48 ) so the maximum height reached by the marble is 11.48 meters. It hits the ground again when t 3.06 seconds.
    3. The revised height function is s ( t ) = 4.9 t 2 + 15 t + 25 which has zeros at t 1.20 and t 4.26 . We ignore the negative value and claim that the marble will hit the ground after 4.26 seconds.
    4. Shooting down means the initial velocity is negative so the height functions becomes s ( t ) = 4.9 t 2 15 t + 25 .
  20. Make the vertex of the parabola ( 0 , 10 ) so that the point on the top of the left-hand tower where the cable connects is ( 200 , 100 ) and the point on the top of the right-hand tower is ( 200 , 100 ) . Then the parabola is given by p ( x ) = 9 4000 x 2 + 10 . Standing 50 feet to the right of the left-hand tower means you're standing at x = 150 and p ( 150 ) = 60.625 . So the cable is 60.625 feet above the bridge deck there.
  21. y = | 1 x 2 |

    Coordinate-plane figure.
    Figure 2.75
  22. ( 3 7 2 , 1 + 7 2 ) , ( 3 + 7 2 , 1 7 2 )
  23. D ( x ) = x 2 + ( 2 x + 1 ) 2 = 5 x 2 + 4 x + 1 , D is minimized when x = 2 5 , so the point on y = 2 x + 1 closest to ( 0 , 0 ) is ( 2 5 , 1 5 )
  24. x = ± y 10
  25. x = ± ( y 2 )
  26. x = m ± m 2 + 4 2
  27. y = 3 ± 16 x + 9 2
  28. y = 2 ± x
  29. t = v 0 ± v 0 2 + 4 g s 0 2 g

Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.