5.1 Quadratic Functions and Equations

NoteLearning Objectives

In this section, you will:

  • Solve quadratic equations by factoring.
  • Solve quadratic equations by the square root property.
  • Solve quadratic equations by completing the square.
  • Solve quadratic equations by using the quadratic formula.
  • Recognize characteristics of parabolas.
  • Understand how the graph of a parabola is related to its quadratic function.
  • Determine a quadratic function’s minimum or maximum value.
  • Solve problems involving a quadratic function’s minimum or maximum value.

An array of large parabolic satellite dishes pointed at the sky.

Figure 5.1.1: Each of these satellite dishes has a parabolic cross-section — the same curve we get from any quadratic function. The mathematics of quadratic functions and the equations that produce them is at the heart of fields ranging from engineering and physics to economics.

A quadratic function or its associated equation appears throughout mathematics, science, and engineering: the trajectory of a thrown ball, the cross-section of a satellite dish or the cables of a suspension bridge, the optimal sales price for maximum revenue, and the impact-vs-time profile of a projectile. In this section we develop the four standard methods for solving quadratic equations — factoring, the square root property, completing the square, and the quadratic formula — and then study quadratic functions and their parabolic graphs alongside them, so the algebra and the geometry develop together.

5.1.1 Solving Quadratic Equations by Factoring

An equation containing a second-degree polynomial is called a quadratic equation. For example, equations such as \(2x^{2} + 3x - 1 = 0\) and \(x^{2} - 4 = 0\) are quadratic equations. They are used in countless ways in the fields of engineering, architecture, finance, biological science, and, of course, mathematics.

Often the easiest method of solving a quadratic equation is factoring. Factoring means finding expressions that can be multiplied together to give the expression on one side of the equation.

If a quadratic equation can be factored, it is written as a product of linear terms. Solving by factoring depends on the zero-product property, which states that if \(a \cdot b = 0,\) then \(a = 0\) or \(b = 0,\) where \(a\) and \(b\) are real numbers or algebraic expressions. In other words, if the product of two numbers or two expressions equals zero, then one of the numbers or one of the expressions must equal zero because zero multiplied by anything equals zero.

Multiplying the factors expands the equation to a string of terms separated by plus or minus signs. So, in that sense, the operation of multiplication undoes the operation of factoring. For example, expand the factored expression \(\left( {x - 2} \right)\left( {x + 3} \right)\) by multiplying the two factors together.

\[\begin{array}{ccl} {\left( {x - 2} \right)\left( {x + 3} \right)} & = & {x^{2} + 3x - 2x - 6} \\ & = & {x^{2} + x - 6} \end{array}\]

The product is a quadratic expression. Set equal to zero, \(x^{2} + x - 6 = 0\) is a quadratic equation. If we were to factor the equation, we would get back the factors we multiplied.

The process of factoring a quadratic equation depends on the leading coefficient, whether it is 1 or another integer. We will look at both situations; but first, we want to confirm that the equation is written in standard form, \(ax^{2} + bx + c = 0,\) where \(a\), \(b\), and \(c\) are real numbers, and \(a \neq 0.\) The equation \(x^{2} + x - 6 = 0\) is in standard form.

We can use the zero-product property to solve quadratic equations in which we first have to factor out the greatest common factor (GCF), and for equations that have special factoring formulas as well, such as the difference of squares, both of which we will see later in this section.

NoteDefinition 5.1.2 — The Zero-Product Property and Quadratic Equations

The zero-product property states

\[\text{If~}a \cdot b = 0,\mspace{9mu}\text{then~}a = 0\mspace{9mu}\text{or~}b = 0,\]

where \(a\) and \(b\) are real numbers or algebraic expressions.

A quadratic equation is an equation containing a second-degree polynomial; for example

\[ax^{2} + bx + c = 0\]

where \(a\), \(b\), and \(c\) are real numbers, and if \(a \neq 0,\) it is in standard form.

Solving Quadratics with a Leading Coefficient of 1

In the quadratic equation \(x^{2} + x - 6 = 0,\) the leading coefficient, or the coefficient of \(x^{2},\) is 1. We have one method of factoring quadratic equations in this form.

TipHow To 5.1.3

Given a quadratic equation with the leading coefficient of 1, factor it.

  1. Find two numbers whose product equals \(c\) and whose sum equals \(b\).
  2. Use those numbers to write two factors of the form \(\left( {x + k} \right)\mspace{9mu}\text{or~}\left( {x - k} \right),\) where \(k\) is one of the numbers found in step 1. Use the numbers exactly as they are. In other words, if the two numbers are 1 and \(-2,\) the factors are \(\left( {x + 1} \right)\left( {x - 2} \right).\)
  3. Solve using the zero-product property by setting each factor equal to zero and solving for the variable.
TipExample 5.1.4 — Factoring and Solving a Quadratic with Leading Coefficient of 1

Factor and solve the equation: \(x^{2} + x - 6 = 0.\)

Solution

To factor \(x^{2} + x - 6 = 0,\) we look for two numbers whose product equals \(-6\) and whose sum equals 1. Begin by looking at the possible factors of \(-6.\)

\[\begin{matrix} {1 \cdot (-6)} \\ {(-6) \cdot 1} \\ {2 \cdot (-3)} \\ {3 \cdot (-2)} \end{matrix}\]

The last pair, \(3 \cdot (-2)\) sums to 1, so these are the numbers. Note that only one pair of numbers will work. Then, write the factors.

\[\left( {x - 2} \right)\left( {x + 3} \right) = 0\]

To solve this equation, we use the zero-product property. Set each factor equal to zero and solve.

\[\begin{array}{rcl} {\left( {x - 2} \right)\left( {x + 3} \right)} & = & 0 \\ \left( {x - 2} \right) & = & 0 \\ x & = & 2 \\ \left( {x + 3} \right) & = & 0 \\ x & = & -3 \end{array}\]

