Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

4.1: Quadratic Functions

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

In this section, we will explore the quadratic functions, a type of polynomial function.  Quadratics commonly arise from problems involving areas, as well as revenue and profit, providing some interesting applications.

Example 4.1.1:

A backyard farmer wants to enclose a rectangular space for a new garden within her fenced backyard. She has purchased 80 feet of wire fencing to enclose three sides, and she will use a section of the backyard fence as the fourth side. Find a formula for the area enclosed by the fence if the sides of fencing perpendicular to the existing fence have length L.

Solution

Let’s use a diagram such as Figure 4.1.10 to record the given information. It is also helpful to introduce a temporary variable, W, to represent the width of the garden and the length of the fence section parallel to the backyard fence.

Diagram of the garden and the backyard.
Figure 4.1.10: Diagram of the garden and the backyard.

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 have only 80 feet of fence available, and 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

The standard form for a quadratic is f(x)=ax2+bx+c, but you will often see them written in the form f(x)=a(xh)2+k.  To see why, consider this example.

Example 4.1.2

Sketch a graph of g(x)=12(x+2)23

Solution

We can create a table of values, which we can use to plot several points and connect them with a smooth curve.alt

x g(x)
-5 1.5

-4

-1
-3 -2.5
-2 -3
-1 -2.5
0 -1
1 1.5

 

Notice that the turning point of the graph, where it changes from decreasing to increasing, is at the point (2,3).  We call this point the vertex of the quadratic.  Notice that g(x)=12(x+2)23 can also be written as g(x)=12(x(2))23.  Comparing that to the form f(x)=a(xh)2+k, you can see that the vertex of the graph, (2,3), corresponds with the point h,k.

Definitions: Forms of Quadratic Functions

  • The standard form of a quadratic function is f(x)=ax2+bx+c.
  • The vertex 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 vertex form of the function.

When a>0, the graph of the quadratic will open upwards.

4.1graph1.png

When a<0, the graph of the quadratic will open downwards.

41.graph2.png

Exercise 4.1.1

A coordinate grid has been superimposed over the quadratic path of a basketball. Find an equation for the path of the ball. Does the shooter make the basket?

alt

Figure 4.1.8: Stop motioned picture of a boy throwing a basketball into a hoop to show the parabolic curve it makes.
(credit: modification of work by Dan Meyer)

Answer

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

Example 4.1.3

Write g(x)=12(x+2)23 in standard form.

Solution

To write this in standard polynomial form, we could 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

In the previous example, we saw that it is possible to rewrite a quadratic function given in vertex 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,soh=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=ck=cah2k=ca(b2a)2k=cab24a2k=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 4.1.4

Find the vertex of the quadratic f(x)=2x26x+7.  Rewrite the quadratic into 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 vertex form, the value of a will remain the same as in the original quadratic. 

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

Exercise 4.1.2

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

Answer

g(x)=x26x+13 in standard form; g(x)=(x3)2+4 in vertex form.

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 4.1.5: Finding the Domain and Range of a Quadratic Function

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=80.0

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 4.1.6

A local newspaper currently has 84,000 subscribers at a quarterly charge of $30. Market research has suggested that if the owners raise 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

Because 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 the price rises to $32, the newspaper 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 the 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+bPlug in the point S=84,000 and C=3084,000=2500(30)+bSolve for bb=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=CSRevenue=C(2,500C+159,000)Revenue=2,500C2+159,000C

We now have a quadratic function 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 evaluate the revenue function.

maximum revenue=2,500(31.8)2+159,000(31.8)=2,528,100

Notice that the equation S=2,500C+159,000 we found in the last example is essentially a demand function – a relationship between the price (C) and the demand (S). This is a common type of economic application.

Maximizing Revenue or Profit

To solve a problem involving maximizing revenue or profit given data on demand at different price levels,

  1. Use the data provided to create a demand equation relating price and quantity demanded.  This will usually be a linear function.
  2. Create a Revenue equation.  Start with Revenue = price times quantity, then substitute the demand equation to create a revenue equation just in terms of quantity.
  3. If the problem is to maximize profit, create a Profit equation.  Profit = revenue minus cost.
  4. Find the vertex of the Revenue or Profit function to find the quantity that maximizes revenue or profit.
  5. If needed, use that quantity with the demand function to find the price that maximizes revenue or profit.

