A211 of 29
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A2 · Lesson 11 · Transforming graphs

Shift, stretch and flip

A signal arrives at an amplifier. The output is the same shape, but taller, a little later, and sitting on top of a DC level. Engineers describe that with one formula built from the input's formula. If the input is f(t), what is the output?

Play

  • The dashed curve is the original shape f(x): a big bump at 0 and a small one to its right. The solid curve is Af(b(x−h))+k.
  • Move one slider at a time and say what it does: h, then k, then A, then b.
  • Make A negative, then make b negative. Each one flips the shape. Which way?

Predict

The formula has (x−h). When you set h=2, which way does the curve move?

Name it

Four changes, and what each one does

Starting from any function f(x), the general transformed version is

y=Af(b(x−h))+k
ChangeWhat it does
hshifts the curve right by h (left if h is negative)
kshifts it up by k
Astretches it vertically by A; a negative A flips it upside down
bsqueezes it horizontally by b (it gets b times narrower); a negative b flips it left to right

Changes inside the function's brackets act on x, and they act backward: −h moves the curve toward +h, and multiplying x by b=2 makes the curve half as wide. Changes outside the brackets act on y the way they look.

In signals these have names you'll use constantly:

  • v(t−t0) is v delayed by t0.
  • Av(t) is v amplified by a gain of A; a negative gain inverts it.
  • v(t)+VDC is v with a DC offset added.
  • v(bt) is v sped up by a factor b: everything happens b times sooner, so its frequencies are b times higher.

Order matters when you undo them. To find where a point of the original lands, apply them in the order inside to outside: shift by h and squeeze by b first, then stretch by A and lift by k. A point at (x0,y0) on the original moves to (h+x0/b,Ay0+k).

Worked example

Describe how g(x)=−2(x+1)2+3 is built from x2, and find its vertex.

Show the solution
  1. Shift. Reading from the inside out, x+1 shifts the graph 1 to the left.
  2. Stretch. The factor 2 stretches it vertically by 2.
  3. Flip. The minus sign flips it upside down.
  4. Lift. The +3 lifts it up by 3.
  5. Move the vertex. The vertex of x2 at (0,0) moves to (−1,3), and since the parabola is flipped, it's now the highest point.

Answer g is x2 shifted 1 left, stretched vertically by 2, flipped and lifted 3, and its vertex is the highest point, (−1,3).

Worked example

A sensor's signal is sin⁡(2π⋅50t). Write the version that arrives 2 ms late, five times bigger, sitting on a 1 V offset.

Show the solution
  1. Delay by 2 ms. Replace t with t−0.002: sin⁡(2π⋅50(t−0.002))
  2. Scale by 5 and add 1. v(t)=1+5sin⁡(2π⋅50(t−0.002))
  3. Turn the delay into a phase. Expanded, the delay is a phase of 2π⋅50×0.002=0.628rad=36°
  4. Write it with the phase. v(t)=1+5sin⁡(2π⋅50t−36°)

Answer v(t)=1+5sin⁡(2π⋅50(t−0.002)), which is the same as 1+5sin⁡(2π⋅50t−36°).

Worked example

Fahrenheit is a stretch and a shift of Celsius: F=1.8C+32. Describe it as transformations, find its inverse, and find the temperature that reads the same on both scales.

Show the solution
  1. Describe the transformations. Starting from C, stretch by 1.8 (a Fahrenheit degree is smaller), then shift up by 32.
  2. Undo them. Reverse the steps in the opposite order: subtract 32, then divide by 1.8: C=F−321.8
  3. Find where the scales agree. Set F=C: C=1.8C+32−0.8C=32C=−40 At −40 the scales read the same.

Answer Fahrenheit is Celsius stretched by 1.8 and shifted up 32. The inverse is C=(F−32)/1.8, and the two scales read the same at −40.

Check

Write f(x)=x2 shifted 3 to the right.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

A signal v(t) goes through an amplifier with a gain of −3. Which describes the output?

Check

The point (2,1) is on the graph of f. Where does it land, horizontally, on the graph of 2f(0.5(x−(2)))+(−1)? Give the new x.

Check

Take f(x)=x3, stretch it horizontally to twice its width, then flip it upside down. Write the result.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

g(x)=−2(x−2)2+7.

(a)

What is g(0), where the graph crosses the vertical axis?

(b)

What is the larger x where the graph crosses the horizontal axis?

Check

Put ax2+bx+c into vertex form a(x−h)2+k by completing the square.

Step 1

What is h?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does subtracting h inside the function move the graph to the right?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.