The two solutions are \(2\) and \(-3.\) We can see how the solutions relate to the graph below. The solutions are the x-intercepts of \(y = x^{2} + x - 6 = 0.\)

Coordinate plane with a parabola crossing the x-axis at the points negative 3 and 2.

Figure: Coordinate plane with a parabola crossing the x-axis at the points negative 3 and 2.

WarningTry It 5.1.5

Factor and solve the quadratic equation: \(x^{2} - 5x - 6 = 0.\)

TipExample 5.1.6 — Solve the Quadratic Equation by Factoring

Solve the quadratic equation by factoring: \(x^{2} + 8x + 15 = 0.\)

Solution

Find two numbers whose product equals \(15\) and whose sum equals \(8.\) List the factors of \(15.\)

\[\begin{array}{l} {1 \cdot 15} \\ {3 \cdot 5} \\ {(-1) \cdot (-15)} \\ {(-3) \cdot (-5)} \end{array}\]

The numbers that add to 8 are 3 and 5. Then, write the factors, set each factor equal to zero, and solve.

\[\begin{array}{rcl} {\left( {x + 3} \right)\left( {x + 5} \right)} & = & 0 \\ \left( {x + 3} \right) & = & 0 \\ x & = & -3 \\ \left( {x + 5} \right) & = & 0 \\ x & = & -5 \end{array}\]

The solutions are \(-3\) and \(-5.\)

WarningTry It 5.1.7

Solve the quadratic equation by factoring: \(x^{2} - 4x - 21 = 0.\)

TipExample 5.1.8 — Using the Zero-Product Property to Solve a Quadratic Equation Written as the Difference of Squares

Solve the difference of squares equation using the zero-product property: \(x^{2} - 9 = 0.\)

Solution

Recognizing that the equation represents the difference of squares, we can write the two factors by taking the square root of each term, using a minus sign as the operator in one factor and a plus sign as the operator in the other. Solve using the zero-factor property.

\[\begin{array}{rcl} {x^{2} - 9} & = & 0 \\ {\left( {x - 3} \right)\left( {x + 3} \right)} & = & 0 \\ \left( {x - 3} \right) & = & 0 \\ x & = & 3 \\ \left( {x + 3} \right) & = & 0 \\ x & = & -3 \end{array}\]

The solutions are \(3\) and \(-3.\)

WarningTry It 5.1.9

Solve by factoring: \(x^{2} - 25 = 0.\)

Solving a Quadratic Equation by Factoring when the Leading Coefficient is not 1

When the leading coefficient is not 1, we factor a quadratic equation using the method called grouping, which requires four terms. With the equation in standard form, let’s review the grouping procedures:

  1. With the quadratic in standard form, \(ax^{2} + bx + c = 0,\) multiply \(a \cdot c.\)
  2. Find two numbers whose product equals \(ac\) and whose sum equals \(b.\)
  3. Rewrite the equation replacing the \(bx\) term with two terms using the numbers found in step 2 as coefficients of x.
  4. Factor the first two terms and then factor the last two terms. The expressions in parentheses must be exactly the same to use grouping.
  5. Factor out the expression in parentheses.
  6. Set the expressions equal to zero and solve for the variable.
TipExample 5.1.10 — Solving a Quadratic Equation Using Grouping

Use grouping to factor and solve the quadratic equation: \(4x^{2} + 15x + 9 = 0.\)

Solution

First, multiply \(ac:4(9) = 36.\) Then list the factors of \(36.\)

\[\begin{array}{l} {1 \cdot 36} \\ {2 \cdot 18} \\ {3 \cdot 12} \\ {4 \cdot 9} \\ {6 \cdot 6} \end{array}\]

The only pair of factors that sums to \(15\) is \(3 + 12.\) Rewrite the equation replacing the \(b\) term, \(15x,\) with two terms using 3 and 12 as coefficients of \(x\). Factor the first two terms, and then factor the last two terms.

\[\begin{array}{rcl} {4x^{2} + 3x + 12x + 9} & = & 0 \\ {x(4x + 3) + 3(4x + 3)} & = & 0 \\ {(4x + 3)(x + 3)} & = & 0 \end{array}\]

Solve using the zero-product property.

\[\begin{array}{rcl} {(4x + 3)(x + 3)} & = & 0 \\ {(4x + 3)} & = & 0 \\ x & = & {- \frac{3}{4}} \\ {(x + 3)} & = & 0 \\ x & = & {- 3} \end{array}\]

The solutions are \(- \frac{3}{4},\) and \(-3.\) See the figure below.

Coordinate plane with a parabola crossing the x-axis at the points negative three-fourths and negative 3.

Figure: Coordinate plane with a parabola crossing the x-axis at the points negative three-fourths and negative 3.

WarningTry It 5.1.11

Solve using factoring by grouping: \(12x^{2} + 11x + 2 = 0.\)

TipExample 5.1.12 — Solving a Polynomial of Higher Degree by Factoring

Solve the equation by factoring: \(-3x^{3} - 5x^{2} - 2x = 0.\)

Solution

This equation does not look like a quadratic, as the highest power is 3, not 2. Recall that the first thing we want to do when solving any equation is to factor out the GCF, if one exists. And it does here. We can factor out \(- x\) from all of the terms and then proceed with grouping.

\[\begin{array}{rcl} {-3x^{3} - 5x^{2} - 2x} & = & 0 \\ {- x\left( 3x^{2} + 5x + 2 \right)} & = & 0 \end{array}\]

Use grouping on the expression in parentheses.

\[\begin{array}{rcl} {- x\left( 3x^{2} + 3x + 2x + 2 \right)} & = & 0 \\ {- x\lbrack 3x(x + 1) + 2(x + 1)\rbrack} & = & 0 \\ {- x(3x + 2)(x + 1)} & = & 0 \end{array}\]

