$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

[ "article:topic", "license:ccbysa", "showtoc:no", "authorname:lippmanrasmussen" ]

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

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}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

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.

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$$

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)$ $A(L)=80L-2L^{2}$ This formula represents the area of the fence in terms of the variable length L.

Short run BehaviorShort 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 vertexVertex. You probably noticed that all quadratics are related to transformations of the basic quadratic function$$f(x)=x^{2}$$.

Example $$\PageIndex{2}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

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.

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=\frac{1}{2} } \end{array}$

Written as a transformation, the equation for this formula is $$g(x)=\frac{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)=\frac{1}{2} (x+2)^{2} -3} \\ {g(x)=\frac{1}{2} (x+2)(x+2)-3} \\ {g(x)=\frac{1}{2} (x^{2} +4x+4)-3} \\ {g(x)=\frac{1}{2} x^{2} +2x+2-3} \\ {g(x)=\frac{1}{2} x^{2} +2x-1} \end{array}$

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}$$

Add exercises text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.

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

The standard formStandard FormQuadratic Functions:Standard Form of a quadratic function is $$f(x)=ax^{2} +bx+c$$

The transformation formTransformation FormQuadratic Functions:Transformation Form of a quadratic function is $$f(x)=a(x-h)^{2} +k$$

The vertexVertex 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 formVertex FormQuadratic Functions: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}$

This should be equal to the standard form of the quadratic: $ax^{2} -2ahx+ah^{2} +k=ax^{2} +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=-\frac{b}{2a}$$

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$$, so $$k=c-ah^{2} =c-a\left(-\frac{b}{2a} \right)^{2} =c-a\frac{b^{2} }{4a^{2} } =c-\frac{b^{2} }{4a}$$

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 formStandard FormQuadratic Functions:Standard Form, the vertex (h, k) is located at: $h=-\frac{b}{2a} , k=f(h)=f\left(\frac{-b}{2a} \right)$

Example $$\PageIndex{3}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Find the vertex of the quadratic $$f(x)=2x^{2} -6x+7$$. Rewrite the quadratic into transformation form (vertex form).

The horizontal coordinate of the vertex will be at $$h=-\frac{b}{2a} =-\frac{-6}{2\eqref{GrindEQ__2_}} =\frac{6}{4} =\frac{3}{2}$$

The vertical coordinate of the vertex will be at $$f\left(\frac{3}{2} \right)=2\left(\frac{3}{2} \right)^{2} -6\left(\frac{3}{2} \right)+7=\frac{5}{2}$$

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\left(x-\frac{3}{2} \right)^{2} +\frac{5}{2}$

Exercise $$\PageIndex{1}$$

Add exercises text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.

2. Given the equation $$g(x)=13+x^{2} -6x$$ write the equation in standard form and then in transformation/vertex form.

As an alternative to using a formula for finding the vertex, the equation can also be written into vertex form by completing the squarecompleting the squareCompleting 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}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Rewrite $$f(x)=2x^{2} -12x+14$$ into vertex form by completing the square.

