Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

3.9: Quadratic Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

In this section, we will explore the family of 2nd degree polynomials, the quadratic functions. While they share many characteristics of polynomials in general, the calculations involved in working with quadratics is typically a little simpler, which makes them a good place to start our exploration of short run behavior. In addition, quadratics commonly arise from problems involving area and projectile motion, providing some interesting applications.

Example 3.9.1

A backyard farmer wants to enclose a rectangular space for a new garden. She has purchased 80 feet of wire fencing to enclose 3 sides, and will put the 4th side against the backyard fence. Find a formula for the area enclosed by the fence if the sides of fencing perpendicular to the existing fence have length L.

A rectangular area is labeled Backyard. Inside of it is a smaller rectangle labeled Garden, with one side up against the edge of the backyard.  The dimensions of the garden are labeled W and L.

Solution

In a scenario like this involving geometry, it is often helpful to draw a picture. It might also be helpful to introduce a temporary variable, W, to represent the side of fencing parallel to the 4th side or backyard fence.

Since we know we only have 80 feet of fence available, we know that L+W+L=80, or more simply, 2L+W=80. This allows us to represent the width, W, in terms of L: W=802L

Now we are ready to write an equation for the area the fence encloses. We know the area of a rectangle is length multiplied by width, so

A=LW=L(802L)

A(L)=80L2L2

This formula represents the area of the fence in terms of the variable length L.

Short run Behavior: Vertex

We now explore the interesting features of the graphs of quadratics. In addition to intercepts, quadratics have an interesting feature where they change direction, called the vertex. You probably noticed that all quadratics are related to transformations of the basic quadratic function f(x)=x2.

Example 3.9.2

Write an equation for the quadratic graphed below as a transformation of f(x)=x2, then expand the formula and simplify terms to write the equation in standard polynomial form.

A U-shaped parabola with vertex at negative 2 comma negative 3 and passing through 0 comma negative 1.

Solution

We can see the graph is the basic quadratic shifted to the left 2 and down 3, giving a formula in the form g(x)=a(x+2)23. By plugging in a point that falls on the grid, such as (0,-1), we can solve for the stretch factor:

1=a(0+2)232=4aa=12

Written as a transformation, the equation for this formula is g(x)=12(x+2)23. To write this in standard polynomial form, we can expand the formula and simplify terms:

g(x)=12(x+2)23g(x)=12(x+2)(x+2)3g(x)=12(x2+4x+4)3g(x)=12x2+2x+23g(x)=12x2+2x1

Notice that the horizontal and vertical shifts of the basic quadratic determine the location of the vertex of the parabola; the vertex is unaffected by stretches and compressions.

Exercise 3.9.1

