Start from
Take . Its graph is a parabola with its vertex at (0, −4). It meets the x-axis where , which is where , at x = −2 and x = 2. It also passes through (3, 5), because f(3) = 9 − 4 = 5.
meets the x-axis at (−2, 0) and (2, 0), and its vertex is (0, −4).
Replace x by 2x
Now put 2x in place of x: . The 2 is inside the bracket, so it acts on the input: x is doubled before f does anything to it.
Where does the new graph meet the x-axis? f gives 0 when its input is 2 or −2, so f(2x) = 0 when 2x = 2 or 2x = −2, which is at x = 1 and x = −1. And f gives 5 when its input is 3, so f(2x) = 5 when 2x = 3, at x = 1.5. Each time, the new graph reaches the height at half the x that the old graph needed.
Every height, at half the distance
The reason is the same as for a translation inside the bracket. In f(x + a), the bracket is always a more than x, so the graph reaches every height a units earlier and moves left. In f(2x), the bracket is always twice x, so it reaches any value when x is only half that value. So the new graph reaches every height at half the distance from the y-axis.
Put as a rule: if (p, q) is on y = f(x), then is on y = f(2x), because the bracket then holds , and f(p) = q. Every point keeps its height and moves to half its distance from the y-axis. The graph is squashed toward the y-axis: every width is divided by 2.
This is called a horizontal stretch, or a stretch parallel to the x-axis, with scale factor ½. In general, y = f(ax) moves each point (p, q) of y = f(x) to , a stretch with scale factor .
The white curve is and the gold curve is . The crossings have moved from −2 and 2 in to (−1, 0) and (1, 0), and at the height 5 the point (3, 5) has moved to (1.5, 5).
The y-axis stays where it is
A point on the y-axis has x = 0, and 0 ÷ 2 = 0, so it does not move. The vertex (0, −4) is on both graphs: f(2 × 0) = f(0) = −4.
No height changes either. The lowest value of f(2x) is −4, the same as the lowest value of f(x). A horizontal stretch changes where each height is reached, never the height itself.
A factor between 0 and 1
Now halve x instead: . f gives 0 when its input is 2 or −2, so this is 0 when or , which is at x = 4 and x = −4. The bracket is always half of x, so x has to be twice as big for the bracket to reach each value.
Here a = ½, and dividing each x by ½ doubles it: (2, 0) moves to (4, 0) and (3, 5) moves to (6, 5). The graph is stretched away from the y-axis, a horizontal stretch with scale factor 2.
The white curve is and the gold curve is , which crosses the x-axis further out, at (−4, 0) and (4, 0).
Outside multiplies, inside divides
Follow the point (3, 5) of through both stretches with the factor 2. On y = 2f(x), the 2 is outside the bracket, so it multiplies the height: (3, 5) moves to (3, 10). On y = f(2x), the 2 is inside, so it divides the x: (3, 5) moves to (1.5, 5). Check both: 2f(3) = 2 × 5 = 10, and f(2 × 1.5) = f(3) = 5.
So a number outside the bracket acts as it reads, on the heights, and leaves the points on the x-axis fixed. A number inside the bracket acts in reverse, on the widths, dividing where it seems to multiply, and leaves the points on the y-axis fixed. It is the same reversal as with a translation, where a plus sign inside the bracket moves the graph left.
A negative factor inside
With a = −1, y = f(−x) moves each point (p, q) to (−p, q): the same height, on the other side of the y-axis. So f(−x) is the reflection of y = f(x) in the y-axis.
For , with its vertex at (1, 0), , since a number and its negative have the same square. Its vertex is at (−1, 0), the mirror image of (1, 0) in the y-axis.
The usual mistakes
Multiplying the x instead of dividing. If (6, 5) is on y = f(x), then on y = f(2x) it moves to (3, 5), because the bracket holds 2 × 3 = 6. (12, 5) would be a stretch outward.
Changing the height. A number inside the bracket never touches the heights: (6, 5) keeps its height 5 on y = f(2x). Doubling the height to 10 is what y = 2f(x) does.
Leaving the crossings where they were. Only a vertical stretch keeps the points on the x-axis. If y = f(x) crosses at x = 6, y = f(2x) crosses at x = 3.
Worked example: A Platform Dive Replayed in Slow Motion: The Moments on Screen, and the Replay Speed That Fills a Five-Second Slot
Question A diver leaves a 10 m platform, and x seconds later her height above the water is f(x) = 10 + 5x − 5x2 meters, until she enters the water. (a) A slow-motion replay shows the dive at a quarter of its real speed, so x seconds into the replay her height is f(0.25x) meters. Find how many seconds into this replay she is at her highest point, and how many seconds into it she enters the water. (b) A second replay must fill a slot of exactly 5 seconds, from the moment she leaves the platform to the moment she enters the water, and it shows her height as f(ax) meters. Find a, and write her height in this replay as a function of x.
1.First find the two moments of the real dive. She enters the water when f(x) = 0: 10 + 5x − 5x2 = 0, so x2 − x − 2 = 0 and (x − 2)(x + 1) = 0. The root x = −1 is before she left the platform, so it is rejected, and she enters the water at x = 2. The highest point is on the axis of symmetry, halfway between the roots, at x = −1 + 22 = 0.5, where f(0.5) = 10 + 2.5 − 1.25 = 11.25 m.
The real dive: 10 + 5x − 5x2 = 0 gives x = 2, and the highest point is at x = 0.5, a height of 11.25 m. 2.In the replay the height is f(0.25x), so at time x the replay shows the real moment 0.25x. A real moment appears when 0.25x equals it, which is when x is that moment divided by 0.25, or 4 times it. The graph is stretched sideways with scale factor 4, and every height stays the same.
The replay f(0.25x) is the same graph stretched sideways with scale factor 4: every time is divided by 0.25, and every height stays. 3.(a) The highest point: 0.25x = 0.5, so x = 2 seconds into the replay. Entering the water: 0.25x = 2, so x = 8 seconds into the replay. Check: f(0.25 × 8) = f(2) = 10 + 10 − 20 = 0.
(a) The highest point comes 2 seconds into the replay, and she enters the water 8 seconds into it. 4.The second replay must show the real moment 2 seconds at x = 5, so a × 5 = 2 and a = 25 = 0.4. The graph is stretched sideways with scale factor 10.4 = 2.5, and 2 × 2.5 = 5 seconds, as the slot requires.
To fill the slot, the replay must reach the real moment 2 at x = 5: 5a = 2, so a = 0.4, a stretch with scale factor 2.5. 5.(b) Replace every x in f by 0.4x: f(0.4x) = 10 + 5(0.4x) − 5(0.4x)2 = 10 + 2x − 0.8x2 meters. Check: at x = 5 the height is 10 + 10 − 20 = 0, and the highest point is at x = 0.50.4 = 1.25, where the height is 10 + 2.5 − 1.25 = 11.25 m, the same as in the real dive.
(b) a = 0.4, and the height is f(0.4x) = 10 + 2x − 0.8x2 meters. Every curve reaches the same 11.25 m.
Answer: (a) at her highest point 2 seconds into the replay, and into the water 8 seconds into it; (b) a = 0.4, and her height is 10 + 2x − 0.8x2 meters
Common mistakes
- Multiplying the times by 0.25 because the bracket holds 0.25x, which puts her entry into the water at 0.5 seconds. That replay would be four times faster than the dive, not slower. A number multiplying x inside the bracket divides every time on the graph by that number.
- Taking a = 2.5, the scale factor of the stretch. The height f(2.5x) reaches the water when 2.5x = 2, at 0.8 seconds, which squeezes the dive instead of stretching it. The bracket must hold the real time, so a × 5 = 2 and a = 0.4.