Now, we use the zero-product property. Notice that we have three factors.

\[\begin{array}{rcl} {- x} & = & 0 \\ x & = & 0 \\ {3x + 2} & = & 0 \\ x & = & {- \frac{2}{3}} \\ {x + 1} & = & 0 \\ x & = & -1 \end{array}\]

The solutions are \(0,\) \(- \frac{2}{3},\) and \(-1.\)

WarningTry It 5.1.13

Solve by factoring: \(x^{3} + 11x^{2} + 10x = 0.\)

5.1.2 Using the Square Root Property

When there is no linear term in the equation, another method of solving a quadratic equation is by using the square root property, in which we isolate the \(x^{2}\) term and take the square root of the number on the other side of the equals sign. Keep in mind that sometimes we may have to manipulate the equation to isolate the \(x^{2}\) term so that the square root property can be used.

NoteDefinition 5.1.14 — The Square Root Property

With the \(x^{2}\) term isolated, the square root property states that:

\[\text{if}\mspace{9mu} x^{2} = k,\text{then}\mspace{9mu} x = \pm \sqrt{k}\]

where \(k\) is a nonzero real number.

TipHow To 5.1.15

Given a quadratic equation with an \(x^{2}\) term but no \(x\) term, use the square root property to solve it.

  1. Isolate the \(x^{2}\) term on one side of the equal sign.
  2. Take the square root of both sides of the equation, putting a \(\pm\) sign before the expression on the side opposite the squared term.
  3. Simplify the numbers on the side with the \(\pm\) sign.
TipExample 5.1.16 — Solving a Simple Quadratic Equation Using the Square Root Property

Solve the quadratic using the square root property: \(x^{2} = 8.\)

Solution

Take the square root of both sides, and then simplify the radical. Remember to use a \(\pm\) sign before the radical symbol.

\[\begin{array}{ccl} x^{2} & = & 8 \\ x & = & {\pm \sqrt{8}} \\ & = & {\pm 2\sqrt{2}} \end{array}\]

The solutions are \(2\sqrt{2},\) \(-2\sqrt{2}.\)

TipExample 5.1.17 — Solving a Quadratic Equation Using the Square Root Property

Solve the quadratic equation: \(4x^{2} + 1 = \text{7.}\)

Solution

First, isolate the \(x^{2}\) term. Then take the square root of both sides.

\[\begin{array}{rcl} {4x^{2} + 1} & = & 7 \\ {4x^{2}} & = & 6 \\ x^{2} & = & \frac{6}{4} \\ x & = & {\pm \frac{\sqrt{6}}{2}} \end{array}\]

The solutions are \(\frac{\sqrt{6}}{2},\) and \(- \frac{\sqrt{6}}{2}.\)

WarningTry It 5.1.18

Solve the quadratic equation using the square root property: \(3\left( {x - 4} \right)^{2} = 15.\)

5.1.3 Completing the Square

Not all quadratic equations can be factored or can be solved in their original form using the square root property. In these cases, we may use a method for solving a quadratic equation known as completing the square. Using this method, we add or subtract terms to both sides of the equation until we have a perfect square trinomial on one side of the equal sign. We then apply the square root property. To complete the square, the leading coefficient, \(a\), must equal 1. If it does not, then divide the entire equation by \(a\). Then, we can use the following procedures to solve a quadratic equation by completing the square.

We will use the example \(x^{2} + 4x + 1 = 0\) to illustrate each step.

  1. Given a quadratic equation that cannot be factored, and with \(a = 1,\) first add or subtract the constant term to the right side of the equal sign.

    \[x^{2} + 4x = -1\]

  2. Multiply the \(b\) term by \(\frac{1}{2}\) and square it.

    \[\begin{array}{rcl} {\frac{1}{2}(4)} & = & 2 \\ 2^{2} & = & 4 \end{array}\]

  3. Add \(\left( {\frac{1}{2}b} \right)^{2}\) to both sides of the equal sign and simplify the right side. We have

    \[\begin{array}{rcl} {x^{2} + 4x + 4} & = & {- 1 + 4} \\ {x^{2} + 4x + 4} & = & 3 \end{array}\]

  4. The left side of the equation can now be factored as a perfect square.

    \[\begin{array}{rcl} {x^{2} + 4x + 4} & = & 3 \\ {(x + 2)}^{2} & = & 3 \end{array}\]

  5. Use the square root property and solve.

    \[\begin{array}{rcl} \sqrt{{(x + 2)}^{2}} & = & {\pm \sqrt{3}} \\ {x + 2} & = & {\pm \sqrt{3}} \\ x & = & {-2 \pm \sqrt{3}} \end{array}\]

  6. The solutions are \(-2 + \sqrt{3},\operatorname{}\) and \(-2 - \sqrt{3}.\)

TipExample 5.1.19 — Solving a Quadratic by Completing the Square

Solve the quadratic equation by completing the square: \(x^{2} - 3x - 5 = 0.\)

Solution

First, move the constant term to the right side of the equal sign.

\[x^{2} - 3x = 5\]

Then, take \(\frac{1}{2}\) of the \(b\) term and square it.

\[\begin{array}{rcl} {\frac{1}{2}(-3)} & = & {- \frac{3}{2}} \\ \left( {- \frac{3}{2}} \right)^{2} & = & \frac{9}{4} \end{array}\]

Add the result to both sides of the equal sign.

\[\begin{array}{rcl} {x^{2} - 3x + \left( {- \frac{3}{2}} \right)^{2}} & = & {5 + \left( {- \frac{3}{2}} \right)^{2}} \\ {x^{2} - 3x + \frac{9}{4}} & = & {5 + \frac{9}{4}} \end{array}\]

Factor the left side as a perfect square and simplify the right side.

\[\left( {x - \frac{3}{2}} \right)^{2} = \frac{29}{4}\]

Use the square root property and solve.