We start by factoring the leading coefficient from the quadratic and linear terms. $2\left(x^{2} -6x\right)+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 $$\left(x^{2} -6x+p\right)=(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. $$\left(x^{2} -6x+9\right)=(x-3)^{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\left(x^{2} -6x+9\right)+14-18$

Simplifying, we are left with vertex form. $2\left(x-3\right)^{2} -4$

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}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

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

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=-\frac{80}{2(-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 $$\PageIndex{6}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

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?

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=\frac{79,000-84,000}{32-30} =\frac{-5,000}{2} =-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\eqref{GrindEQ__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. $${\rm Revenue}=CS$$ Substituting the equation for S from above $${\rm Revenue}=C(-2,500C+159,000)$$ Expanding ${\rm Revenue}=-2,500C^{2} +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=-\frac{159,000}{2(-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\eqref{GrindEQ__31_8_}^{2} +159,000\eqref{GrindEQ__31_8_}=$$\$2,528,100

Short run BehaviorShort Run Behavior: InterceptsIntercepts

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}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Find the vertical and horizontal intercepts of the quadratic $$f(x)=3x^{2} +5x-2$$

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=3x^{2} +5x-2$

In this case, the quadratic can be factored easily, providing the simplest method for solution $0=(3x-1)(x+2)$ $$\begin{array}{l} {0=3x-1} \\ {x=\frac{1}{3} } \end{array}$$ or $$\begin{array}{l} {0=x+2} \\ {x=-2} \end{array}$$ Horizontal intercepts at $$\left(\frac{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}$$

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Find the horizontal intercepts of the quadratic $$f(x)=2x^{2} +4x-4$$

Again we will solve for when the output will be zero $0=2x^{2} +4x-4$

Since the quadratic is not easily factorable in this case, we solve for the intercepts by first rewriting the quadratic into transformation form. $h=-\frac{b}{2a} =-\frac{4}{2(2)} =-1 k=f(-1)=2(-1)^{2} +4(-1)-4=-6$ $f(x)=2(x+1)^{2} -6$

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}$

The graph has horizontal intercepts at $$(-1-\sqrt{3} ,0)$$and $$(-1+\sqrt{3} ,0)$$

Exercise $$\PageIndex{1}$$

Add exercises text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.

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

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\left(x+\frac{b}{2a} \right)^{2} +c-\frac{b^{2} }{4a}$

Solving for the horizontal intercepts using this general equation gives:

$$0=a\left(x+\frac{b}{2a} \right)^{2} +c-\frac{b^{2} }{4a}$$ start to solve for x by moving the constants to the other side $$\frac{b^{2} }{4a} -c=a\left(x+\frac{b}{2a} \right)^{2}$$ divide both sides by a

$$\frac{b^{2} }{4a^{2} } -\frac{c}{a} =\left(x+\frac{b}{2a} \right)^{2}$$ find a common denominator to combine fractions

$$\frac{b^{2} }{4a^{2} } -\frac{4ac}{4a^{2} } =\left(x+\frac{b}{2a} \right)^{2}$$ combine the fractions on the left side of the equation

$$\frac{b^{2} -4ac}{4a^{2} } =\left(x+\frac{b}{2a} \right)^{2}$$ take the square root of both sides

$$\pm \sqrt{\frac{b^{2} -4ac}{4a^{2} } } =x+\frac{b}{2a}$$ subtract b/2a from both sides

$$-\frac{b}{2a} \pm \frac{\sqrt{b^{2} -4ac} }{2a} =x$$ combining the fractions

$$x=\frac{-b\pm \sqrt{b^{2} -4ac} }{2a}$$ Notice that this can yield two different answers for x

For a quadratic function given in standard form $$f(x)=ax^{2} +bx+c$$, the quadratic formulaQuadratic FormulaQuadratic Functions:Quadratic Formula gives the horizontal intercepts of the graph of this function. $x=\frac{-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=-\frac{80}{2(-16)} =\frac{80}{32} =\frac{5}{2} , k=H\left(\frac{5}{2} \right)=-16\left(\frac{5}{2} \right)^{2} +80\left(\frac{5}{2} \right)+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=\frac{-80\pm \sqrt{80^{2} -4(-16)(40)} }{2(-16)} =\frac{-80\pm \sqrt{8960} }{-32}$

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

$$t=\frac{-80-\sqrt{8960} }{-32} \approx 5.458$$ or $$t=\frac{-80+\sqrt{8960} }{-32} \approx -0.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 $$\PageIndex{1}$$

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

1. $$g(x)=-8x+x^{2} +7$$
2. $$g(x)=-3(3-x)^{2} +2$$

a. Vertex is a minimum value, since a $$\mathrm{>}$$ 0 and the graph opens upwards

b. Vertex is a maximum value, since a $$\mathrm{<}$$ 0 and the graph opens downwards

### Important Topics of this Section

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

2. $$g(x)=x^{2} -6x+13$$ in Standard form; Finding the vertex, $$h=\frac{-(-6)}{2\eqref{GrindEQ__1_}} =3$$. $$k=g\eqref{GrindEQ__3_}=3^{2} -6\eqref{GrindEQ__3_}+13=4$$.$$g(x)=(x-3)^{2} +4$$in Transformation form

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