topic badge

10.03 Quadratic functions in vertex form

Introduction

We learned about a different form of quadratic functions in lesson  10.02 Quadratic functions in factored form  . The vertex form of a quadratic function highlights the coordinates of the vertex and, as a result, the axis of symmetry. This reveals the transformations we learned about in lesson  6.05 Transformations of functions  , so it is important to know how to rewrite a quadratic function in vertex form.

Vertex form

Exploration

Use the orange, blue, and red sliders to change the quadratic functions.

Loading interactive...
  1. What happens to the orange graph as the slider moves from a positive to a negative number?
  2. What happens to the blue graph as the slider moves from a positive to a negative number?
  3. What happens to the red graph as the slider moves from a positive to a negative number?

One way to represent quadratic functions is using vertex form. This form allows us to identify the coordinates of the vertex of the parabola, as well as the direction of opening and scale factor that compresses or stretches the graph of the function.

\displaystyle f\left(x\right) = a\left(x - h\right)^2 + k
\bm{\left(h, k\right)}
coordinates of the vertex
\bm{a}
scale factor

When given the graph of the function, we can write the equation in vertex form using transformations.

The x-value of the vertex, h, represents the horizontal translation; the y-value, k, represents the vertical translation; and the leading coefficient, a, represents the shape of the parabola and the direction it opens. The parent function of a quadratic is f(x)=x^2, so writing these translations in function notation becomes af(x-h)+k=a(x-h)^2+k.

-4
-3
-2
-1
1
2
3
4
x
-4
-3
-2
-1
1
2
3
4
y

As an example, consider the graph of \\y=\left(x-2\right)^2-3

  • Translation of the parent function 3 units down and 2 units right with a vertex at \left(2, -3\right)
  • Axis of symmetry x=2
  • y-intercept at \left(0,1\right) can be calculated by substituting x=0 into the function

When writing a quadratic function from its graph, we can begin by identifying the vertex and substituting these values into the function for h and k. Then, we can use another point on the parabola, like the y-intercept, to help us find the value of a.

Examples

Example 1

The table of values below represents a quadratic function.

x-4-3-2-1012
p(x)-503430-5
a

Write the function p(x) in vertex form.

Worked Solution
Create a strategy

We can use the fact that a quadratic function has symmetry about its vertex to identify the location of the vertex from the table.

Apply the idea

Looking at the values of p\left(x\right), we can see that it has a maximum value of 4 and falls off symmetrically on either side. So we know that the vertex is the point \left(-1, 4\right), and therefore the quadratic is of the form p\left(x\right) = a\left(x + 1\right)^2 + 4

We can now find the value of a by substituting any other pair of values from the table, such as \left(0, 3\right). Doing so, we get 3 = a\left(0 + 1\right)^2 + 4which we can solve to get a=-1.

So the quadratic function shown in the table of values is p\left(x\right) = -\left(x + 1\right)^2 + 4

b

Determine the value of p(x) when x=6.

Worked Solution
Create a strategy

We can substitute x = 6 into the equation that was created in part (a) in order to predict what p(x) will be equal to.

Apply the idea

The equation found in part (a) is

\displaystyle p(x)\displaystyle =\displaystyle -(x+1)^2+4Original equation
\displaystyle p(6)\displaystyle =\displaystyle -(6+1)^2+4Substitute x=6
\displaystyle =\displaystyle -(7)^2+4Evaluate the addition
\displaystyle =\displaystyle -49+4Evaluate the exponent
\displaystyle =\displaystyle -45Evaluate the addition

This means that when x=6, p(x) is equal to -45.

c

Determine the x- and y-intercepts of the function.

Worked Solution
Create a strategy

Use the table of values to identify the x-intercepts when y=0 and the y-intercept when x=0.

Apply the idea

The x-intercepts occur at (-3,0) and (1,0).

The y-intercept occurs at (0,3).

Example 2

The quadratic function f\left(x\right) = 2x^2 has been transformed to produce a new quadratic function g\left(x\right), as shown in the graph:

-8
-6
-4
-2
2
x
-2
2
4
6
8
y
a

Describe the transformation from f\left(x\right) to g\left(x\right).

Worked Solution
Apply the idea

The function g\left(x\right) has the same shape and size as f\left(x\right), but has been shifted to the left. Comparing the vertices of the two parabolas, we can see that this is a translation of 6 units to the left.

Reflect and check

We could confirm that g(x) is a horizontal shift left by evaluating f(x+6)=2(x+6)^2:

g(-8)=8 and f(-8+6)=2(-8+6)^2=2(-2)^2=2(4)=8

g(-6)=0 and f(-6+6)=2(-6+6)^2=2(0)^2=2(0)=0

g(-4)=8 and f(-4+6)=2(-4+6)^2=2(2)^2=2(4)=8

b

Write the equation of the function g\left(x\right) in vertex form.

Worked Solution
Create a strategy

Remember that vertex form for a quadratic is g\left(x\right) = a\left(x - h\right)^2 + k, where the vertex is at the point \left(h, k\right).

Apply the idea