\[\begin{array}{rcl} \sqrt{\left( {x - \frac{3}{2}} \right)^{2}} & = & {\pm \sqrt{\frac{29}{4}}} \\ \left( {x - \frac{3}{2}} \right) & = & {\pm \frac{\sqrt{29}}{2}} \\ x & = & {\frac{3}{2} \pm \frac{\sqrt{29}}{2}} \end{array}\]

The solutions are \(\frac{3 + \sqrt{29}}{2}\) and \(\frac{3 - \sqrt{29}}{2}\) .

WarningTry It 5.1.20

Solve by completing the square: \(x^{2} - 6x = 13.\)

5.1.4 Using the Quadratic Formula

The fourth method of solving a quadratic equation is by using the quadratic formula, a formula that will solve all quadratic equations. Although the quadratic formula works on any quadratic equation in standard form, it is easy to make errors in substituting the values into the formula. Pay close attention when substituting, and use parentheses when inserting a negative number.

We can derive the quadratic formula by completing the square. We will assume that the leading coefficient is positive; if it is negative, we can multiply the equation by \(-1\) and obtain a positive \(a\). Given \(ax^{2} + bx + c = 0,\) \(a \neq 0,\) we will complete the square as follows:

  1. First, move the constant term to the right side of the equal sign:

    \[ax^{2} + bx = - c\]

  2. As we want the leading coefficient to equal 1, divide through by \(a\):

    \[x^{2} + \frac{b}{a}x = - \frac{c}{a}\]

  3. Then, find \(\frac{1}{2}\) of the middle term, and add \(\left( {\frac{1}{2}\frac{b}{a}} \right)^{2} = \frac{b^{2}}{4a^{2}}\) to both sides of the equal sign:

    \[x^{2} + \frac{b}{a}x + \frac{b^{2}}{4a^{2}} = \frac{b^{2}}{4a^{2}} - \frac{c}{a}\]

  4. Next, write the left side as a perfect square. Find the common denominator of the right side and write it as a single fraction:

    \[\left( {x + \frac{b}{2a}} \right)^{2} = \frac{b^{2} - 4ac}{4a^{2}}\]

  5. Now, use the square root property, which gives

    \[\begin{array}{rcl} {x + \frac{b}{2a}} & = & {\pm \sqrt{\frac{b^{2} - 4ac}{4a^{2}}}} \\ {x + \frac{b}{2a}} & = & \frac{\pm \sqrt{b^{2} - 4ac}}{2a} \end{array}\]

  6. Finally, add \(- \frac{b}{2a}\) to both sides of the equation and combine the terms on the right side. Thus,

    \[x = \frac{- b \pm \sqrt{b^{2} - 4ac}}{2a}\]

NoteDefinition 5.1.21 — The Quadratic Formula

Written in standard form, \(ax^{2} + bx + c = 0,\) any quadratic equation can be solved using the quadratic formula:

\[x = \frac{- b \pm \sqrt{b^{2} - 4ac}}{2a}\]

where \(a\), \(b\), and \(c\) are real numbers and \(a \neq 0.\)

TipHow To 5.1.22

Given a quadratic equation, solve it using the quadratic formula

  1. Make sure the equation is in standard form: \(ax^{2} + bx + c = 0.\)
  2. Make note of the values of the coefficients and constant term, \(a,b,\) and \(c.\)
  3. Carefully substitute the values noted in step 2 into the equation. To avoid needless errors, use parentheses around each number input into the formula.
  4. Calculate and solve.
TipExample 5.1.23 — Solve the Quadratic Equation Using the Quadratic Formula

Solve the quadratic equation: \(x^{2} + 5x + 1 = 0.\)

Solution

Identify the coefficients: \(a = 1,b = 5,c = 1.\) Then use the quadratic formula.

\[\begin{matrix} x & = & \frac{- (5) \pm \sqrt{{(5)}^{2} - 4(1)(1)}}{2(1)} \\ & = & \frac{- 5 \pm \sqrt{25 - 4}}{2} \\ & = & \frac{- 5 \pm \sqrt{21}}{2} \end{matrix}\]

TipExample 5.1.24 — Solving a Quadratic Equation with the Quadratic Formula

Use the quadratic formula to solve \(x^{2} + x + 2 = 0.\)

Solution

First, we identify the coefficients: \(a = 1,b = 1,\) and \(c = 2.\)

Substitute these values into the quadratic formula.

\[\begin{array}{ccl} x & = & \frac{- b \pm \sqrt{b^{2} - 4ac}}{2a} \\ & = & \frac{- (1) \pm \sqrt{{(1)}^{2} - (4) \cdot (1) \cdot (2)}}{2 \cdot 1} \\ & = & \frac{- 1 \pm \sqrt{1 - 8}}{2} \\ & = & \frac{- 1 \pm \sqrt{- 7}}{2} \\ & = & \frac{- 1 \pm i\sqrt{7}}{2} \end{array}\]

The solutions to the equation are \(\frac{- 1 + i\sqrt{7}}{2}\) and \(\frac{- 1 - i\sqrt{7}}{2}\)

WarningTry It 5.1.25

Solve the quadratic equation using the quadratic formula: \(9x^{2} + 3x - 2 = 0.\)

5.1.5 The Discriminant

The quadratic formula not only generates the solutions to a quadratic equation, it tells us about the nature of the solutions when we consider the discriminant, or the expression under the radical, \(b^{2} - 4ac.\) The discriminant tells us whether the solutions are real numbers or complex numbers, and how many solutions of each type to expect. Table 5.1.26 relates the value of the discriminant to the solutions of a quadratic equation.

Value of Discriminant Results
\(b^{2} - 4ac = 0\) One rational solution (double solution)
\(b^{2} - 4ac > 0,\) perfect square Two rational solutions
\(b^{2} - 4ac > 0,\) not a perfect square Two irrational solutions
\(b^{2} - 4ac < 0\) Two complex solutions

