### Learning Outcomes

- Graph vertical and horizontal shifts of quadratic functions
- Graph vertical compressions and stretches of quadratic functions
- Write the equation of a transformed quadratic function using the vertex form
- Identify the vertex and axis of symmetry for a given quadratic function in vertex form

The **standard form of a quadratic function** presents the function in the form

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

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

The standard form is useful for determining how the graph is transformed from the graph of [latex]y={x}^{2}[/latex]. The figure below is the graph of this basic function.

## Shift Up and Down by Changing the Value of [latex]k[/latex]

You can represent a vertical (up, down) shift of the graph of [latex]f(x)=x^2[/latex] by adding or subtracting a constant, [latex]k[/latex].

[latex]f(x)=x^2 + k[/latex]

If [latex]k>0[/latex], the graph shifts upward, whereas if [latex]k<0[/latex], the graph shifts downward.

### Example

Determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been shifted up 4 units. Also, determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been shifted down 4 units.

## Shift left and right by changing the value of [latex]h[/latex]

You can represent a horizontal (left, right) shift of the graph of [latex]f(x)=x^2[/latex] by adding or subtracting a constant, [latex]h[/latex], to the variable [latex]x[/latex], before squaring.

[latex]f(x)=(x-h)^2 [/latex]

If [latex]h>0[/latex], the graph shifts toward the right and if [latex]h<0[/latex], the graph shifts to the left.

### Example

Determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been shifted right 2 units. Also, determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been shifted left 2 units.

## Stretch or compress by changing the value of [latex]a[/latex].

You can represent a stretch or compression (narrowing, widening) of the graph of [latex]f(x)=x^2[/latex] by multiplying the squared variable by a constant, [latex]a[/latex].

[latex]f(x)=ax^2 [/latex]

The magnitude of [latex]a[/latex] indicates the stretch of the graph. If [latex]|a|>1[/latex], the point associated with a particular [latex]x[/latex]-value shifts farther from the [latex]x[/latex]*–*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 [latex]x[/latex]-value shifts closer to the [latex]x[/latex]*–*axis, so the graph appears to become wider, but in fact there is a vertical compression.

### Example

Determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been compressed vertically by a factor of [latex]\frac{1}{2}[/latex]. Also, determine the equation for the graph of [latex]f(x)=x^2[/latex] that has been vertically stretched by a factor of 3.

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.

This is the [latex]x[/latex] coordinate of the vertex and [latex]x=-\dfrac{b}{2a}[/latex] is the **axis of symmetry** we defined earlier. Setting the constant terms equal gives us:

In practice, though, it is usually easier to remember that [latex]h[/latex] is the output value of the function when the input is [latex]h[/latex], so [latex]f\left(h\right)=f\left(-\dfrac{b}{2a}\right)=k[/latex].

### Try It

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?