sciandu
Mathematics

Mathematics

Transforming functions

Turn one basic function into many: shift, flip, stretch, all with small moves.

What you need first

Once you know a basic function like f(x)=x2f(x) = x^2, you don't have to recompute everything for its relatives. You can take the finished graph and simply shift, flip, or stretch it. A few small moves are enough to turn one curve into a whole family.

Shifting up and down

If you add a number cc on the outside, that is f(x)+cf(x) + c, the whole graph slides up by cc. If cc is negative, it goes down. Every point keeps its x-position, only its height changes. With x2+3x^2 + 3 it is the same as with x2x^2, just three units higher.

f(x)+c(x,y)(x,y+c)f(x) + c \quad\Rightarrow\quad (x,\, y) \longrightarrow (x,\, y + c)
Adding on the outside shifts vertically: every point keeps its xx and gains cc in height.

Shifting left and right

If the number sits on the inside, at f(xd)f(x - d), the graph moves horizontally. Careful, this feels backwards: f(x2)f(x - 2) moves 2 to the right, f(x+2)f(x + 2) moves 2 to the left. The reason: with f(x2)f(x - 2), xx has to grow by 2 before the bracket holds the same value as before. Every height is therefore reached 2 units later, and that is exactly what a shift to the right looks like.

Coordinate grid
a1
c1
-6-6-4-4-2-2224466
y = 1+ 1opens upwards
Move the sliders and watch the parabola travel and stretch without losing its shape.

Stretching and squashing

A factor on the outside, af(x)a \cdot f(x), pulls the graph taller. With a=2a = 2 every height doubles, the curve rises twice as steeply, and that is exactly why a parabola looks narrower. With 0<a<10 < a < 1 every height shrinks and the graph gets flatter. If aa is negative, the graph also flips over the x-axis: a valley becomes a hill.

g(x)=af(xd)+cg(x) = a \cdot f(x - d) + c
All together: aa stretches the heights, the dd in the bracket shifts the graph dd to the right, and the cc on the outside lifts it by cc.

Exercises

0 of 6 solved

Time to try it yourself. You can't break anything, every attempt counts.

How do you get the graph of f(x)+4f(x) + 4 from the graph of f(x)f(x)?

In which direction does f(x3)f(x - 3) shift the graph?

Let f(x)=x2f(x) = x^2. What is the value of f(x)+5f(x) + 5 at x=2x = 2?

Match each change to f(x)f(x) with its effect on the graph.

f(x)2f(x) - 2
f(x+2)f(x + 2)
f(x)-f(x)
2f(x)2 \cdot f(x)

Let f(x)=x2f(x) = x^2. The graph is shifted 3 to the right, so g(x)=(x3)2g(x) = (x - 3)^2. What is the value of gg at x=5x = 5?

A negative aa in af(x)a \cdot f(x) flips the graph over the .

Where this leads