Skip to content

Mathematics · Ch 1 — Sets, Relations and Functions

Graphing Functions using Transformations

1.7

Graphing Functions using Transformations

"A picture is worth a thousand words" -- rather than plotting many points from scratch, it is far faster to recognise a complicated curve as a transformation of a simpler, already-known one. This chapter uses three tools: reflection, translation, dilation. Reflection and translation preserve size and shape (the new graph is congruent to the original); dilation changes the shape by stretching or compressing it.

Reflection. The reflection of y=f(x)y=f(x) in a line ℓ\ell is its mirror image across ℓ\ell. Three reflections recur constantly:

  • y=−f(x)y=-f(x) is the reflection of y=f(x)y=f(x) about the xx-axis (e.g. y=−x2y=-x^2 mirrors y=x2y=x^2 downward).
  • y=f(−x)y=f(-x) is the reflection about the yy-axis (e.g. y=−xy=\sqrt{-x}, defined for x≤0x\le0, mirrors y=xy=\sqrt x leftward).
  • y=f−1(x)y=f^{-1}(x) is the reflection about the line y=xy=x (e.g. y=exy=e^x and y=ln⁡xy=\ln x are reflections of each other in y=xy=x, since each is the other's inverse).

Translation. A translation shifts the graph without changing its shape:

y=f(x+c) (c>0) shifts LEFT by c;y=f(x−c) (c>0) shifts RIGHT by c;y=f(x+c)\ (c>0)\text{ shifts LEFT by }c;\qquad y=f(x-c)\ (c>0)\text{ shifts RIGHT by }c;

y=f(x)+d (d>0) shifts UP by d;y=f(x)−d (d>0) shifts DOWN by d.y=f(x)+d\ (d>0)\text{ shifts UP by }d;\qquad y=f(x)-d\ (d>0)\text{ shifts DOWN by }d.

E.g. from f(x)=∣x∣f(x)=|x|: f(x−1)=∣x−1∣f(x-1)=|x-1| shifts the V-graph right by 1; f(x+1)=∣x+1∣f(x+1)=|x+1| shifts it left by 1; f(x)−1f(x)-1 shifts it down 1; f(x)+1f(x)+1 shifts it up 1.

Dilation. Multiplying ff by a positive constant stretches/compresses the graph vertically (moves it away from or toward the xx-axis): a multiplier >1>1 stretches away from the xx-axis; a multiplier <1<1 (but >0>0) compresses toward it. E.g. from f(x)=x2f(x)=x^2: 12x2\tfrac12x^2 looks "flatter" (compressed toward the xx-axis, multiplier 12<1\tfrac12<1), while 2x22x^2 looks "narrower" (stretched away from the xx-axis, multiplier 2>12>1). A horizontal dilation instead rescales the xx-axis: comparing y=x2−1y=x^2-1, y=4(x2−1)y=4(x^2-1) (vertical stretch by 4) and y=(4x)2−1y=(4x)^2-1 (horizontal compression by factor 4 -- same yy-intercept, but the curve looks "thinner" since xx-values are scaled down by 14\tfrac14 to produce the same output).

The same idea extends to trigonometric curves: y=sin⁡xy=\sin x and y=sin⁡2xy=\sin2x share the same maximum/minimum values (±1\pm1) but different xx-intercepts (±nπ\pm n\pi versus ±12nπ\pm\tfrac12n\pi) -- a horizontal compression by factor 2. …