Table 5.1.26: Value of the discriminant and corresponding solutions to the quadratic equation \(ax^2+bx+c=0\).

NoteDefinition 5.1.27 — The Discriminant

For \(ax^{2} + bx + c = 0\), where \(a\), \(b\), and \(c\) are real numbers, the discriminant is the expression under the radical in the quadratic formula: \(b^{2} - 4ac.\) It tells us whether the solutions are real numbers or complex numbers and how many solutions of each type to expect.

TipExample 5.1.28 — Using the Discriminant to Find the Nature of the Solutions to a Quadratic Equation

Use the discriminant to find the nature of the solutions to the following quadratic equations:

  1. \(x^{2} + 4x + 4 = 0\)
  2. \(8x^{2} + 14x + 3 = 0\)
  3. \(3x^{2} - 5x - 2 = 0\)
  4. \(3x^{2} - 10x + 15 = 0\)
Solution

Calculate the discriminant \(b^{2} - 4ac\) for each equation and state the expected type of solutions.

  1. \(x^{2} + 4x + 4 = 0\)

    \(b^{2} - 4ac = (4)^{2} - 4(1)(4) = 0.\) There will be one rational double solution.

  2. \(8x^{2} + 14x + 3 = 0\)

    \(b^{2} - 4ac = (14)^{2} - 4(8)(3) = 100.\) As \(100\) is a perfect square, there will be two rational solutions.

  3. \(3x^{2} - 5x - 2 = 0\)

    \(b^{2} - 4ac = (-5)^{2} - 4(3)(-2) = 49.\) As \(49\) is a perfect square, there will be two rational solutions.

  4. \(3x^{2}-10x + 15 = 0\)

    \(b^{2} - 4ac = (-10)^{2} - 4(3)(15) = -80.\) There will be two complex solutions.

5.1.6 Using the Pythagorean Theorem

One of the most famous formulas in mathematics is the Pythagorean Theorem. It is based on a right triangle, and states the relationship among the lengths of the sides as \(a^{2} + b^{2} = c^{2},\) where \(a\) and \(b\) refer to the legs of a right triangle adjacent to the \(90{^\circ}\) angle, and \(c\) refers to the hypotenuse. It has immeasurable uses in architecture, engineering, the sciences, geometry, trigonometry, and algebra, and in everyday applications.

We use the Pythagorean Theorem to solve for the length of one side of a triangle when we have the lengths of the other two. Because each of the terms is squared in the theorem, when we are solving for a side of a triangle, we have a quadratic equation. We can use the methods for solving quadratic equations that we learned in this section to solve for the missing side.

The Pythagorean Theorem is given as

\[a^{2} + b^{2} = c^{2}\]

where \(a\) and \(b\) refer to the legs of a right triangle adjacent to the \(90^{\circ}\) angle, and \(c\) refers to the hypotenuse, as shown below.

Right triangle with legs labeled a and b and hypotenuse labeled c.

Figure 5.1.29: Right triangle with legs labeled \(a\) and \(b\) and hypotenuse labeled \(c\).

TipExample 5.1.30 — Finding the Length of the Missing Side of a Right Triangle

Find the length of the missing side of the right triangle shown below.

Right triangle with one leg of length a, the other leg labeled 4, and the hypotenuse labeled 12.

Figure 5.1.31: Right triangle with one leg of length \(a\), the other leg labeled 4, and the hypotenuse labeled 12.

Solution

As we have measurements for side \(b\) and the hypotenuse, the missing side is a.

\[\begin{array}{ccl} {a^{2} + b^{2}} & = & c^{2} \\ {a^{2} + {(4)}^{2}} & = & {(12)}^{2} \\ {a^{2} + 16} & = & 144 \\ a^{2} & = & 128 \\ a & = & \sqrt{128} \\ & = & {8\sqrt{2}} \end{array}\]

WarningTry It 5.1.32

Use the Pythagorean Theorem to solve the right triangle problem: Leg \(a\) measures 4 units, leg \(b\) measures 3 units. Find the length of the hypotenuse.

5.1.7 Recognizing Characteristics of Parabolas

The graph of a quadratic function is a U-shaped curve called a parabola. One important feature of the graph is that it has an extreme point, called the vertex. If the parabola opens up, the vertex represents the lowest point on the graph, or the minimum value of the quadratic function. If the parabola opens down, the vertex represents the highest point on the graph, or the maximum value. In either case, the vertex is a turning point on the graph. The graph is also symmetric with a vertical line drawn through the vertex, called the axis of symmetry. These features are illustrated below.

An upward-opening parabola with key features marked: vertex, axis of symmetry, x-intercepts, and y-intercept.

Figure 5.1.33: An upward-opening parabola with key features marked: vertex, axis of symmetry, \(x\)-intercepts, and \(y\)-intercept.

The \(y\)-intercept is the point at which the parabola crosses the \(y\)-axis. The \(x\)-intercepts are the points at which the parabola crosses the \(x\)-axis. If they exist, the \(x\)-intercepts represent the zeros, or roots, of the quadratic function, the values of \(x\) at which \(y = 0.\)

TipExample 5.1.34 — Identifying the Characteristics of a Parabola

Determine the vertex, axis of symmetry, zeros, and \(y\ \text{-}\) intercept of the parabola shown below.

An upward-opening parabola with vertex at (3, 1) and y-intercept at (0, 7); the parabola sits entirely above the x-axis.

Figure 5.1.35: An upward-opening parabola with vertex at \((3,\, 1)\) and \(y\)-intercept at \((0,\, 7)\); the parabola sits entirely above the \(x\)-axis.

Solution

