Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
Scale heights with y=af(x), stretching when a>1
Flip across the x-axis with y=−f(x)
Compress toward the y-axis with y=f(bx) when b>1
Mirror across the y-axis with y=f(−x)
Recognize y=a(x−h)2+k as vertex form for a parabola
Vertical stretches and compressions: scale the output
Take the familiar graph y=x2. The point (1,1) sits at height 1. Multiply every output by 2,
giving y=2x2, and at that same input 1 the height becomes 2×1=2, twice as far from the
x-axis.
The same idea works for any function f and any positive constant a:
y=af(x).
Each input still passes through f, but whatever comes out is then multiplied by a. Because the output
is the height of the graph, scaling every output by a moves every point that same factor farther from the
x-axis when a>1, or closer to it when 0<a<1, whether the point sits above the axis or below it.
We call the first a vertical stretch and the second a vertical compression.
The case a=1 leaves the graph unchanged.
For f(x)=x2 and a=3, the point (−1,1) becomes (−1,3): the height triples while the input
stays fixed.
In general, let g(x)=af(x) with a>0. At each input x in the domain,
g(x)=af(x).
Thus the old point (x,f(x)) becomes (x,af(x)). This describes every point of the new graph,
because the domain is unchanged. The distance from the x-axis changes from ∣f(x)∣
to a∣f(x)∣, including when the output is negative.
So a>1 stretches vertically, 0<a<1 compresses vertically, and a=1 leaves the graph unchanged.
Finally, af(x)=0 exactly when f(x)=0, since a=0. The x-intercepts are therefore unchanged.
∎
If (x0,y0) lies on y=f(x), then (x0,ay0) lies
on y=af(x): keep the input, multiply the height by a.
The dashed parabola is y = x squared. Multiplying every output by 2 gives the solid parabola y = 2x squared, which rises twice as high above each input, so it looks narrower and steeper. The point (1, 1) rises to (1, 2), while the vertex (0, 0) stays fixed because twice a height of 0 is still 0.
Worked example 1Stretch and compress y=x2
Both new rules keep f(x)=x2 and only rescale its outputs, so transform the points you already know instead
of building a fresh table.
For y=2x2, multiply every height by 2. The vertex (0,0) stays at (0,0) because
2×0=0, while the anchor points (1,1) and (2,4) climb to
(1,2×1)=(1,2),(2,2×4)=(2,8).
The bowl passes through those higher points, so it looks narrower and steeper, though it still opens upward
from the same vertex.
For y=21x2, multiply every height by 21 instead. The same anchor points sink to
(1,21),(2,2),
so this bowl is wider and flatter. In both cases the vertex and the single x-intercept at the origin never
budge. Scaling a height of 0 leaves it at 0, so only the nonzero heights move.
Check your understanding
The point (3,4) lies on the graph of y=f(x). Which point must lie on the graph of y=5f(x)?
Multiplying by 5 outside the function is a vertical stretch, so keep the input and multiply the height by 5.
(3,5×4)=(3,20)
The input 3 does not change, which rules out (15,4) and (8,4); the height is multiplied, not added to, which rules out (3,9).
Reflecting across the x-axis: negate the output
The case a=−1 deserves its own name. The rule
y=−f(x)
negates every output, sending a point at height y0 to height −y0. A point above the horizontal axis
drops to the mirror-image spot the same distance below it, and a point below rises to the matching spot
above. That is exactly a reflection across the x-axis: the graph flips over that axis like a card
turning face down. Points sitting on the axis have height 0, and −0=0, so they stay fixed and act as
the hinge of the flip.
A negative scale factor with size other than 1 just does both jobs at once. Writing a=−∣a∣,
the rule y=af(x) scales every height by ∣a∣ and then negates it, so it stretches or
compresses vertically and reflects across the x-axis together.
The dashed parabola y = x squared opens upward with a lowest point at the origin. Negating every output gives the solid parabola y = negative x squared, the same bowl reflected across the x-axis so it opens downward with a highest point at the origin. The point (1, 1) flips to (1, negative 1).
Worked example 2Reflect y=x2 across the x-axis
The rule y=−x2 is y=−f(x) with f(x)=x2, so it takes the familiar upward bowl and negates every
output. Track a few points by flipping the sign of each height:
(1,1)⟶(1,−1),(2,4)⟶(2,−4).
The vertex (0,0) stays put, since −0=0. Plotting the flipped points gives the same parabola turned
upside down, so it now opens downward. The origin that used to be its lowest point is now its highest.
The width is the same, because reflecting only reverses the sign of each height without rescaling
it.
Horizontal stretches and compressions: the direction that looks backward again
Now change the input instead of the output. Replace x with bx for a positive constant b:
y=f(bx).
You might expect multiplying the input by 2 to widen the graph; it narrows it.
When b>1, each nonzero input coordinate moves closer to the y-axis: the graph is compressed
horizontally. As with shifts, solve for the new input that reproduces an old input.
For example, if (8,5) lies on y=f(x), that same height reappears on y=f(2x) at input 4, because
2×4=8: half of the original input, not double it. The proof below shows why
this works in general.
If f(6)=1, then g(x)=f(3x) has g(2)=f(6)=1. The point (6,1) becomes (2,1),
so its input coordinate is divided by 3.
Let g(x)=f(bx) with b>0, and take any input p in the domain of f. To feed f this input,
solve
bx=p⟹x=bp.
Substituting gives g(p/b)=f(p). Thus (p,f(p)) becomes (p/b,f(p)): the input is divided by
b and the output stays fixed. Conversely, every allowed input x of g gives an old input
p=bx, so this accounts for the entire new graph.
For b>1, each nonzero input is closer to 0, giving a horizontal compression. For 0<b<1,
it is farther from 0, giving a horizontal stretch. For b=1, nothing changes. A point on the
y-axis stays fixed because 0/b=0.
∎
Replacing x with 2x pulls the whole curve in toward the y-axis by a factor of one half. The dashed curve y = f(x) has its peak at input 2; on the solid curve y = f(2x) that peak reappears at input 1, because the inside 2x equals 2 exactly when x = 1. Every input is halved, so b = 2 compresses the graph rather than stretching it.
Worked example 3Locate points and intercepts on y=f(2x) and y=f(2x)
Suppose (8,5) lies on y=f(x), and suppose f has x-intercepts at x=2 and x=6. Handle the two
scalings by asking, in each case, what input makes the inside equal an old input.
For y=f(2x), a point reappears where 2x equals the old input. To get the height 5 back, set the
inside equal to 8:
2x=8⟹x=4,
so (8,5) moves to (4,5), half the input. The x-intercepts move the same way: 2x=2 gives x=1
and 2x=6 gives x=3, so the zeros at 2 and 6 are pulled in to 1 and 3. With b=2>1 the
whole graph is compressed toward the vertical axis by a factor of 21.
For y=f(2x), the inside is 2x, so b=21. Now
2x=8 gives x=16, so (8,5) moves out to (16,5). The zeros stretch out too, to x=4
and x=12. Because 0<b<1, the graph is stretched away from the vertical axis by a factor of
b1=2.
Check your understanding
How is the graph of y=f(4x) related to the graph of y=f(x)?
Multiplying the input by b=4 scales every input by b1=41, so each point is pulled toward the vertical axis.
4x=p⇒x=4p
Because b=4>1 this compresses the graph horizontally rather than stretching it, and the change is horizontal, not vertical, so it is not a vertical stretch or a shift.
Reflecting across the y-axis: negate the input
The case b=−1 is the horizontal partner of the x-axis reflection. The rule
y=f(−x)
feeds f the opposite input. Following the derivation above, a point (p,f(p)) reappears where the inside
−x equals p, that is, at x=−p, so it moves to (−p,f(p)). Every point keeps its height but lands
at the opposite horizontal position, which is a reflection across the y-axis: the graph flips left to
right. A point already on the vertical axis has p=0, and −0=0, so it stays fixed and serves as the
hinge.
The dashed curve y = f(x) leans to the right, with its peak above input 2. Replacing x with negative x gives the solid curve y = f(negative x), the same shape flipped left to right across the y-axis, with its peak above input negative 2. Each point keeps its height and swaps to the opposite side of the vertical axis.
Worked example 4Reflect a graph across the y-axis
Suppose f passes through (3,5) and (−1,2), and its only x-intercept is at x=4. Describe the
graph of y=f(−x).
Reflection across the y-axis keeps every height and flips the sign of every input, so map each feature by
negating its first coordinate:
(3,5)⟶(−3,5),(−1,2)⟶(1,2).
The x-intercept at x=4 moves to x=−4, since setting the inside −x=4 gives x=−4. Any point
that happened to sit on the y-axis, where the input is 0, would not move at all.
Check your understanding
The point (−6,2) lies on the graph of y=f(x). Which point must lie on the graph of y=f(−x)?
Negating the input reflects the graph across the y-axis, which flips the sign of the input while the height stays the same.
(−6,2)⟶(6,2)
The height 2 is unchanged, which rules out the options that negate it; only the horizontal position flips sides.
For any negative b, the same input equation bx=p gives x=p/b. This combines a horizontal
scaling by 1/∣b∣ with reflection across the y-axis. For example, (6,4) becomes
(−3,4) under f(−2x).
The scaling rules here use nonzero factors. If a=0, then af(x)=0 at every input in the
original domain. If b=0, then f(bx)=f(0) is constant for all real x when 0 is in the
domain of f; otherwise the expression is undefined. These cases do not stretch a graph.
Combining a scaling with a shift
Scalings and shifts stack, so a rule can do several things at once. Reading it correctly means separating
what happens to the output from what happens to the input. For a vertical scaling followed by a shift,
y=af(x−h)+k,
the inside x−h moves the graph right by h, while the outside multiplies each height by a and then
adds k. Track a single point to see the order: a point (p,q) on y=f(x) reappears at
(p+h,aq+k).
The input picks up the shift h, and the output is first scaled by a (which also flips it when a is
negative) and then raised by k. The horizontal part touches only the first coordinate and the vertical
part only the second, exactly as with pure shifts.
For a=0, this gives the vertex form you already know, now read as a transformation. The rule
y=a(x−h)2+k takes y=x2, scales it vertically by a (reflecting it downward when a<0), then
moves the vertex to (h,k). The number a controls how narrow the bowl is and which way it opens; h and
k say where its vertex sits.
The dashed parabola y = x squared opens upward from the origin. The rule y = negative 2x squared multiplies every output by negative 2, so it reflects across the x-axis and stretches to twice the height, giving the solid downward parabola. The point (1, 1) lands at (1, negative 2), and the shared vertex at the origin is now a maximum instead of a minimum.
Worked example 5Graph y=−2x2
Read the rule y=−2x2 as y=ax2 with a=−2, a single number that does two jobs. Its size,
∣a∣=2, stretches the bowl vertically to twice its height, and its sign, negative, reflects
it across the x-axis so it opens downward.
Apply both to the anchor points of y=x2. Multiply each height by −2:
(1,1)⟶(1,−2),(2,4)⟶(2,−8).
The vertex (0,0) holds still, since −2×0=0. Plotting the results gives a downward parabola,
narrower than y=x2, whose highest point is the origin.
Worked example 6Include an actual shift: y=−2(x−3)2+1
That last example had no shift at all, since h=0 and k=0. Here is a rule where every part is doing
something: a=−2, h=3, k=1. Track it with the point rule from before, (p,q)→(p+h,aq+k).
The vertex of y=x2 at (0,0) becomes the vertex of this parabola at (3,1): shifted right 3 and up
1. Because a=−2 is negative, the graph opens downward and is twice as steep as y=x2.
Check your understanding
What is the vertex of the parabola y=−3(x−5)2+2?
In vertex form y=a(x−h)2+k, the vertex is always (h,k).
h=5,k=2⟹(5,2)
Reading x−5 as x−h gives h=5, not −5; the sign of a tells you only whether the parabola opens up or down, not where its vertex sits.
The scalings and reflections are worth keeping in one place. In each row, a>1 and b>1.
Rule
Effect on the graph of y=f(x)
y=af(x)
vertical stretch by a (taller)
y=a1f(x)
vertical compression: heights multiply by a1
y=−f(x)
reflection across the x-axis
y=f(bx)
horizontal compression: x-coordinates multiply by b1 (narrower)
y=f(bx)
horizontal stretch: x-coordinates multiply by b (wider)
y=f(−x)
reflection across the y-axis
Check your understanding
The parabola y=−3x2 transforms y=x2. Which description is correct?
Write −3x2 as ax2 with a=−3. The size ∣a∣=3 is a vertical stretch, and the negative sign reflects the graph across the x-axis so it opens downward.
(1,1)⟶(1,−3)
The factor multiplies the output, not the input, so it is a vertical stretch, not a y-axis reflection or a shift. An output factor above 1 stretches rather than compresses.
Tracking domain and range
Scaling also reshapes the domain and range: a vertical scaling touches only the range, and a horizontal
scaling touches only the domain.
Suppose f has domain 0≤x≤8 and range −2≤y≤6. Track the domain and range of two
transformed graphs.
For y=−2f(x), only the outputs change, so the domain stays 0≤x≤8. Each output is multiplied by
−2, which scales the range endpoints and swaps them because the factor is negative:
−2×(−2)=4,−2×6=−12,
so the new range runs from the lower value up, −12≤y≤4.
For y=f(2x), only the inputs change, so the range stays −2≤y≤6. Each input is divided by 2
(the inside 2x reaches the old inputs at half the x), so the domain endpoints halve:
0≤x≤8⟶0≤x≤4.
The graph is squeezed into half the horizontal room while covering the same heights.
The same endpoint rule works for a negative horizontal factor. On y=f(−2x), the old domain
endpoints 0 and 8 become 0 and −4, so the new domain is −4≤x≤0. Multiplying or
dividing by a negative number reverses the order, just as in inequalities. Included endpoints
stay included, and excluded endpoints stay excluded.
Common mistakes
Practice
Multiple Choice Questions (MCQ)
Progressively harder sets of questions. Each opens on its own page.
Practice problems at the level of the course, to be worked out on paper. Hints one at a
time, then the answer or the full worked solution, with your progress kept in this browser.
Could an artist find one perfect set of human proportions? Albrecht Durer, a German painter who
studied geometry, spent nearly thirty years investigating this question. Around 1500 he hoped
to construct an ideal figure mathematically, something an artist could use directly in a picture.
He measured several hundred people and gradually abandoned
the search for a single ideal. Instead, he assembled different sets of proportions for bodies of
different shapes and sizes. The illustrations showed whole figures from more than one direction,
as well as facial types, hands, feet, and geometric diagrams. In the third part of the book,
he changed proportions by mathematical rules to produce very broad and very thin figures.
That part also explored the construction of heads: measured shapes could become starting
points for deliberate transformations.
His book was nearly finished when he died in 1528. His widow Agnes published it that year.