On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Scaling Functions

Scaling a function multiplies the output by a constant (vertical stretch/compress) or the input by a constant (horizontal stretch/compress), altering amplitude or period while keeping the shape.

y=c⋅f(x) stretches vertically by factor ∣c∣; reflects over x-axis if c<0

Quick Answer

Scaling a function multiplies the output by a constant (vertical stretch/compress) or the input by a constant (horizontal stretch/compress), altering amplitude or period while keeping the shape. Use it when a graph is a parent curve made taller, flatter, wider or narrower. A multiplier outside, c⋅f(x), multiplies every height by c; a multiplier inside, f(cx), squeezes the graph toward the y-axis by a factor of c, the opposite of what many people expect. So 3sin⁡x waves three times as high, while sin⁡3x repeats three times as often.

Why This Matters

Scaling lets one parent graph describe many situations: a louder tone is Asin⁡x with a bigger A, a faster spin is sin⁡(bx) with a bigger b. Knowing which multiplier controls height and which controls width lets you read amplitude and period straight from a formula, and it prevents the common slip of thinking f(2x) stretches a graph when it squeezes it.

Intuitive Explanation

Start with f(x)=x2 and the points (1,1), (2,4), (3,9). The function 3f(x)=3x2 keeps each input and triples each output: (1,3), (2,12), (3,27). Every point moves straight away from the x-axis by a factor of 3, and points on the axis, such as (0,0), stay put. That is a vertical stretch.

A multiplier inside acts on the input, so it works backward. For g(x)=f(2x)=(2x)2, the output 4 that f reached at x=2 now arrives at x=1, because 2⋅1=2. Every feature arrives at half the input, so the graph is squeezed toward the y-axis by a factor of 12, and f(x2) would stretch it to twice the width. For waves, the width of one cycle is the period: sin⁡2x completes a cycle in π instead of 2π.

Adding is not scaling. x2+3 lifts every point by the same 3 units, so the vertex moves from (0,0) to (0,3); 3x2 multiplies, so the vertex stays at (0,0) and points farther from the axis move farther. A negative multiplier scales and flips at once: −2f(x) doubles every distance from the x-axis and reflects the graph across it.

Think of it like this. Vertical scaling is turning up the volume on a sound wave: every crest and trough grows in proportion, and silence stays silent. Horizontal scaling is playing the recording faster: f(2x) plays at double speed, so each cycle takes half as long. With real audio the pitch rises too, which on the graph simply means a shorter period.

Core idea. Scaling multiplies a function's output (vertical) or input (horizontal) by a constant, changing its size or period but not its essential shape.


When to Use

Look for a multiplier: a number in front of the whole function, c⋅f(x), or multiplying the input inside it, f(cx). Problem wording includes amplitude, period, "twice as tall" or "compressed". Decide inside or outside first, because the two act on different axes and the inside factor works inversely. If the constant is added rather than multiplied, it is a shift; if the multiplier is exactly −1, it is a pure reflection.

Tip. Ask: Is the function the same shape multiplied by a constant on the output or input (not shifted)?

How to Recognize It

Before scaling, find where the multiplier sits, outside the whole function or inside next to x, and whether its size is bigger or smaller than 1.

  1. Does the constant multiply the whole output, as in 3f(x), rather than the input, as in f(3x)?

    If yes, the graph stretches vertically: every height is tripled and points on the x-axis stay put. If the constant is inside, the change is horizontal and by the reciprocal, so f(3x) is squeezed to one third of the width.

  2. Is the multiplier between 0 and 1, like 12?

    If yes, the effect reverses: 12f(x) flattens the graph to half its height, while f(12x) stretches it to twice the width.

  3. Is the multiplier negative?

    If yes, the graph is also reflected: −2f(x) doubles every height and flips the graph over the x-axis. Treat it as a scaling by ∣c∣ together with a reflection.

  4. Is the constant added rather than multiplied, as in f(x)+3 or f(x+3)?

    If yes, the graph slides without changing size, which is shifting, not scaling. A quick test: a vertical scaling leaves the zeros where they were, while a vertical shift moves them.

Scaling Functions compared with Shifting functions, Vertical vs. horizontal scaling, and Reflecting functions

Shifts, stretches and reflections all turn a parent graph into a new one, and their formulas can differ by a single symbol. Ask whether the constant multiplies or adds, whether it sits inside or outside, and whether it carries a minus sign.

Scaling Functions