The vertex is the turning point of the graph. We can see that the vertex is at \(\left( {3{,}1} \right).\) Because this parabola opens upward, the axis of symmetry is the vertical line that intersects the parabola at the vertex. So the axis of symmetry is \(x = 3.\) This parabola does not cross the \(x\ \text{-}\) axis, so it has no zeros. It crosses the \(y\ \text{-}\) axis at \(\left( {0{,}7} \right)\) so this is the \(y\)-intercept.

5.1.9 Finding the Domain and Range of a Quadratic Function

Any number can be the input value of a quadratic function. Therefore, the domain of any quadratic function is all real numbers. Because parabolas have a maximum or a minimum point, the range is restricted. Since the vertex of a parabola will be either a maximum or a minimum, the range will consist of all \(y\)-values greater than or equal to the \(y\)-coordinate at the turning point or less than or equal to the \(y\)-coordinate at the turning point, depending on whether the parabola opens up or down.

NoteDefinition 5.1.48 — Domain and Range of a Quadratic Function

The domain of any quadratic function is all real numbers unless the context of the function presents some restrictions.

The range of a quadratic function written in general form \(f(x) = ax^{2} + bx + c\) with a positive \(a\) value is \(f(x) \geq f\left( {- \frac{b}{2a}} \right),\) or \(\left\lbrack {f\left( {- \frac{b}{2a}} \right),\infty} \right);\) the range of a quadratic function written in general form with a negative \(a\) value is \(f(x) \leq f\left( {- \frac{b}{2a}} \right),\) or \(\left( {- \infty,f\left( {- \frac{b}{2a}} \right)} \right\rbrack.\)

The range of a quadratic function written in standard form \(f(x) = a{(x - h)}^{2} + k\) with a positive \(a\) value is \(f(x) \geq k;\) the range of a quadratic function written in standard form with a negative \(a\) value is \(f(x) \leq k.\)

TipHow To 5.1.49

Given a quadratic function, find the domain and range.

  1. Identify the domain of any quadratic function as all real numbers.
  2. Determine whether \(a\) is positive or negative. If \(a\) is positive, the parabola has a minimum. If \(a\) is negative, the parabola has a maximum.
  3. Determine the maximum or minimum value of the parabola, \(k.\)
  4. If the parabola has a minimum, the range is given by \(f(x) \geq k,\) or \(\left\lbrack {k,\infty} \right).\) If the parabola has a maximum, the range is given by \(f(x) \leq k,\) or \(\left( {- \infty,k} \right\rbrack.\)
TipExample 5.1.50 — Finding the Domain and Range of a Quadratic Function

Find the domain and range of \(f(x) = - 5x^{2} + 9x - 1.\)

Solution

As with any quadratic function, the domain is all real numbers.

Because \(a\) is negative, the parabola opens downward and has a maximum value. We need to determine the maximum value. We can begin by finding the \(x\ \text{-}\) value of the vertex.

\[\begin{array}{rcl} h & = & {- \frac{b}{2a}} \\ & = & {- \frac{9}{2(-5)}} \\ & = & \frac{9}{10} \end{array}\]

The maximum value is given by \(f(h).\)

\[\begin{array}{ccl} {f\left( \frac{9}{10} \right)} & = & {-5\left( \frac{9}{10} \right)^{2} + 9\left( \frac{9}{10} \right) - 1} \\ & = & \frac{61}{20} \end{array}\]

The range is \(f(x) \leq \frac{61}{20},\) or \(\left( {- \infty,\frac{61}{20}} \right\rbrack.\)

WarningTry It 5.1.51

Find the domain and range of \(f(x) = 2\left( {x - \frac{4}{7}} \right)^{2} + \frac{8}{11}.\)

5.1.10 Determining the Maximum and Minimum Values of Quadratic Functions

The output of the quadratic function at the vertex is the maximum or minimum value of the function, depending on the orientation of the parabola. We can see the maximum and minimum values below.

Two parabola graphs side by side showing how the vertex gives the maximum value (downward-opening) or minimum value (upward-opening) of a quadratic function.

Figure 5.1.52: Two parabola graphs side by side showing how the vertex gives the maximum value (downward-opening) or minimum value (upward-opening) of a quadratic function.

There are many real-world scenarios that involve finding the maximum or minimum value of a quadratic function, such as applications involving area and revenue.

TipExample 5.1.53 — Finding the Maximum Value of a Quadratic Function

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.

  1. Find a formula for the area enclosed by the fence if the sides of fencing perpendicular to the existing fence have length \(L.\)
  2. What dimensions should she make her garden to maximize the enclosed area?
Solution

Let’s use a diagram such as the one below 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 a rectangular garden bordered by a backyard, with three sides fenced and one side along the back; the side along the back has length L and each perpendicular side has length W.

Figure: Diagram of a rectangular garden bordered by a backyard, with three sides fenced and one side along the back; the side along the back has length L and each perpendicular side has length W.

  1. 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 = 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

    \[\begin{array}{rcl} A & = & {LW = L(80 - 2L)} \\ {A(L)} & = & {80L - 2L^{2}} \end{array}\]

    This formula represents the area of the fence in terms of the variable length \(L.\) The function, written in general form, is

    \[A(L) = -2L^{2} + 80L.\]

  2. The quadratic has a negative leading coefficient, so the graph will open downward, and the vertex will be the maximum value for the area. In finding the vertex, we must be careful because the equation is not written in standard polynomial form with decreasing powers. This is why we rewrote the function in general form above. Since \(a\) is the coefficient of the squared term, \(a = -2,b = 80,\) and \(c = 0.\)

    To find the vertex:

    \[\begin{aligned} h &= -\frac{b}{2a} & &\text{and} & k &= A(20) \\ &= -\frac{80}{2(-2)} & & & &= 80(20) - 2(20)^{2} \\ &= 20 & & & &= 800. \end{aligned}\]

    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, there is 40 feet of fencing left 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.

Analysis. This problem also could be solved by graphing the quadratic function. We can see where the maximum area occurs on the graph below.

Graph of the area function A of L equals negative one-half L squared plus 40 L, an upside-down parabola with vertex at (40, 800).

Figure: Graph of the area function \(A(L) = -\tfrac{1}{2}L^2 + 40L\), an upside-down parabola with vertex at \((40, 800)\).

TipHow To 5.1.54

Given an application involving revenue, use a quadratic equation to find the maximum.

  1. Write a quadratic equation for a revenue function.
  2. Find the vertex of the quadratic equation.
  3. Determine the \(y\)-value of the vertex.
TipExample 5.1.55 — Finding Maximum Revenue

The unit price of an item affects its supply and demand. That is, if the unit price goes up, the demand for the item will usually decrease. For example, 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 price per subscription times the number of subscribers, or quantity. We can introduce variables, \(p\) for price per subscription and \(Q\) for quantity, giving us the equation \(\text{Revenue} = pQ.\)

Because the number of subscribers changes with the price, we need to find a relationship between the variables. We know that currently \(p = 30\) and \(Q = 84{,}000.\) We also know that if the price rises to $32, the newspaper would lose 5{,}000 subscribers, giving a second pair of values, \(p = 32\) and \(Q = 79,000.\) From this we can find a linear equation relating the two quantities. The slope will be

\[\begin{array}{ccl} m & = & \frac{79{,}000 - 84{,}000}{32 - 30} \\ & = & \frac{-5{,}000}{2} \\ & = & -2{,}500 \end{array}\]

This tells us the paper will lose 2,500 subscribers for each dollar they raise the price. We can then solve for the \(y\)-intercept.

\[\begin{array}{rclc} Q & = & {-2500p + b} & {\quad \text{Substitute in the point}\ Q = 84{,}000\mspace{9mu}\text{and~}p = 30} \\ 84{,}000 & = & {-2500(30) + b} & {\quad \text{Solve for}\ b} \\ b & = & 159{,}000 & \end{array}\]

This gives us the linear equation \(Q = -2{,}500p + 159{,}000\) relating cost and subscribers. We now return to our revenue equation.

\[\begin{array}{rcl} {Revenue} & = & {pQ} \\ {Revenue} & = & {p(-2{,}500p + 159{,}000)} \\ {Revenue} & = & {-2{,}500p^{2} + 159{,}000p} \end{array}\]

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.

\[\begin{array}{ccl} h & = & {- \frac{159{,}000}{2(-2{,}500)}} \\ & = & 31.8 \end{array}\]

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.

\[\begin{array}{ccl} \text{maximum revenue} & = & {-2{,}500{(31.8)}^{2} + 159{,}000(31.8)} \\ & = & 2{,}528{,}100 \end{array}\]

Analysis. This could also be solved by graphing the quadratic as shown below. We can see the maximum revenue on a graph of the quadratic function.

Graph of the newspaper-revenue quadratic with vertex at the price 31.80 dollars and revenue 2,528,100 dollars.

Figure: Graph of the newspaper-revenue quadratic with vertex at the price 31.80 dollars and revenue 2,528,100 dollars.

Finding the \(x\)- and \(y\)-Intercepts of a Quadratic Function

Much as we did in the application problems above, we also need to find intercepts of quadratic equations for graphing parabolas. Recall that we find the \(y\ \text{-}\) intercept of a quadratic by evaluating the function at an input of zero, and we find the \(x\ \text{-}\) intercepts at locations where the output is zero. The figure below illustrates that the number of \(x\ \text{-}\) intercepts can vary depending upon the location of the graph.

Three side-by-side parabolas illustrating zero, one, and two x-intercepts (the discriminant cases).

Figure: Three side-by-side parabolas illustrating zero, one, and two x-intercepts (the discriminant cases).

TipHow To 5.1.56

Given a quadratic function \(f(x),\) find the \(y\ \text{-}\) and \(x\)-intercepts.

  1. Evaluate \(f(0)\) to find the \(y\)-intercept.
  2. Solve the quadratic equation \(f(x) = 0\) to find the \(x\)-intercepts.
TipExample 5.1.57 — Finding the y- and x-Intercepts of a Parabola

Find the \(y\)- and \(x\)-intercepts of the quadratic \(f(x) = 3x^{2} + 5x - 2.\)

Solution

We find the \(y\)-intercept by evaluating \(f(0).\)

\[\begin{array}{ccl} {f(0)} & = & {3{(0)}^{2} + 5(0) - 2} \\ & = & -2 \end{array}\]

So the \(y\)-intercept is at \(\left( {0,-2} \right).\)

For the \(x\)-intercepts, we find all solutions of \(f(x) = 0.\)

\[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)\]

So the \(x\)-intercepts are at \(\left( {\frac{1}{3},0} \right)\) and \(\left( {- 2{,}0} \right).\)

Analysis. By graphing the function, we can confirm that the graph crosses the \(y\)-axis at \((0,-2).\) We can also confirm that the graph crosses the \(x\)-axis at \(\left( {\frac{1}{3},0} \right)\) and \((-2{,}0).\) See the figure below

Parabola crossing the x-axis at the points (-2, 0) and (one-third, 0), and crossing the y-axis at (0, -2).

Figure: Parabola crossing the x-axis at the points \((-2, 0)\) and \((1/3, 0)\), and crossing the y-axis at \((0, -2)\).

Rewriting Quadratics in Standard Form

In Example 7, the quadratic was easily solved by factoring. However, there are many quadratics that cannot be factored. We can solve these quadratics by first rewriting them in standard form.

TipHow To 5.1.58

Given a quadratic function, find the \(x\ \text{-}\) intercepts by rewriting in standard form.

  1. Substitute \(a\) and \(b\) into \(h = - \frac{b}{2a}.\)
  2. Substitute \(x = h\) into the general form of the quadratic function to find \(k.\)
  3. Rewrite the quadratic in standard form using \(h\) and \(k.\)
  4. Solve for when the output of the function will be zero to find the \(x\ \text{-}\) intercepts.
TipExample 5.1.59 — Finding the x-Intercepts of a Parabola

Find the \(x\ \text{-}\) intercepts of the quadratic function \(f(x) = 2x^{2} + 4x - 4.\)

Solution

We begin by solving for when the output will be zero.

\[0 = 2x^{2} + 4x - 4\]

Because the quadratic is not easily factorable in this case, we solve for the intercepts by first rewriting the quadratic in standard form.

\[f(x) = a\left( {x - h} \right)^{2} + k\]

We know that \(a = 2.\) Then we solve for \(h\) and \(k.\)

\[\begin{array}{cclccl} h & = & {- \frac{b}{2a}} & {\qquad k} & = & {f(-1)} \\ & = & {- \frac{4}{2(2)}} & & = & {2{(-1)}^{2} + 4(-1) - 4} \\ & = & -1 & & = & {\operatorname{}-6} \end{array}\]

So now we can rewrite in standard form.

\[f(x) = 2{(x + 1)}^{2} - 6\]

We can now 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 \(x\)-intercepts at \((-1 - \sqrt{3},0)\) and \((-1 + \sqrt{3},0).\)

We can check our work by graphing the given function on a graphing utility and observing the \(x\ \text{-}\) intercepts. See the figure below.

Parabola with x-intercepts at approximately (-2.732, 0) and (0.732, 0).

Figure: Parabola with x-intercepts at approximately \((-2.732, 0)\) and \((0.732, 0)\).

Analysis. We could have achieved the same results using the quadratic formula. Identify \(a = 2,b = 4\) and \(c = -4.\)

\[\begin{array}{ccl} x & = & \frac{- b \pm \sqrt{b^{2} - 4ac}}{2a} \\ & = & \frac{-4 \pm \sqrt{4^{2} - 4(2)(-4)}}{2(2)} \\ & = & \frac{-4 \pm \sqrt{48}}{4} \\ & = & \frac{-4 \pm \sqrt{3(16)}}{4} \\ & = & {-1 \pm \sqrt{3}} \end{array}\]

So the \(x\)-intercepts occur at \(\left( {- 1 - \sqrt{3},0} \right)\) and \(\left( {- 1 + \sqrt{3},0} \right).\)

WarningTry It 5.1.60

In a an earlier Checkpoint, we found the standard and general form for the function \(g(x) = 13 + x^{2} - 6x.\) Now find the \(y\)- and \(x\)-intercepts (if any).

TipExample 5.1.61 — Applying the Vertex and x-Intercepts of a Parabola

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) = - 16t^{2} + 80t + 40.\)

  1. When does the ball reach the maximum height?
  2. What is the maximum height of the ball?
  3. When does the ball hit the ground?
