2.2.7Functions

Transformations — vertical - horizontal shifts, reflections, stretches - compressions

3,254 words15 min readdifficulty · medium

1. Vertical Transformations (Outside the function)

Vertical Shifts

Derivation from first principles: Start with any point P=(a,f(a))P = (a, f(a)) on the original graph. After transformation, the new function gives us: g(a)=f(a)+kg(a) = f(a) + k

The new point is P=(a,f(a)+k)P' = (a, f(a) + k). The xx-coordinate stays the same, but the yy-coordinate increases by kk. This is literally adding kk to the height of every point.

WHY does this work? Because we're modifying the OUTPUT. Whatever f(x)f(x) spits out, we add kk to it. Since output = height on a graph, we're adding to the height.

Vertical Stretch/Compression

Derivation: For point (c,f(c))(c, f(c)), the new function gives: g(c)=af(c)g(c) = a \cdot f(c)

So yy-coordinate is multiplied by aa. The xx-coordinate is unchanged.

WHY does a>1|a| > 1 stretch? Because we're multiplying the output by a number bigger than 1, making the output larger. If f(x)=2f(x) = 2, then 3f(x)=63f(x) = 6 — that's farther from the xx-axis. If f(x)=2f(x) = -2, then 3f(x)=63f(x) = -6 — also farther from the axis.

Reflection Across xx-axis

WHY? We're negating the output. If the graph was above the xx-axis, it flips below. The xx-intercepts stay fixed (because 0=0-0 = 0).

Figure — Transformations — vertical - horizontal shifts, reflections, stretches - compressions

2. Horizontal Transformations (Inside the function)

Horizontal Shifts

Derivation from "compensation" logic: The equation y=f(xh)y = f(x - h) can be rewritten by substituting u=xhu = x - h, so x=u+hx = u + h.

When u=0u = 0 (the original position where something happened), we now need x=hx = h for the same thing to happen. So the entire graph shifts RIGHT by hh.

Formal proof: If (a,f(a))(a, f(a)) is on the original graph, then for the transformed graph: g(x)=f(xh)g(x) = f(x - h) We want g(x)=f(a)g(x) = f(a), so: f(xh)=f(a)    xh=a    x=a+hf(x - h) = f(a) \implies x - h = a \implies x = a + h

The point is now at (a+h,f(a))(a + h, f(a)) — shifted right by hh.

Horizontal Stretch/Compression

Derivation: If (a,f(a))(a, f(a)) is on the original graph, for the transformed graph: g(x)=f(bx)g(x) = f(bx) We want g(x)=f(a)g(x) = f(a): f(bx)=f(a)    bx=a    x=abf(bx) = f(a) \implies bx = a \implies x = \frac{a}{b}

The point is now at (ab,f(a))(\frac{a}{b}, f(a)).

WHY compression with b>1b > 1? Because ab\frac{a}{b} is smaller than aa when b>1b > 1. The function "speeds up" — it reaches the same outputs faster (in less horizontal distance).

Reflection Across yy-axis

WHY? We're negating the input. What used to happen at x=3x = 3 now happens at x=3x = -3 (because we need x=3-x = 3, so x=3x = -3).

3. Combined Transformations

WHY this order? Because of function composition. Work from the inside out. The input xx first gets shifted, then scaled, then the output gets scaled, then shifted.

Common Mistakes

Active Recall

Recall Explain to a 12-year-old

Imagine you have a picture (that's your function graph). Now you want to move it around or change its size, but WITHOUT drawing a new picture from scratch.

Moving up/down is easy: just add or subtract a number at the end. Add 5? Every point goes up 5 steps.

Moving left/right is TRICKY. It's backwards! If you see "minus 3" INSIDE (like f(x3)f(x-3)), the picture actually moves RIGHT by 3. Why? Think of it like this: "I'm asking the function to do its thing3 steps earlier." If something used to happen at step 5, you now need step 8 to see it (because 8 - 3 = 5).

Making it taller/shorter: multiply the whole function by a number. Times 2? Everything gets twice as tall. Times 0.5? Everything gets squished to half height.

Making it wider/narrower: Put a number in front of xx INSIDE the function. This is also backwards! Times 2 INSIDE (like f(2x)f(2x)) makes it NARROWER, not wider, because the function "speeds up" — it does its thing twice as fast, so it finishes in half the distance.

Flipping: Negative sign OUTSIDE flips upside-down. Negative sign INSIDE (on the xx) flips left-to-right.

Connections

  • Parent Functions — these are what we transform
  • Function Composition — transformations are composed functions
  • Domain and Range — transformations change these
  • Trigonometric Functions — period changes use horizontal compression
  • Inverse Functions — reflection across y=xy = x relates to these concepts
  • Absolute Value Functions — transformations create all variations
  • Piecewise Functions — each piece transforms independently

#flashcards/maths

What happens to the graph of f(x)f(x) when you compute f(x)+kf(x) + k for k>0k > 0? :: The graph shifts vertically UPWARD by kk units. Every point (x,y)(x, y) becomes (x,y+k)(x, y+k).

What happens to the graph of f(x)f(x) when you compute f(xh)f(x - h) for h>0h > 0?
The graph shifts horizontally to the RIGHT by hh units. Every point (x,y)(x, y) becomes (x+h,y)(x+h, y). (Counterintuitive: minus means right!)
For g(x)=af)g(x) = af), when does vertical stretch occur?
When a>1|a| > 1. The graph is pulled away from the xx-axis. Every yy-coordinate is multiplied by aa.
For g(x)=f(bx)g(x) = f(bx), when does horizontal compression occur?
When b>1|b| > 1. The graph is squeezed toward the yy-axis. Every xx-coordinate is divided by bb (factor of 1b\frac{1}{b}).
What transformation does g(x)=f(x)g(x) = -f(x) represent?
Reflection across the xx-axis. Every point (x,y)(x, y) becomes (x,y)(x, -y).