f\left(x\right) = 2x^2 has been translated 6 units to the left to produce g\left(x\right), and we can see that its vertex is at \left(-6, 0\right). So g\left(x\right) has can be written as g\left(x\right) = 2\left(x + 6\right)^2.

c

Describe the transformations of the graph of g(x) resulting in the function h(x)=-2(x+6)^{2} +3.

Worked Solution
Create a strategy

Since g(x) opens upward and has a vertex at (-6,0), the vertex form of h(x) gives information about its vertex and direction of its opening.

Apply the idea

The function h(x) will open downward and be a reflection of g(x) across the x-axis, since the value of a became negative.

The vertex of h(x) is (-6, 3). The vertex became a maximum value and shifted the graph up 3 units.

d

Sketch the graph of h(x).

Worked Solution
Create a strategy

Use the description of the transformations of g(x) from part (c) and graph of g(x) to sketch h(x).

Apply the idea

Start by reflecting g(x) across the x-axis using points from its graph.

-8
-6
-4
-2
2
x
-8
-6
-4
-2
2
4
6
8
y

Perform a vertical shift 3 units up.

-8
-6
-4
-2
2
x
-8
-6
-4
-2
2
4
6
8
y

The graph of h(x) follows:

-8
-6
-4
-2
2
x
-8
-6
-4
-2
2
4
6
8
y

Example 3

Meri throws a rock into Crescent Lake. The height of the rock above ground is a quadratic function of time. The rock is thrown from 4.4 \text{ ft} above ground. After 1.5 seconds, the rock reaches its maximum height of 24 \text{ ft}. Write the quadratic equation in vertex form.

Worked Solution
Create a strategy

The maximum height of the rock at 24 feet indicates that this is where the vertex of the function is located. This occurs at 1.5 seconds. Substitute the vertex of the graph and the y-intercept into the vertex form of a quadratic function to detrmine the equation.

Apply the idea

The vertex is located at (1.5, 24), so we can substitute h=1.5 and k=24.

The rock is thrown from 4.4 feet, so the y-intercept is located at (0,4.4) and we can substitute x=0 and y=4.4.

\displaystyle y\displaystyle =\displaystyle a(x-h)^{2}+kVertex form of a quadratic function
\displaystyle 4.4\displaystyle =\displaystyle a(0-1.5)^{2}+24Substitute x=0, y=4.4, h=1.5, and k=24
\displaystyle -19.6\displaystyle =\displaystyle a(-1.5)^2Subtract 24 from both sides
\displaystyle -19.6\displaystyle =\displaystyle a(2.25)Evaluate the exponent
\displaystyle -8.7\displaystyle =\displaystyle aDivide by 2.25 on both sides

The quadratic equation in vertex form that models the rock's height above the ground as a function of time is y=-8.7(x-1.5)^{2}+24.

Idea summary

The vertex form of a quadratic function is:

\displaystyle f\left(x\right) = a\left(x - h\right)^2 + k
\bm{\left(h, k\right)}
coordinates of the vertex
\bm{a}
scale factor

Changing the values of a, h, and k will transform the graph in different ways:

  • a: vertical stretch or compression
  • h: horizontal translation
  • k: vertical translation

Completing the square

Exploration

  • Drag the blue slider to the right until the number 23 is shown in blue
  • Drag the red slider to the right to create the largest square possible without any missing pieces.
  • Check the box "Complete the square"
  • Repeat this process by changing the value of the blue and red sliders to any value of your choice
Loading interactive...
  1. What patterns do you notice when working through the process of completing the square?

Completing the square is a method we use to rewrite a standard quadratic expression in vertex form.

Completing the square allows us to rewrite our equation so that it contains a perfect square trinomial. A perfect square trinomial takes on the form A^2+2AB+B^2=\left(A+B\right)^2, which is the same format we need to have an equation in vertex form.

For quadratic equations where a=1, we can write them in perfect square form by following these steps:

1\displaystyle y\displaystyle =\displaystyle x^2+bx+c
2\displaystyle y\displaystyle =\displaystyle x^2+2\left(\frac{b}{2}\right)x+cRewrite the x term
3\displaystyle y\displaystyle =\displaystyle x^2+2\left(\frac{b}{2}\right)x+\left(\frac{b}{2}\right)^2+c-\left(\frac{b}{2}\right)^2Add and subtract \left(\dfrac{b}{2}\right)^2 to keep the equation balanced
4\displaystyle y\displaystyle =\displaystyle \left(x+\frac{b}{2}\right)^2+c-\left(\frac{b}{2}\right)^2Factor the perfect square trinomial
5\displaystyle y\displaystyle =\displaystyle (x-h)^{2}+kMatch the completed square to vertex form

If a \neq 1, we can first divide through by a to factor it out.

The quadratic equation, when rewritten by completing the square, becomes the vertex form of a quadratic equation.

Examples

Example 4

Consider the following equation:y = x^{2} - 4 x + 6

a

Rewrite the equation in vertex form by completing the square.

Worked Solution
Create a strategy

We'll follow the standard complete the square method and stop working once our equation is in vertex form, y = a(x - h)^2 + k.

