Function Transformations Calculator

Choose a base function and its a, b, h and k to transform it.

Base function

The parent graph f(x) that is transformed.

Not 0. A negative number also flips the graph upside down.

Not 0. A negative number also flips the graph left to right.

A negative number shifts left.

A negative number shifts down.

Try

Result

You enteredf(x)=x2f(x) = x^{2}

g(x)=2(x−3)2−1: shift right 3, stretch vertically by 2, shift down 1\displaystyle g(x) = 2\left(x - 3\right)^{2} - 1:\ \text{shift right 3, stretch vertically by 2, shift down 1}

The new function

g(x)=2(x−3)2−1\displaystyle g(x) = 2\left(x - 3\right)^{2} - 1
Show the work
  1. Transformations of a graph

    Start from the base graph f(x)=x2f(x) = x^{2}. The number hh slides it sideways, bb stretches or squeezes it horizontally (a negative bb also flips it), aa stretches or squeezes it vertically (a negative aa also flips it), and kk slides it up or down.

    g(x)=a f ⁣(b(x−h))+k=2(x−3)2−1\begin{aligned} g(x) &= a\,f\!\left(b\left(x - h\right)\right) + k \\ &= 2\left(x - 3\right)^{2} - 1 \end{aligned}
  2. Horizontal shift

    Replacing xx by x−hx - h with h=3h = 3 moves every point right by 33.

    x→x−3x \to x - 3
  3. Vertical stretch or compression

    Multiplying every output by ∣a∣=2|a| = 2 stretches the graph away from the x-axis by a factor of 22.

    y→2yy \to 2y
  4. Vertical shift

    Adding k=−1k = -1 to every output moves the whole graph down by 11.

    y→y−1y \to y - 1
  5. Result

    So g(x)=2(x−3)2−1g(x) = 2\left(x - 3\right)^{2} - 1: shift right 3, stretch vertically by 2, shift down 1.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = (x)^2
  • y = (2)*((1)*(x - (3)))^2 + (-1)

Points on the graph

  • y = (x)^2: zero (0, 0)
  • y = (x)^2: minimum (0, 0)
  • y = (2)*((1)*(x - (3)))^2 + (-1): zero (2.292893, 0)
  • y = (2)*((1)*(x - (3)))^2 + (-1): zero (3.707107, 0)
  • y = (2)*((1)*(x - (3)))^2 + (-1): minimum (3, -1)
  • y = (x)^2 and y = (2)*((1)*(x - (3)))^2 + (-1): intersection (1.641101, 2.693213)
  • y = (x)^2 and y = (2)*((1)*(x - (3)))^2 + (-1): intersection (10.358899, 107.306787)

Worked examples