Meaning
Use this when a graph is the same shape as a parent but multiplied taller/shorter or wider/narrower.
Key test
Is the function the same shape multiplied by a constant on the output or input (not shifted)?
Formula
y=c⋅f(x) stretches vertically by factor ∣c∣; reflects over x-axis if c<0
Example
Graph y=2sin⁡x compared to y=sin⁡x. What changes?

Shifting functions

Meaning
Adds a constant to move the graph, no size change.
Key test
Use when the graph slides position rather than stretches.
Formula
f(x−h)+k
Example
y=x2+3 moves up 3, same width

Vertical vs. horizontal scaling

Meaning
c⋅f(x) scales output (amplitude); f(cx) scales input (period).
Key test
Use vertical for amplitude problems, horizontal for period/frequency.
Formula
c f(x) vs f(cx)
Example
3sin⁡x vs sin⁡3x

Reflecting functions

Meaning
A negative multiplier flips the graph rather than only resizing it.
Key test
Use when c<0, which adds a mirror flip on top of the scaling.
Formula
−f(x), f(−x)
Example
y=−2x2 stretches and flips down

Formula & Notation

y=c⋅f(x) stretches vertically by factor ∣c∣; reflects over x-axis if c<0
g(x)=c f(x): if f(a)=0 then g(a)=0; g(x)=f(cx): g has period p∣c∣ if f has period p

How to read it: c⋅f(x): ∣c∣>1 stretches, 0<∣c∣<1 compresses. f(cx): ∣c∣>1 compresses horizontally, 0<∣c∣<1 stretches.

Worked Examples

Example 1 — Vertical stretch

Easy

Graph y=2sin⁡x compared to y=sin⁡x. What changes?
Show the steps and the answer
  1. Locate the multiplier: the 2 is outside the sine, multiplying its output.

    An outside factor scales heights, the vertical direction.

  2. Scale key points: (π2,1)→(π2,2) and (3π2,−1)→(3π2,−2), while (0,0) and (π,0) stay fixed.

    Each height doubles, and points on the axis have height 0, so they do not move.

  3. Read the amplitude: half the distance from trough to peak, 2−(−2)2=2.

    Amplitude measures height, which is exactly what the outside factor changed.

  4. Check the period: the peaks are still at π2 and π2+2π.

    No input values changed, so the wave still repeats every 2π.

Answer: Amplitude 2, same period

Takeaway: An outside factor c multiplies every height by c: the amplitude changes, while the inputs, and so the period, do not.

Example 2 — Inside multiplier

Standard

Graph y=sin⁡2x versus y=sin⁡x. Does the amplitude double?
Show the steps and the answer
  1. Locate the multiplier: the 2 multiplies the input x inside the sine.

    An inside factor changes when features happen, not how high they are.

  2. Find the first peak: sin⁡2x=1 when 2x=π2, so x=π4.

    sin⁡x peaks at π2; with the input doubled, the peak comes at half that x.

  3. Find one full cycle: 2x runs from 0 to 2π while x runs from 0 to π.

    So the period is 2π2=π, half the original.

  4. Check the heights: the peak value is still 1 and the trough is still −1.

    Nothing multiplies the output, so the amplitude stays 1.

Answer: Period halves to π, amplitude stays 1

Takeaway: An inside factor c squeezes the graph horizontally by 1c: here the period halves and the amplitude is untouched.

Example 3 — Find the mistake: which way does f(2x) go?

Application

The graph of f passes through (4,6). Leo writes: "g(x)=f(2x) stretches the graph horizontally by 2, so g passes through (8,6)." Find the mistake and correct it.
Show the steps and the answer
  1. Test Leo's point: g(8)=f(2⋅8)=f(16).

    That is the value of f at 16, which nothing tells us is 6.

  2. Ask which input makes 2x=4: it is x=2.

    g produces the output 6 when its input, doubled, equals 4.

  3. Evaluate: g(2)=f(2⋅2)=f(4)=6, so (2,6) is on the graph of g.

    Each point of f moves to half its x-coordinate and keeps its height.

  4. Name the error: Leo doubled the x-coordinate, which is the rule for f(x2).

    Inside factors act inversely: f(2x) compresses by 12, and f(x2) stretches by 2.

Answer: g passes through (2,6): f(2x) compresses the graph horizontally by a factor of 12.

Takeaway: For f(cx), divide each x-coordinate by c and keep the heights.

