4.2: Quadratic Functions
-
- Last updated
- Save as PDF
In this section, we will explore the family of 2\({}^{nd}\) 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 \(\PageIndex{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 4\({}^{th}\) 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\).
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 4\({}^{th}\) 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=80-2L\nonumber \]
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(80-2L)\nonumber \]
\[A(L)=80L-2L^{2}\nonumber \]
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)=x^{2}\).
Example \(\PageIndex{2}\)
Write an equation for the quadratic graphed below as a transformation of \(f(x)=x^{2}\), then expand the formula and simplify terms to write the equation in standard polynomial form.
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)^{2} -3\). By plugging in a point that falls on the grid, such as (0,-1), we can solve for the stretch factor:
\[\begin{array}{l} {-1=a(0+2)^{2} -3} \\ {2=4a} \\ {a=\dfrac{1}{2} } \end{array}\nonumber \]
Written as a transformation, the equation for this formula is \(g(x)=\dfrac{1}{2} (x+2)^{2} -3\). To write this in standard polynomial form, we can expand the formula and simplify terms:
\[\begin{array}{l} {g(x)=\dfrac{1}{2} (x+2)^{2} -3} \\ {g(x)=\dfrac{1}{2} (x+2)(x+2)-3} \\ {g(x)=\dfrac{1}{2} (x^{2} +4x+4)-3} \\ {g(x)=\dfrac{1}{2} x^{2} +2x+2-3} \\ {g(x)=\dfrac{1}{2} x^{2} +2x-1} \end{array}\nonumber \]
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 \(\PageIndex{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?
- Answer
-
The path passes through the origin with vertex at (-4, 7). \[h(x) = -\dfrac{7}{16}(x + 4)^2 + 7\nonumber\] To make the shot, \(h(-7.5)\) would need to be about 4. \(h(-7.5) \approx 1.64\); he doesn't make it.
forms of quadratic function
The standard form of a quadratic function is
\[f(x)=ax^{2} +bx+c \label{standard}\]
The transformation form of a quadratic function is
\[f(x)=a(x-h)^{2} +k \label{trans}\]
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:
\[\begin{array}{l} {f(x)=a(x-h)^{2} +k=a(x-h)(x-h)+k} \\ {f(x)=a(x^{2} -2xh+h^{2} )+k=ax^{2} -2ahx+ah^{2} +k} \end{array}\nonumber \]
This should be equal to the standard form of the quadratic:
\[ax^{2} -2ahx+ah^{2} +k=ax^{2} +bx+c\nonumber \]
The second degree terms are already equal. For the linear terms to be equal, the coefficients must be equal:
\[-2ah=b\text{ ,so }h=-\dfrac{b}{2a}\nonumber\]
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:
\[ah^{2} +k=c\text{ ,so }k=c-ah^{2} =c-a\left(-\dfrac{b}{2a} \right)^{2} =c-a\dfrac{b^{2} }{4a^{2} } =c-\dfrac{b^{2} }{4a}\nonumber \]
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=-\dfrac{b}{2a} , k=f(h)=f\left(\dfrac{-b}{2a} \right)\]
Example \(\PageIndex{3}\)
Find the vertex of the quadratic \(f(x)=2x^{2} -6x+7\). Rewrite the quadratic into transformation form (vertex form).
Solution
The horizontal coordinate of the vertex will be at
\[h=-\dfrac{b}{2a} =-\dfrac{-6}{2(2)} =\dfrac{6}{4} =\dfrac{3}{2} \nonumber\]
The vertical coordinate of the vertex will be at
\[f(\dfrac{3}{2} )=2(\dfrac{3}{2})^{2} -6(\dfrac{3}{2} )+7=\dfrac{5}{2} \nonumber\]
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(x-\dfrac{3}{2} )^{2} +\dfrac{5}{2} \nonumber\]
Exercise \(\PageIndex{2}\)
Given the equation \(g(x)=13+x^{2} -6x\) write the equation in standard form and then in transformation/vertex form.
- Answer
-
\(g(x) = x^2 - 6x + 13\) in Standard form (Equation \ref{standard}
Finding the vertex, \(h = \dfrac{-(-6)}{2(1)} = 3\). \[k = g(3) = 3^2 - 6(3) + 13 = 4\nonumber \]
\(g(x) = (x - 3)^2 + 4\) in Transformation form (Equation \ref{trans})
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 \(\PageIndex{4}\)
Rewrite \(f(x)=2x^{2} -12x+14\) into vertex form by completing the square.
Solution
We start by factoring the leading coefficient from the quadratic and linear terms.
\[2(x^{2} -6x)+14\nonumber \]
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 \((x^{2} -6x+p)=(x-q)^{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. \[(x^{2} -6x+9)=(x-3)^{2}\nonumber \]
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(x^{2} -6x+9)+14-18\nonumber \]
Simplifying, we are left with vertex form.
\[2(x-3)^{2} -4\nonumber \]
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 \(\PageIndex{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)=80L-2L^{2}\). 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=-\dfrac{80}{2(-2)} =20, k=A(20)=80(20)-2(20)^{2} =800 \nonumber\]
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 \(\PageIndex{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
\[\text{Revenue} = CS\nonumber\]
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=\dfrac{79,000-84,000}{32-30} =\dfrac{-5,000}{2} =-2,500\nonumber \]
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\nonumber\] Plug in the point \(S = 84,000\) and \(C = 30\)
\[84,000=-2500(30)+b\nonumber\] Solve for \(b\)
\[b=159,000\nonumber\]
This gives us the linear equation \(S=-2,500C+159,000\) relating cost and subscribers. We now return to our revenue equation.
\[\text{Revenue} = CS\nonumber\] Substituting the equation for S from above
\[\text{Revenue} = C(-2,500C+159,000)\nonumber\] Expanding
\[\text{Revenue} = -2,500C^{2} +159,000C\nonumber\]
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=-\dfrac{159,000}{2(-2,500)} =31.8\nonumber \]
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:
\[\text{Maximum Revenue} = -2,500(31.8)^{2} +159,000(31.8) = $2,528,100\nonumber\]
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.
Zero horizontal intercepts one horizontal intercept two horizontal intercepts
Example \(\PageIndex{7}\)
Find the vertical and horizontal intercepts of the quadratic \(f(x)=3x^{2} +5x-2\)
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\nonumber\] Vertical intercept at (0,-2)
For the horizontal intercepts, we solve for when the output will be zero
\[0=3x^{2} +5x-2\nonumber\]
In this case, the quadratic can be factored easily, providing the simplest method for solution
\[0=(3x-1)(x+2)\nonumber\]
\[\begin{array}{l} {0=3x-1} \\ {x=\dfrac{1}{3} } \end{array}\text{ or }\begin{array}{l} {0=x+2} \\ {x=-2} \end{array}\nonumber\] Horizontal intercepts at \(\left(\dfrac{1}{3} ,0\right)\) and (-2,0)
Notice that in the standard form of a quadratic, the constant term c reveals the vertical intercept of the graph.
Example \(\PageIndex{8}\)
Find the horizontal intercepts of the quadratic \(f(x)=2x^{2} +4x-4\)
Solution
Again we will solve for when the output will be zero
\[0=2x^{2} +4x-4\nonumber\]
Since the quadratic is not easily factorable in this case, we solve for the intercepts by first rewriting the quadratic into transformation form.
\[h=-\dfrac{b}{2a} =-\dfrac{4}{2(2)} =-1\ \ \ k=f(-1)=2(-1)^{2} +4(-1)-4=-6\nonumber \]
\[f(x)=2(x+1)^{2} -6\nonumber\]
Now we can solve for when the output will be zero
\[\begin{array}{l} {0=2(x+1)^{2} -6} \\ {6=2(x+1)^{2} } \\ {3=(x+1)^{2} } \\ {x+1=\pm \sqrt{3} } \\ {x=-1\pm \sqrt{3} } \end{array}\nonumber \]
The graph has horizontal intercepts at \((-1-\sqrt{3} ,0)\)and \((-1+\sqrt{3} ,0)\)
Exercise \(\PageIndex{3}\)
In Try it Now problem 2 we found the standard & transformation form for the function \(g(x)=13+x^{2} -6x\). 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+\dfrac{b}{2a} )^{2} +c-\dfrac{b^{2} }{4a}\]
Solving for the horizontal intercepts using this general equation gives:
\[0=a(x+\dfrac{b}{2a} )^{2} +c-\dfrac{b^{2} }{4a}\nonumber\] start to solve for \(x\) by moving the constants to the other side
\[\dfrac{b^{2} }{4a} -c=a(x+\dfrac{b}{2a} )^{2}\nonumber \] divide both sides by \(a\)
\[\dfrac{b^{2} }{4a^{2} } -\dfrac{c}{a} = (x+\dfrac{b}{2a})^{2}\nonumber \] find a common denominator to combine fractions
\[\dfrac{b^{2} }{4a^{2} } -\dfrac{4ac}{4a^{2} } =\left(x+\dfrac{b}{2a} \right)^{2}\nonumber \] combine the fractions on the left side of the equation
\[\dfrac{b^{2} -4ac}{4a^{2} } =\left(x+\dfrac{b}{2a} \right)^{2}\nonumber \] take the square root of both sides
\[\pm \sqrt{\dfrac{b^{2} -4ac}{4a^{2} } } =x+\dfrac{b}{2a}\nonumber\] subtract \(b/2a\) from both sides
\[-\dfrac{b}{2a} \pm \dfrac{\sqrt{b^{2} -4ac} }{2a} =x\nonumber \] combining the fractions
\[x=\dfrac{-b\pm \sqrt{b^{2} -4ac} }{2a}\nonumber \] Notice that this can yield two different answers for \(x\)
Quadratic Formula
For a quadratic function given in standard form \(f(x)=ax^{2} +bx+c\), the quadratic formula gives the horizontal intercepts of the graph of this function.
\[x=\dfrac{-b\pm \sqrt{b^{2} -4ac} }{2a}\]
Example \(\PageIndex{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)=-16t^{2} +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=-\dfrac{80}{2(-16)} =\dfrac{80}{32} =\dfrac{5}{2} , k=H\left(\dfrac{5}{2} \right)=-16\left(\dfrac{5}{2} \right)^{2} +80\left(\dfrac{5}{2} \right)+40=140\nonumber \]
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=\dfrac{-80\pm \sqrt{80^{2} -4(-16)(40)} }{2(-16)} =\dfrac{-80\pm \sqrt{8960} }{-32}\nonumber \]
Since the square root does not simplify nicely, we can use a calculator to approximate the values of the solutions:
\[t=\dfrac{-80-\sqrt{8960} }{-32} \approx 5.458\text{ or }t=\dfrac{-80+\sqrt{8960} }{-32} \approx -0.458\nonumber \]
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 \(\PageIndex{4}\)
For these two equations determine if the vertex will be a maximum value or a minimum value.
- \(g(x)=-8x+x^{2} +7\)
- \(g(x)=-3(3-x)^{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