Solution
  1. The ball reaches the maximum height at the vertex of the parabola.

    \[\begin{array}{ccl} h & = & {- \frac{80}{2(-16)}} \\ & = & \frac{80}{32} \\ & = & \frac{5}{2} \\ & = & 2.5 \end{array}\]

    The ball reaches a maximum height after 2.5 seconds.

  2. To find the maximum height, find the \(y\ \text{-}\) coordinate of the vertex of the parabola.

    \[\begin{array}{ccl} k & = & {H\left( {- \frac{b}{2a}} \right)} \\ & = & {H(2.5)} \\ & = & {-16(2.5)^{2} + 80(2.5) + 40} \\ & = & 140 \end{array}\]

    The ball reaches a maximum height of 140 feet.

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

    \[\begin{array}{ccl} t & = & \frac{-80 \pm \sqrt{80^{2} - 4(-16)(40)}}{2(-16)} \\ & = & \frac{-80 \pm \sqrt{8960}}{-32} \end{array}\]

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

    \[\begin{array}{lll} {t = \frac{- 80 - \sqrt{8960}}{- 32} \approx 5.458} & \text{or} & {t = \frac{- 80 + \sqrt{8960}}{- 32} \approx - 0.458} \end{array}\]

    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. See the figure below.

    Graph of the height function H(t) showing a downward-opening parabola with vertex near t = 2.5 and H approximately 140, crossing the t-axis near t = 5.5.

    Figure: Graph of \(H(t) = -16t^{2} + 80t + 40.\)

    Note that the graph does not represent the physical path of the ball upward and downward. Keep the quantities on each axis in mind while interpreting the graph.