Where You'll See It

  • Turning up a speaker

    A pure tone of the note A can be written y=Asin⁡(2π⋅440t). Doubling A doubles the pressure swing, so the sound is louder, while the inside factor 440 cycles per second, which sets the pitch, is unchanged.

  • Time-lapse video

    A time-lapse that shows one hour in one minute plays the scene as f(60t), with t in minutes of video. What happened 30 minutes in now appears at t=0.5. The inside factor 60 compresses time; the heights and sizes of things in the scene are not changed.

  • A pay raise

    If your earnings are E(h)=15h dollars for h hours and a raise multiplies pay by 1.2, the new graph is 1.2E(h)=18h. Every point is 1.2 times as high, and zero hours still pays zero.

Common Mistakes

  1. The slip: Applying the horizontal rule like the vertical one

    Instead: f(2x) compresses (factor 12), it does not stretch.

  2. The slip: Confusing amplitude (vertical) with period (horizontal)

    Instead: c f(x) changes amplitude; f(cx) changes period.

  3. The slip: Forgetting a negative multiplier also reflects

    Instead: ∣c∣ scales while the sign of c flips the graph.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. For y=3cos⁡x, give the amplitude, the period and the maximum and minimum values.

    Hint: A multiplier outside changes heights only.

  2. Find the period of y=cos⁡(4x).

    Hint: The period of cos⁡x is 2π. The 4 is inside, acting on x.

  3. The point (2,5) is on y=f(x). Where does it move on y=3f(x), and where on y=f(x2)?

    Hint: Outside factors act on y. For the inside, which x makes x2=2?

  4. For y=−12sin⁡(3x), give the amplitude and the period, and say whether the graph is reflected.

    Hint: Handle the size of the outside factor, its sign and the inside factor separately.

  5. Compare y=cos⁡x+5 and y=5cos⁡x. Which one is a scaling that changes the amplitude, and which is a shift?

    Hint: Is the 5 added to the outputs or multiplied into them?

  6. A student says 'y=f(3x) stretches the graph of f horizontally by a factor of 3.' Find and correct the mistake.

    Hint: Track a point: which input x makes 3x=6?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Is f(2x) ever the same as 2f(x)?

For some functions, yes. For a line through the origin, f(x)=mxf(x) = mx, both give 2mx2mx, so the horizontal squeeze and the vertical stretch produce the same graph. For f(x)=x2f(x) = x^2, though, f(2x)=4x2f(2x) = 4x^2, which is 4f(x)4f(x), not 2f(x)2f(x). For f(x)=xf(x) = \sqrt{x}, f(2x)f(2x) is about 1.41f(x)1.41f(x). For most curves the two scalings give different graphs, and only the formula tells you how they compare.

Does a vertical stretch change the x-intercepts?

No. An xx-intercept is where the output is 0, and any constant times 0 is still 0, so 5f(x)5f(x) crosses the xx-axis exactly where f(x)f(x) does. The yy-intercept does change: it is multiplied by 5. A horizontal scaling does the reverse: f(3x)f(3x) keeps the yy-intercept, since f(3⋅0)=f(0)f(3 \cdot 0) = f(0), but every xx-intercept moves to one third of its old value.

How do I rewrite a height graph in centimetres and minutes instead of metres and seconds?

Changing units is scaling. Heights in centimetres are 100 times the heights in metres, a vertical stretch by 100. If h(t)h(t) uses seconds, the same motion with time mm in minutes is 100 h(60m)100\,h(60m), since t=60mt = 60m: the 60 inside squeezes the time axis. With relabelled axes the picture looks identical; drawn on the old grid it would be 100 times taller and 60 times narrower.

What does f(−2x) do to a graph?

Two things at once: the 2 squeezes the graph horizontally to half its width, and the minus sign reflects it over the yy-axis. Either order gives the same graph. A point (4,1)(4, 1) on ff moves to (−2,1)(-2, 1), because the new graph needs −2x=4-2x = 4, so x=−2x = -2. To place any point, set the inside expression equal to the old input and solve for xx.

Learning Path

Scaling Functions

You are here

Next →

Amplitude
You need Function Transformation: the general idea that changing a formula moves or reshapes its graph. Scaling adds the two multiplying moves, outside on the output and inside on the input, and the inverse behavior of the inside one. Next, Amplitude uses vertical scaling to set the height of trig waves, and the same inside factor gives sin⁡(bx) its period 2π∣b∣.

See Also