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 , what is the output?
Play
- The dashed curve is the original shape : a big bump at 0 and a small one to its right. The solid curve is .
- Move one slider at a time and say what it does: , then , then , then .
- Make negative, then make negative. Each one flips the shape. Which way?
Predict
The formula has . When you set , which way does the curve move?
2 to the right. The new curve at shows what the old one showed at , so every feature turns up 2 later: the big bump that was at 0 is now at 2. It feels backward because of the minus sign, but it's what a delay looks like: a signal delayed by is .
Name it
Four changes, and what each one does
Starting from any function , the general transformed version is
| Change | What it does |
|---|---|
| shifts the curve right by (left if is negative) | |
| shifts it up by | |
| stretches it vertically by ; a negative flips it upside down | |
| squeezes it horizontally by (it gets times narrower); a negative flips it left to right |
Changes inside the function's brackets act on , and they act backward: moves the curve toward , and multiplying by makes the curve half as wide. Changes outside the brackets act on the way they look.
In signals these have names you'll use constantly:
- is delayed by .
- is amplified by a gain of ; a negative gain inverts it.
- is with a DC offset added.
- is sped up by a factor : everything happens times sooner, so its frequencies are 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 and squeeze by first, then stretch by and lift by . A point at on the original moves to .
Worked example
Describe how is built from , and find its vertex.
Show the solution
- Shift. Reading from the inside out, shifts the graph 1 to the left.
- Stretch. The factor 2 stretches it vertically by 2.
- Flip. The minus sign flips it upside down.
- Lift. The lifts it up by 3.
- Move the vertex. The vertex of at moves to , and since the parabola is flipped, it's now the highest point.
Answer is shifted 1 left, stretched vertically by 2, flipped and lifted 3, and its vertex is the highest point, .
Worked example
A sensor's signal is . Write the version that arrives 2 ms late, five times bigger, sitting on a 1 V offset.
Show the solution
- Delay by 2 ms. Replace with :
- Scale by 5 and add 1.
- Turn the delay into a phase. Expanded, the delay is a phase of
- Write it with the phase.
Answer , which is the same as .
Worked example
Fahrenheit is a stretch and a shift of Celsius: . Describe it as transformations, find its inverse, and find the temperature that reads the same on both scales.
Show the solution
- Describe the transformations. Starting from , stretch by 1.8 (a Fahrenheit degree is smaller), then shift up by 32.
- Undo them. Reverse the steps in the opposite order: subtract 32, then divide by 1.8:
- Find where the scales agree. Set : At −40 the scales read the same.
Answer Fahrenheit is Celsius stretched by 1.8 and shifted up 32. The inverse is , and the two scales read the same at −40.
Check
Write 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 goes through an amplifier with a gain of −3. Which describes the output?
Check
The point is on the graph of . Where does it land, horizontally, on the graph of ? Give the new x.
Check
Take , 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
.
(a)
What is , where the graph crosses the vertical axis?
(b)
What is the larger where the graph crosses the horizontal axis?
Check
Put into vertex form by completing the square.
Step 1
What is ?
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°.
Step 2
What is ?
Step 3
Write the whole vertex form.
Explain why
Why does subtracting inside the function move the graph to the right?
The new curve's value at is the old curve's value at . So whatever the old curve did at some point , the new curve does where , which is at . Every feature happens later along the axis, so the whole graph moves right by . It's the same idea as a delay: the delayed signal shows now what the original showed seconds ago.
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.