The general form of a quadratic function presents the function in the form
where a, b, and c are real numbers and [latex]a\ne 0.[/latex] If [latex]a>0,[/latex] the parabola opens upward. If [latex]a<0,[/latex] the parabola opens downward. We can use the general form of a parabola to find the equation for the axis of symmetry.
The axis of symmetry is defined by [latex]x=-\frac{b}{2a}.[/latex] If we use the quadratic formula, [latex]x=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a},[/latex] to solve [latex]a{x}^{2}+bx+c=0[/latex] for the x-intercepts, or zeros, we find the value of x halfway between them is always [latex]x=-\frac{b}{2a},[/latex] the equation for the axis of symmetry.
Figure 4 shows the graph of the quadratic function written in general form as [latex]y={x}^{2}+4x+3.[/latex] In this form, [latex]a=1,\text{ }b=4,[/latex] and [latex]c=3.[/latex] Because [latex]a>0,[/latex] the parabola opens upward. The axis of symmetry is [latex]x=-\frac{4}{2\left(1\right)}=-2.[/latex] This also makes sense because we can see from the graph that the vertical line [latex]x=-2[/latex] divides the graph in half. The vertex always occurs along the axis of symmetry. For a parabola that opens upward, the vertex occurs at the lowest point on the graph, in this instance, [latex]\left(-2,-1\right).[/latex] The x-intercepts, those points where the parabola crosses the x-axis, occur at [latex]\left(-3,0\right)[/latex] and [latex]\left(-1,0\right).[/latex]
The standard form of a quadratic function presents the function in the form
where [latex]\left(h,\text{ }k\right)[/latex] is the vertex. Because the vertex appears in the standard form of the quadratic function, this form is also known as the vertex form of a quadratic function.
As with the general form, if [latex]a>0,[/latex] the parabola opens upward and the vertex is a minimum. If [latex]a<0,[/latex] the parabola opens downward, and the vertex is a maximum. Figure 5 is the graph of the quadratic function written in standard form as [latex]y=-3{\left(x+2\right)}^{2}+4.[/latex] Since [latex]x-h=x+2[/latex] in this example, [latex]h=-2.[/latex] In this form, [latex]a=-3,\text{ }h=-2,[/latex] and [latex]k=4.[/latex] Because [latex]a<0,[/latex] the parabola opens downward. The vertex is at [latex]\left(-2,\text{ 4}\right).[/latex]
The standard form is useful for determining how the graph is transformed from the graph of [latex]y={x}^{2}.[/latex] Figure 6 is the graph of this basic function.
If [latex]k>0,[/latex] the graph shifts upward, whereas if [latex]k<0,[/latex] the graph shifts downward. In Figure 5, [latex]k>0,[/latex] so the graph is shifted 4 units upward. If [latex]h>0,[/latex] the graph shifts toward the right and if [latex]h<0,[/latex] the graph shifts to the left. In Figure 5, [latex]h<0,[/latex] so the graph is shifted 2 units to the left. The magnitude of a indicates the stretch of the graph. If [latex]|a|>1,[/latex] the point associated with a particular x-value shifts farther from the x-axis, so the graph appears to become narrower, and there is a vertical stretch. But if [latex]|a|<1,[/latex] the point associated with a particular x-value shifts closer to the x-axis, so the graph appears to become wider, but in fact there is a vertical compression. In Figure 5, [latex]|a|>1,[/latex] so the graph becomes narrower.
The standard form and the general form are equivalent methods of describing the same function. We can see this by expanding out the general form and setting it equal to the standard form.
For the linear terms to be equal, the coefficients must be equal.
This is the axis of symmetry we defined earlier. Setting the constant terms equal:
In practice, though, it is usually easier to remember that k is the output value of the function when the input is h, so [latex]f\left(h\right)=k.[/latex]
A General Note: Forms of Quadratic Functions
A quadratic function is a function of degree two. The graph of a quadratic function is a parabola. The general form of a quadratic function is [latex]f\left(x\right)=a{x}^{2}+bx+c[/latex] where a, b, and c are real numbers and [latex]a\ne 0.[/latex]
The standard form of a quadratic function is [latex]f\left(x\right)=a{\left(x-h\right)}^{2}+k.[/latex]
The vertex [latex]\left(h,k\right)[/latex] is located at
How To: Given a graph of a quadratic function, write the equation of the function in general form.
- Identify the horizontal shift of the parabola; this value is h. Identify the vertical shift of the parabola; this value is k.
- Substitute the values of the horizontal and vertical shift for h and k. in the function [latex]f\left(x\right)=a{\left(x-h\right)}^{2}+k.[/latex]
- Substitute the values of any point, other than the vertex, on the graph of the parabola for x and [latex]f\left(x\right).[/latex]
- Solve for the stretch factor, |a|.
- Expand and simplify to write in general form.
Example 2: Writing the Equation of a Quadratic Function from the Graph
Write an equation for the quadratic function g in the graph below as a transformation of [latex]f\left(x\right)={x}^{2},[/latex] and then expand the formula, and simplify terms to write the equation in general form.
Solution
We can see the graph of g is the graph of [latex]f\left(x\right)={x}^{2}[/latex] shifted to the left 2 and down 3, giving a formula in the form [latex]g\left(x\right)=a{\left(x+2\right)}^{2}-3.[/latex]
Substituting the coordinates of a point on the curve, such as [latex]\left(0,-1\right),[/latex] we can solve for the stretch factor.
In standard form, the algebraic model for this graph is [latex]\left(g\right)x=\frac{1}{2}{\left(x+2\right)}^{2}-3.[/latex]
To write this in general polynomial form, we can expand the formula and simplify terms.
Notice that the horizontal and vertical shifts of the basic graph of the quadratic function determine the location of the vertex of the parabola; the vertex is unaffected by stretches and compressions.
Try It 1
A coordinate grid has been superimposed over the quadratic path of a basketball in the picture below. Find an equation for the path of the ball. Does the shooter make the basket?
How To: Given a quadratic function in general form, find the vertex of the parabola.
- Identify a, b, and c.
- Find h, the x-coordinate of the vertex, by substituting a and b into [latex]h=-\frac{b}{2a}.[/latex]
- Find k, the y-coordinate of the vertex, by evaluating [latex]k=f\left(h\right)=f\left(-\frac{b}{2a}\right).[/latex]
Example 3: Finding the Vertex of a Quadratic Function
Find the vertex of the quadratic function [latex]f\left(x\right)=2{x}^{2}-6x+7.[/latex] Rewrite the quadratic in standard form (vertex form).
Solution
The horizontal coordinate of the vertex will be at
The vertical coordinate of the vertex will be at
Rewriting into standard form, the stretch factor will be the same as the [latex]a[/latex] in the original quadratic.
Using the vertex to determine the shifts,
Analysis of the Solution
One reason we may want to identify the vertex of the parabola is that this point will inform us where the maximum or minimum value of the output occurs, (k), and where it occurs, (x).
Try It 2
Given the equation [latex]g\left(x\right)=13+{x}^{2}-6x,[/latex] write the equation in general form and then in standard form.
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.
A General Note: Domain and Range of a Quadratic Function
The domain of any quadratic function is all real numbers.
The range of a quadratic function written in general form [latex]f\left(x\right)=a{x}^{2}+bx+c[/latex] with a positive a value is [latex]f\left(x\right)\ge f\left(-\frac{b}{2a}\right),[/latex] or [latex]\left[f\left(-\frac{b}{2a}\right),\infty \right);[/latex] the range of a quadratic function written in general form with a negative a value is [latex]f\left(x\right)\le f\left(-\frac{b}{2a}\right),[/latex] or [latex]\left(-\infty ,f\left(-\frac{b}{2a}\right)\right].[/latex]
The range of a quadratic function written in standard form [latex]f\left(x\right)=a{\left(x-h\right)}^{2}+k[/latex] with a positive a value is [latex]f\left(x\right)\ge k;[/latex] the range of a quadratic function written in standard form with a negative a value is [latex]f\left(x\right)\le k.[/latex]
How To: Given a quadratic function, find the domain and range.
- Identify the domain of any quadratic function as all real numbers.
- 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.
- Determine the maximum or minimum value of the parabola, k.
- If the parabola has a minimum, the range is given by [latex]f\left(x\right)\ge k,[/latex] or [latex]\left[k,\infty \right).[/latex] If the parabola has a maximum, the range is given by [latex]f\left(x\right)\le k,[/latex] or [latex]\left(-\infty ,k\right].[/latex]
Example 4: Finding the Domain and Range of a Quadratic Function
Find the domain and range of [latex]f\left(x\right)=-5{x}^{2}+9x - 1.[/latex]
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-value of the vertex.
The maximum value is given by [latex]f\left(h\right).[/latex]
The range is [latex]f\left(x\right)\le \frac{61}{20},[/latex] or [latex]\left(-\infty ,\frac{61}{20}\right].[/latex]
Try It 3
Find the domain and range of [latex]f\left(x\right)=2{\left(x-\frac{4}{7}\right)}^{2}+\frac{8}{11}.[/latex]
Candela Citations
- Precalculus. Authored by: Jay Abramson, et al.. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175. License: CC BY: Attribution. License Terms: Download For Free at : http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.
Analysis of the Solution
We can check our work using the table feature on a graphing utility. First enter [latex]\text{Y1}=\frac{1}{2}{\left(x+2\right)}^{2}-3.[/latex] Next, select [latex]\text{TBLSET,}[/latex] then use [latex]\text{TblStart}=-6[/latex] and [latex]\Delta \text{Tbl = 2,}[/latex] and select [latex]\text{TABLE}\text{.}[/latex]
The ordered pairs in the table correspond to points on the graph.