Apply the idea
\displaystyle y\displaystyle =\displaystyle x^{2} - 4 x + 6Original equation
\displaystyle y\displaystyle =\displaystyle x^{2} - 4 x + \left(\frac{-4}{2}\right)^{2} + 6 - \left(\frac{-4}{2}\right)^{2}Add and subtract \left(\frac{b}{2}\right)^2
\displaystyle y\displaystyle =\displaystyle x^{2} - 4 x + 4 + 6 - 4 Evaluate the exponents
\displaystyle y\displaystyle =\displaystyle (x - 2)^{2} + 6 - 4Factor x^{2} - 4 x + 4
\displaystyle y\displaystyle =\displaystyle (x - 2)^{2} + 2Evaluate the subtraction

We've completed the square and the equation is now in vertex form.

Reflect and check

We must add and subtract \left(\dfrac{b}{2}\right)^{2} to the RHS of the equation so that the value of the equation does not change.

b

Determine the vertex of the quadratic function and if it is a minimum or maximum.

Worked Solution
Create a strategy

Use the vertex form of the quadratic function from part (a) to determine its vertex and whether it is a minimum or maximum value.

Apply the idea

The quadratic function in vertex form is y=(x-2)^{2} +2, meaning the vertex is located at the point (2,2).

Since the value of a is 1, we know that the graph opens upward and the vertex is a minimum value.

c

Sketch the graph of the parabola.

Worked Solution
Create a strategy

We can find key points of our parabola to sketch it. In part (a) we found the x-value of the vertex, and in part (b) we found the vertex form of our equation which shows us the y-value of our vertex. We can also use the vertex form to consider the x- and y-intercepts.

Apply the idea

The y-value of the vertex is 2 since the vertex form of the equation is y=(x-2)^2 + 2. This means that the vertex is located at (2,2). We know the scale factor a is 1, so the parabola opens upward. Since the vertex is above the x-axis and opens up, the graph will not cross the x-axis and there are no x-intercepts.

Find the y-intercept:

\displaystyle y\displaystyle =\displaystyle (x-2)^2 + 2Vertex form of the equation
\displaystyle y\displaystyle =\displaystyle (0-2)^2 + 2Substitute x=0
\displaystyle y\displaystyle =\displaystyle 6Evaluate

Therefore the y-intercept is (0, 6).

We can use the vertex and y-intercept to sketch the parabola, remembering there is an axis of symmetry at the vertex.

1
2
3
4
5
6
x
1
2
3
4
5
6
7
8
9
y
Idea summary

A quadratic function in standard form can be converted to vertex form by completing the square:

1\displaystyle y\displaystyle =\displaystyle x^2+bx+c
2\displaystyle y\displaystyle =\displaystyle x^2+2\left(\frac{b}{2}\right)x+cRewrite the x term
3\displaystyle y\displaystyle =\displaystyle x^2+2\left(\frac{b}{2}\right)x+\left(\frac{b}{2}\right)^2+c-\left(\frac{b}{2}\right)^2Add and subtract \left(\dfrac{b}{2}\right)^2 to keep the equation balanced
4\displaystyle y\displaystyle =\displaystyle \left(x+\frac{b}{2}\right)^2+c-\left(\frac{b}{2}\right)^2Factor the perfect square trinomial
5\displaystyle y\displaystyle =\displaystyle (x-h)^{2}+kMatch the completed square to vertex form

If a \neq 1, we can first divide through by a to factor it out.

Outcomes

A.SSE.B.3.B

Complete the square in a quadratic expression to reveal the maximum or minimum value of the function it defines.

A.CED.A.2

Create equations in two or more variables to represent relationships between quantities; graph equations on coordinate axes with labels and scales.

F.IF.B.4

For a function that models a relationship between two quantities, interpret key features of graphs and tables in terms of the quantities, and sketch graphs showing key features given a verbal description of the relationship. Key features include: intercepts; intervals where the function is increasing, decreasing, positive, or negative; relative maximums and minimums; symmetries; end behavior; and periodicity.

F.IF.C.7

Graph functions expressed symbolically and show key features of the graph, by hand in simple cases and using technology for more complicated cases.

F.IF.C.7.A

Graph linear and quadratic functions and show intercepts, maxima, and minima.

F.IF.C.8

Write a function defined by an expression in different but equivalent forms to reveal and explain different properties of the function.

F.IF.C.8.A

Use the process of factoring and completing the square in a quadratic function to show zeros, extreme values, and symmetry of the graph, and interpret these in terms of a context.

F.BF.A.1

Write a function that describes a relationship between two quantities.

F.BF.A.1.A

Determine an explicit expression, a recursive process, or steps for calculation from a context.

F.BF.B.3

Identify the effect on the graph of replacing f(x) by f(x) + k, kf(x), f(kx), and f(x + k) for specific values of k (both positive and negative); find the value of k given the graphs. Experiment with cases and illustrate an explanation of the effects on the graph using technology. Include recognizing even and odd functions from their graphs and algebraic expressions for them.

What is Mathspace

About Mathspace