WarningTry It 5.1.62

A rock is thrown upward from the top of a 112-foot high cliff overlooking the ocean at a speed of 96 feet per second. The rock’s height above ocean can be modeled by the equation \(H(t) = -16t^{2} + 96t + 112.\)

  1. When does the rock reach the maximum height?
  2. What is the maximum height of the rock?
  3. When does the rock hit the ocean?

5.1.11 Summary

  • Solving quadratic equations. Four methods, in roughly increasing generality:
    • Factoring + zero product property: fast when the trinomial factors over the integers.
    • Square root property: when there is no linear term.
    • Completing the square: works always; converts to a perfect square.
    • Quadratic formula \(x = \tfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}\): works always.
  • The discriminant \(\Delta = b^2 - 4ac\) tells you the number of real solutions: two if positive, one if zero, none (only complex) if negative.
  • Quadratic functions. Graph is a parabola opening up if \(a > 0\), down if \(a < 0\). Vertex at \((h, k)\) with \(h = -\tfrac{b}{2a}\) and \(k = f(h)\). Axis of symmetry \(x = h\). \(y\)-intercept \((0, c)\).
  • Standard form. \(f(x) = a(x - h)^2 + k\) exposes the vertex; convert via completing the square.
  • Domain and range. Domain \((-\infty, \infty)\); range \([k, \infty)\) if \(a > 0\), \((-\infty, k]\) if \(a < 0\).
  • Optimisation. When a quantity is modelled by a quadratic, the vertex gives the optimum.