Example 4.1.7

A company is planning to sell a new smart fitness device.  Developing the product will cost $700,000, and each product will cost $30 to manufacture.  Market research suggests that if they sell the device for $100, they will be able to sell 30,000 items.  For each $10 they lower the price, they estimate they will sell 5,000 more items.  Assuming quantity demanded is linearly related to price, determine the price that will maximize profit

Solution

Let p be the price per item, and q be the quantity the company can sell.  We start by creating a linear demand function, of the form p=mq+b.

If they sell the device for $100, they will be able to sell 30,000 items, giving the point (30000, 100). 

We are told that for each $10 they lower the price, they estimate they will sell 5,000 more items.  We can either directly interpret this as a slope, or use it to create a second point.  Lowering the price to $90 would raise the quantity sold to 35,000, giving a second point (35000, 90).

Finding the slope:

m=901003500030000=105000=1500=0.002

The demand equation will look like p=0.002q+b.  Substituting in (30000, 10) to solve for b:

100=0.002(30000)+b100=60+bb=160

We now have our demand function:  p=0.002q+160.

 

Now we construct our revenue function, using our demand curve

R=pqSubstituting in the demand function forpR=(0.002q+160)q=0.002q2+160q

Now looking at costs, we know the fixed costs are $700,000, and the per-item costs are $30, leading to the cost equation

C=700,000+30q

Finally we can construct the profit equation:

Profit = Revenue – Cost

P=(0.002q2+160q)(700,000+30q)P=0.002q2+160q700,00030qP=0.002q2+130q700,000

Now to find the maximum we find the vertex of the quadratic:

h=1302(0.002)=32,500

To find the price that will produce a demand of 32,500 items, we use the demand function:

p=0.002(32500)+160=95

To maximize profit, the company should price the device at $95.  At that price they should expect to sell 35,000 items, with a total profit of:

P=0.002(32500)2+130(32500)700,000=$1,412,500

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.

 

4.1blurp.png

4.1blurb2.png

4.1blurp3.png

zero horizontal intercepts

one horizontal intercept

two horizontal intercepts

Example 4.1.8: Finding the x-Intercepts of a Parabola

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=13or0=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.

For quadratics that can’t be factored, we need another technique.  Based on our previous work we showed that any quadratic in standard form can be written into vertex form as:
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 4.1.9

A ball is thrown upward from the top of a 40 foot high 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.

When does the ball reach the maximum height?
What is the maximum height of the ball?
When does the ball hit the ground?

The ball reaches the maximum height at the vertex of the parabola.
h=802(16)=8032=52=2.5

The ball reaches a maximum height after 2.5 seconds.

To find the maximum height, find the y-coordinate of the vertex of the parabola.
k=H(b2a)=H(2.5)=16(2.5)2+80(2.5)+40=140

The ball reaches a maximum height of 140 feet.

To find when the ball hits the ground, we need to determine when the height is zero, H(t)=0.

We use the quadratic formula.

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

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

Example 4.1.10

The supply for a certain product can be modeled by p=3q2 and the demand can be modeled by p=16202q2, where p is the price in dollars, and q is the quantity in thousands of items.  Find the equilibrium price and quantity.

Solution

Recall that the equilibrium price and quantity is found by finding where the supply and demand curve intersect.  We can find that by setting the equations equal:

3q2=16202q2Add 2q2 to both sides5q2=1620Divide by 5 on both sidesq2=324Take the square root of both sidesq=±324=±18

Since it doesn’t make sense to talk about negative quantities, the equilibrium quantity is q=18.  To find the equilibrium price, we evaluate either function at the equilibrium quantity.

p=3(18)2=972

The equilibrium is 18 thousand items, at a price of $972.

Exercise 4.1.4

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

          a.  g(x)=8x+x2+7

          b.  g(x)=3(3x)2+2

Answer

a. Vertex is a minimum value

b. Vertex is a maximum value

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

 

Contributors and Attributions


This page titled 4.1: Quadratic Functions is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?