What transformation does g(x)=f(x)g(x) = f(-x) represent? :: Reflection across the yy-axis. Every point (x,y)(x, y) becomes (x,y)(-x, y).

In g(x)=af(b(xh))+kg(x) = af(b(x-h)) + k, what is the correct order to apply transformations when sketching?
1) Horizontal shift by hh, 2) Horizontal scale by 1b\frac{1}{b}, 3) Vertical scale by aa, 4) Vertical shift by kk. (Inside-out order)
If f(x)=x2f(x) = x^2 and g(x)=(x+3)2g(x) = (x+3)^2, which direction does the graph shift?
LEFT by 3 units. The (x+3)(x+3) means subtract 3-3, so h=3h = -3, giving a leftward shift.
For the function h(x)=3f(2x)h(x) = 3f(2x), what two transformations occur?
Horizontal compression by factor 12\frac{1}{2} (graph squezed) AND vertical stretch by factor 3 (graph pulled away from xx-axis).
If sin(x)\sin(x) has period 2π2\pi, what is the period of sin(3x)\sin(3x)?
2π3\frac{2\pi}{3}. The period formula is original periodb\frac{\text{original period}}{|b|} where bb is the coefficient of xx.
How do you find the new vertex of f(x)=(xh)2+kf(x) = (x-h)^2 + k from the parent x2x^2?
The vertex shifts from (0,0)(0, 0) to (h,k)(h, k). Horizontal shift right by hh, vertical shift up by kk.
What changes when you apply g(x)=0.5f(x)g(x) = 0.5f(x) to a function?
Vertical compression by factor 0.5 (toward the xx-axis). Every yy-coordinate is halved. Range shrinks by factor 0.5.
For g(x)=f(x3)g(x) = f(\frac{x}{3}), what happens to the graph?
Horizontal stretch by factor 3 (away from yy-axis). The graph becomes wider. If a feature was at x=1x=1, it's now at x=3x=3.
Why does f(x2)f(x-2) shift the graph RIGHT instead of left?
Because of compensation: to get the output that used to occur at x=0x=0, you now need x=2x=2 (since 22=02-2=0). The entire graph moves right.
If the domain of f(x)f(x) is [0,5][0, 5], what is the domain of f(x3)f(x-3)?
[3,8][3, 8]. Every domain value shifts right by 3 units. The left endpoint 030 \to 3, right endpoint 585 \to 8.

Concept Map

apply

apply

affects

affects

add k

multiply a

inside-out paradox

inside-out paradox

when a<0

transforms

transforms

opposite move

f of x parent function

Modify OUTPUT

Modify INPUT

Vertical shift f+k

Vertical stretch a·f

Horizontal shift f x+h

Horizontal stretch f bx

Reflection

Point x,y to x,ay+k

Point x,y moves opposite

Vertical direction

Horizontal direction

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Chalo isko simple tarike se samajhte hain. Kisi bhi function f(x)f(x) ko ek machine ki tarah socho — input daalte ho, output nikalta hai. Transformations bas is machine ke saath do jagah chhed-chhaad karte hain: ya toh output pe (jo bahar aata hai), ya input pe (jo andar jaata hai). Jab tum output modify karte ho jaise f(x)+kf(x)+k ya af(x)af(x), toh graph mein vertical (upar-neeche) change hota hai — aur ye seedha-saada hota hai, jaise expect karte ho waisa hi. Point (x,y)(x,y) ban jaata hai (x,y+k)(x, y+k), matlab har point ki height badal jaati hai.

Ab asli maza ya twist input side pe aata hai. Jab tum input ke saath khelte ho jaise f(x+h)f(x+h) ya f(bx)f(bx), toh change horizontal hota hai, lekin ulti direction mein — isko hi "inside-out paradox" kehte hain. Yani f(x+2)f(x+2) graph ko right nahi, balki left shift karta hai. Beginners yahin confuse hote hain, isliye is baat ko dil se yaad rakhna. Aur agar aage minus sign lag jaaye jaise f(x)-f(x), toh graph xx-axis ke across flip ho jaata hai, jabki a>1|a|>1 hone pe stretch aur 0<a<10<|a|<1 hone pe compression hota hai.

Ye cheez itni important kyun hai? Kyunki exam mein jitne bhi complicated graphs aate hain, woh sab basically ek simple parent function (jaise x2x^2 ya sinx\sin x) hote hain jo bas shift, stretch, flip ya compress kiye gaye hote hain. Agar tumne ye chaar transformations acche se pakad liye, toh tumhe sau-sau shapes ratne ki zaroorat hi nahi — koi bhi function dekh ke turant graph sketch kar sakte ho. Yeh ek chhota sa concept hai par pura Functions chapter aur aage Calculus mein bahut kaam aata hai.

Go deeper — visual, from zero

Test yourself — Functions

Connections