A coordinate grid has been superimposed over the quadratic path of a basketball(From http://blog.mrmeyer.com/?p=4778, © Dan Meyer, CC-BY). Find an equation for the path of the ball. Does he make the basket?

An image showing a basketball being thrown, with pictures of the basketball at several points along the path.  A grid is shown over the image. Using the lower left point on the graph as the origin, the basket is at 0.5 comma 3.5.  The basketball is shown at 8 comma 0, 7.5 comma 2.5, 7 comma 3, 6.5 comma 4, 6 comma 5, 5 comma 6.5, and 4 comma 7.

Answer

The path passes through the origin with vertex at (-4, 7). h(x)=716(x+4)2+7 To make the shot, h(7.5) would need to be about 4. h(7.5)1.64; he doesn't make it.

A  picture of a basketball several places along its path.  A parabola is shown passing through the basketball, and comes up short of the basket.

forms of quadratic function

The standard form of a quadratic function is

f(x)=ax2+bx+c

The transformation form of a quadratic function is

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

The vertex of the quadratic function is located at (h, k), where h and k are the numbers in the transformation form of the function. Because the vertex appears in the transformation form, it is often called the vertex form.

In the previous example, we saw that it is possible to rewrite a quadratic function given in transformation form and rewrite it in standard form by expanding the formula. It would be useful to reverse this process since the transformation form reveals the vertex.

Expanding out the general transformation form of a quadratic gives:

f(x)=a(xh)2+k=a(xh)(xh)+kf(x)=a(x22xh+h2)+k=ax22ahx+ah2+k

This should be equal to the standard form of the quadratic:

ax22ahx+ah2+k=ax2+bx+c

The second degree terms are already equal. For the linear terms to be equal, the coefficients must be equal:

2ah=b ,so h=b2a

This provides us a method to determine the horizontal shift of the quadratic from the standard form. We could likewise set the constant terms equal to find:

ah2+k=c ,so k=cah2=ca(b2a)2=cab24a2=cb24a

In practice, though, it is usually easier to remember that k is the output value of the function when the input is h, so k=f(h).

finding the vertex of a quadratic

For a quadratic given in standard form, the vertex (h, k) is located at:

h=b2a,k=f(h)=f(b2a)

Example 3.9.3

Find the vertex of the quadratic f(x)=2x26x+7. Rewrite the quadratic into transformation form (vertex form).

Solution

The horizontal coordinate of the vertex will be at

h=b2a=62(2)=64=32

The vertical coordinate of the vertex will be at

f(32)=2(32)26(32)+7=52

Rewriting into transformation form, the stretch factor will be the same as the a in the original quadratic. Using the vertex to determine the shifts,

f(x)=2(x32)2+52

Exercise 3.9.2

Given the equation g(x)=13+x26x write the equation in standard form and then in transformation/vertex form.

Answer

g(x)=x26x+13 in Standard form (Equation ???

Finding the vertex, h=(6)2(1)=3. k=g(3)=326(3)+13=4

g(x)=(x3)2+4 in Transformation form (Equation ???)

As an alternative to using a formula for finding the vertex, the equation can also be written into vertex form by completing the square. This process is most easily explained through example. In most cases, using the formula for finding the vertex will be quicker and easier than completing the square, but completing the square is a useful technique when faced with some other algebraic problems.

Example 3.9.4

Rewrite f(x)=2x212x+14 into vertex form by completing the square.

Solution

We start by factoring the leading coefficient from the quadratic and linear terms.

2(x26x)+14

Next, we are going to add something inside the parentheses so that the quadratic inside the parentheses becomes a perfect square. In other words, we are looking for values p and q so that (x26x+p)=(xq)2.

Notice that if multiplied out on the right, the middle term would be -2q, so q must be half of the middle term on the left; q=3. In that case, p must be (-3)2 = 9. (x26x+9)=(x3)2

Now, we can’t just add 9 into the expression – that would change the value of the expression. In fact, adding 9 inside the parentheses actually adds 18 to the expression, since the 2 outside the parentheses will distribute. To keep the expression balanced, we can subtract 18.

2(x26x+9)+1418

Simplifying, we are left with vertex form.

2(x3)24

In addition to enabling us to more easily graph a quadratic written in standard form, finding the vertex serves another important purpose – it allows us to determine the maximum or minimum value of the function, depending on which way the graph opens.

Example 3.9.5

Returning to our backyard farmer from the beginning of the section, what dimensions should she make her garden to maximize the enclosed area?

Solution

Earlier we determined the area she could enclose with 80 feet of fencing on three sides was given by the equation A(L)=80L2L2. Notice that quadratic has been vertically reflected, since the coefficient on the squared term is negative, so the graph will open downwards, and the vertex will be a maximum value for the area.

In finding the vertex, we take care since the equation is not written in standard polynomial form with decreasing powers. But we know that a is the coefficient on the squared term, so a=2, b=80, and c=0.

Finding the vertex:

h=802(2)=20,k=A(20)=80(20)2(20)2=800

The maximum value of the function is an area of 800 square feet, which occurs when L=20 feet. When the shorter sides are 20 feet, that leaves 40 feet of fencing for the longer side. To maximize the area, she should enclose the garden so the two shorter sides have length 20 feet, and the longer side parallel to the existing fence has length 40 feet.

Example 3.9.6

A local newspaper currently has 84,000 subscribers, at a quarterly charge of $30. Market research has suggested that if they raised the price to $32, they would lose 5,000 subscribers. Assuming that subscriptions are linearly related to the price, what price should the newspaper charge for a quarterly subscription to maximize their revenue?

Solution

Revenue is the amount of money a company brings in. In this case, the revenue can be found by multiplying the charge per subscription times the number of subscribers. We can introduce variables, C for charge per subscription and S for the number subscribers, giving us the equation

Revenue=CS

Since the number of subscribers changes with the price, we need to find a relationship between the variables. We know that currently S=84,000 and C=30, and that if they raise the price to $32 they would lose 5,000 subscribers, giving a second pair of values, C=32 and S=79,000. From this we can find a linear equation relating the two quantities. Treating C as the input and S as the output, the equation will have form S=mC+b. The slope will be

m=79,00084,0003230=5,0002=2,500

This tells us the paper will lose 2,500 subscribers for each dollar they raise the price. We can then solve for the vertical intercept

S=2500C+b Plug in the point S=84,000 and C=30

84,000=2500(30)+b Solve for b

b=159,000

This gives us the linear equation S=2,500C+159,000 relating cost and subscribers. We now return to our revenue equation.

Revenue=CS Substituting the equation for S from above

Revenue=C(2,500C+159,000) Expanding

Revenue=2,500C2+159,000C

We now have a quadratic equation for revenue as a function of the subscription charge. To find the price that will maximize revenue for the newspaper, we can find the vertex:

h=159,0002(2,500)=31.8

The model tells us that the maximum revenue will occur if the newspaper charges $31.80 for a subscription. To find what the maximum revenue is, we can evaluate the revenue equation:

Maximum Revenue=2,500(31.8)2+159,000(31.8)=$2,528,100

Short run Behavior: Intercepts

As with any function, we can find the vertical intercepts of a quadratic by evaluating the function at an input of zero, and we can find the horizontal intercepts by solving for when the output will be zero. Notice that depending upon the location of the graph, we might have zero, one, or two horizontal intercepts.

A U-shaped parabola opening upwards with vertex at 2 comma 1 with no horizontal intercepts.            A U-shaped parabola opening upwards with one horizontal intercept at the vertex at 2 comma 0.                  A U-shaped parabola opening upwards with vertex at 2 comma negative 1 with two horizontal intercepts at 1 comma 0 and 3 comma 0

Zero horizontal intercepts                  one horizontal intercept                    two horizontal intercepts

Example 3.9.7

Find the vertical and horizontal intercepts of the quadratic f(x)=3x2+5x2

Solution

We can find the vertical intercept by evaluating the function at an input of zero:

f(0)=3(0)2+5(0)2=2 Vertical intercept at (0,-2)

For the horizontal intercepts, we solve for when the output will be zero

0=3x2+5x2

In this case, the quadratic can be factored easily, providing the simplest method for solution

0=(3x1)(x+2)

0=3x1x=13 or 0=x+2x=2 Horizontal intercepts at (13,0) and (-2,0)

Notice that in the standard form of a quadratic, the constant term c reveals the vertical intercept of the graph.

Example 3.9.8

Find the horizontal intercepts of the quadratic f(x)=2x2+4x4

Solution

Again we will solve for when the output will be zero

0=2x2+4x4

Since the quadratic is not easily factorable in this case, we solve for the intercepts by first rewriting the quadratic into transformation form.

h=b2a=42(2)=1   k=f(1)=2(1)2+4(1)4=6

f(x)=2(x+1)26

Now we can solve for when the output will be zero

0=2(x+1)266=2(x+1)23=(x+1)2x+1=±3x=1±3

The graph has horizontal intercepts at (13,0)and (1+3,0)

Exercise 3.9.3

In Try it Now problem 2 we found the standard & transformation form for the function g(x)=13+x26x. Now find the Vertical & Horizontal intercepts (if any).

Answer

Vertical intercept at (0, 13), No horizontal intercepts since the vertex is above the x-axis and the graph opens upwards.

The process in the last example is done commonly enough that sometimes people find it easier to solve the problem once in general and remember the formula for the result, rather than repeating the process each time. Based on our previous work we showed that any quadratic in standard form can be written into transformation form as:

f(x)=a(x+b2a)2+cb24a

Solving for the horizontal intercepts using this general equation gives:

0=a(x+b2a)2+cb24a start to solve for x by moving the constants to the other side

b24ac=a(x+b2a)2 divide both sides by a

b24a2ca=(x+b2a)2 find a common denominator to combine fractions

b24a24ac4a2=(x+b2a)2 combine the fractions on the left side of the equation

b24ac4a2=(x+b2a)2 take the square root of both sides

±b24ac4a2=x+b2a subtract b/2a from both sides

b2a±b24ac2a=x combining the fractions

x=b±b24ac2a Notice that this can yield two different answers for x

Quadratic Formula

For a quadratic function given in standard form f(x)=ax2+bx+c, the quadratic formula gives the horizontal intercepts of the graph of this function.

x=b±b24ac2a

Example 3.9.9

A ball is thrown upwards from the top of a 40-foot-tall building at a speed of 80 feet per second. The ball’s height above ground can be modeled by the equation H(t)=16t2+80t+40.

What is the maximum height of the ball?

When does the ball hit the ground?

Solution

To find the maximum height of the ball, we would need to know the vertex of the quadratic.

h=802(16)=8032=52,k=H(52)=16(52)2+80(52)+40=140

The ball reaches a maximum height of 140 feet after 2.5 seconds.

To find when the ball hits the ground, we need to determine when the height is zero – when H(t)=0. While we could do this using the transformation form of the quadratic, we can also use the quadratic formula:

t=80±8024(16)(40)2(16)=80±896032

Since the square root does not simplify nicely, we can use a calculator to approximate the values of the solutions:

t=808960325.458 or t=80+8960320.458

The second answer is outside the reasonable domain of our model, so we conclude the ball will hit the ground after about 5.458 seconds.

Exercise 3.9.4

For these two equations determine if the vertex will be a maximum value or a minimum value.

  1. g(x)=8x+x2+7
  2. g(x)=3(3x)2+2
Answer

a. Vertex is a minimum value, since a>0 and the graph opens upwards

b. Vertex is a maximum value, since a<0 and the graph opens downwards

Important Topics of this Section

  • Quadratic functions
  • Standard form
  • Transformation form/Vertex form
  • Vertex as a maximum / Vertex as a minimum
  • Short run behavior
  • Vertex / Horizontal & Vertical intercepts
  • Quadratic formula

This page titled 3.9: Quadratic Functions is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by David Lippman & Melonie Rasmussen (The OpenTextBookStore) via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?