Pure 2.9 - Transformations of functions

Pure 2.9 - Transformations of functions

A graph can move, stretch, reflect or fold without losing its connection to the original function. Learn to track key points and asymptotes through those changes, then sketch combinations for polynomial, reciprocal, trigonometric and exponential functions.

The point-mapping idea

A curve passes through (4,−3)(4,-3). Where does that point go on y=3f(−x)+5y=3f(-x)+5? You can answer even if nobody tells you the formula for ff. The old input must still reach 44; then the old height −3-3 is multiplied by 33 and increased by 55.

You already know

If (p,q)(p,q) lies on y=f(x)y=f(x), then f(p)=qf(p)=q. Substitution inside ff changes its input; operations outside ff change its output.

Solve for the new horizontal coordinate by making the new inner expression equal the old input. Then apply the outside operation to the old height.

Basic point mappings

For a point (p,q)(p,q) on y=f(x)y=f(x),

new graphnew pointy=f(x)+a(p,q+a)y=af(x)(p,aq)y=f(x+a)(p−a,q)y=f(ax)(p/a,q),a≠0\begin{array}{c|c} \text{new graph}&\text{new point}\\\hline y=f(x)+a&(p,q+a)\\ y=af(x)&(p,aq)\\ y=f(x+a)&(p-a,q)\\ y=f(ax)&(p/a,q),\quad a\ne0 \end{array}

Not in the formula booklet: learn it.

The inside changes can feel backwards. An equation for the input explains them more reliably than a memory trick.

Worked example 1: shift an input

Question. P(4,−3)P(4,-3) lies on y=f(x)y=f(x). Find its image on y=f(x−2)y=f(x-2).

Plan. Make x−2x-2 equal the old input and keep the output unchanged.

x−2=4match the old inputx=6solvey=−3no outside change\begin{aligned} x-2&=4 &&\text{match the old input}\\ x&=6 &&\text{solve}\\ y&=-3 &&\text{no outside change} \end{aligned}

Why move right? The new input must be 22 larger to compensate for subtracting 22 inside.

Answer. P↦(6,−3)P\mapsto(6,-3).

Check. At the new input 66, the function receives 6−2=46-2=4, giving −3-3.

Change only the sign of the inside constant, from −2-2 to +2+2. The direction of the shift reverses.

Worked example 2: reverse the horizontal shift

Question. Find the image of P(4,−3)P(4,-3) on y=f(x+2)y=f(x+2).

Plan. Set the new inner input equal to 44.

x+2=4same old inputx=2solvey=−3same old height\begin{aligned} x+2&=4 &&\text{same old input}\\ x&=2 &&\text{solve}\\ y&=-3 &&\text{same old height} \end{aligned}

Why does adding inside move left? A smaller new input reaches the original input after 22 is added.

Answer. P↦(2,−3)P\mapsto(2,-3).

Check. f(2+2)=f(4)=−3f(2+2)=f(4)=-3.

These are point images on a new graph; they do not claim the original graph also contains those new points.

Watch out

For f(x+2)f(x+2), the wrong image (6,−3)(6,-3) confuses inside and outside changes. Solve x+2=4x+2=4 to obtain (2,−3)(2,-3).

Change the original point and the inside shift for your turn.

Translations and stretches

A translation adds the same displacement to every point. A stretch multiplies distances from an axis by a fixed positive scale factor. A negative multiplier includes a reflection.

RuleGeometric change
f(x)+af(x)+atranslation by (0a)\binom0a
f(x+a)f(x+a)translation by (−a0)\binom{-a}0
af(x)af(x), a≠0a\ne0stretch parallel to the vertical axis by $
f(ax)f(ax), a≠0a\ne0stretch parallel to the horizontal axis by $\frac1{

In particular, −f(x)-f(x) reflects in the horizontal axis and f(−x)f(-x) reflects in the vertical axis. If a=0a=0, af(x)=0af(x)=0 wherever ff is defined, while f(ax)=f(0)f(ax)=f(0) if that value exists; neither is a reversible stretch.

[DIAGRAM: asset_name: Horizontal and vertical stretches; asset_slug: p1_2_9_understand_the_effect_of_simple_transformations_on_the_graph_of_y_f_x__diagram_01; caption: Horizontal coordinates divide by three and heights double; description: The parabola f(x)=one half x squared minus 2 and y=2f(3x) show mapped roots plus or minus 2 to plus or minus two thirds and vertex (0,-2) to (0,-4).]
Horizontal coordinates divide by three and heights double

Distances from different axes change independently, so horizontal and vertical stretches can be followed together.

Worked example 3: stretch in both directions

Question. A graph has key points (−3,1)(-3,1), (0,−1)(0,-1), (3,2)(3,2). Find their images on y=2f(3x)y=2f(3x).

Plan. Divide old inputs by 33 and multiply old outputs by 22.

3x=p  ⟹  x=p/3match the inputy=2qdouble the height(−3,1)↦(−1,2)(0,−1)↦(0,−2)(3,2)↦(1,4)\begin{aligned} 3x=p&\implies x=p/3 &&\text{match the input}\\ y&=2q &&\text{double the height}\\ (-3,1)&\mapsto(-1,2)\\ (0,-1)&\mapsto(0,-2)\\ (3,2)&\mapsto(1,4) \end{aligned}

Why divide the inputs? Reaching the old input through 3x3x takes only one third of the horizontal coordinate.

Answer. The images are (−1,2)(-1,2), (0,−2)(0,-2), (1,4)(1,4).

Check. At new input 11, the inner input is 33, whose old output 22 becomes 44.

Change only the vertical multiplier from 22 to −2-2. The horizontal stretch stays fixed, and reflection reverses all heights.

Worked example 4: include a reflection

Question. Find the images of the same points on y=−2f(3x)y=-2f(3x).

Plan. Keep the horizontal rule and negate the doubled outputs.

(p,q)↦(p/3,−2q)combined stretch and reflection(−3,1)↦(−1,−2)(0,−1)↦(0,2)(3,2)↦(1,−4)\begin{aligned} (p,q)&\mapsto(p/3,-2q) &&\text{combined stretch and reflection}\\ (-3,1)&\mapsto(-1,-2)\\ (0,-1)&\mapsto(0,2)\\ (3,2)&\mapsto(1,-4) \end{aligned}

Why does a maximum become a minimum? Multiplying heights by a negative number reverses their order.

Answer. (−1,−2)(-1,-2), (0,2)(0,2), (1,−4)(1,-4).

Check. Reflecting the previous three images in the horizontal axis gives precisely these points.

Translations can be combined too: (−4,6)(-4,6) becomes (−2,9)(-2,9) on f(x−2)+3f(x-2)+3, since x−2=−4x-2=-4 and y=6+3y=6+3.

Exam tip

Name a stretch's direction and scale factor. For f(3x)f(3x), the horizontal scale factor is 13\frac13, not 33.

Change the vertical multiplier once more while retaining the horizontal rule.

Modulus graphs

Taking the modulus of an output folds negative heights upwards. It leaves positive heights and all roots fixed. If an original curve crosses the axis, its folded graph often has a corner there.

Modulus point mappings

For (p,q)(p,q) on y=f(x)y=f(x),

y=∣f(x)∣: (p,q)↦(p,∣q∣),y=∣f(−x)∣: (p,q)↦(−p,∣q∣).y=|f(x)|:\ (p,q)\mapsto(p,|q|),\qquad y=|f(-x)|:\ (p,q)\mapsto(-p,|q|).

The first rule changes outputs; the second also reflects inputs.

Not in the formula booklet: learn it.

For ∣f(−x)∣|f(-x)|, reflect in the vertical axis, then fold negative heights above the horizontal axis.

[DIAGRAM: asset_name: Modulus folds and reflection; asset_slug: p1_2_9_understand_the_effect_of_simple_transformations_on_the_graph_of_y_f_x__diagram_02; caption: Fold negative outputs upwards, then track the horizontal reflection; description: The quadratic f(x)=(x-1) squared divided by 3 minus 3 has roots -2 and 4 and minimum (1,-3). Panels compare it with absolute value f(x), and show absolute value f(-x) with roots -4 and 2 and image (-1,3).]
Fold negative outputs upwards, then track the horizontal reflection

The minimum's image in the negative region becomes a local maximum after folding, even though its height becomes positive.

Worked example 5: fold a graph above the axis

Question. A graph has roots −2,4-2,4 and minimum (1,−3)(1,-3). Find the corresponding features of y=∣f(x)∣y=|f(x)|.

Plan. Keep inputs and replace each output by its modulus.

(−2,0)↦(−2,0)zero stays zero(4,0)↦(4,0)zero stays zero(1,−3)↦(1,3)reflect the negative height\begin{aligned} (-2,0)&\mapsto(-2,0) &&\text{zero stays zero}\\ (4,0)&\mapsto(4,0) &&\text{zero stays zero}\\ (1,-3)&\mapsto(1,3) &&\text{reflect the negative height} \end{aligned}

Why keep the roots? Taking modulus cannot change a zero into a positive number.

Answer. Roots remain −2,4-2,4; the old minimum maps to the local maximum (1,3)(1,3).

Check. Every transformed height is non-negative, including ∣−3∣=3|-3|=3.

Change only the input from xx to −x-x. The fold stays the same; the horizontal coordinates reverse signs.

Worked example 6: reflect and fold

Question. For the same original graph, find the corresponding features of y=∣f(−x)∣y=|f(-x)|.

Plan. Negate the input coordinates and take the modulus of the output coordinates.

(−2,0)↦(2,0)reflect the input(4,0)↦(−4,0)reflect the input(1,−3)↦(−1,3)reflect and fold\begin{aligned} (-2,0)&\mapsto(2,0) &&\text{reflect the input}\\ (4,0)&\mapsto(-4,0) &&\text{reflect the input}\\ (1,-3)&\mapsto(-1,3) &&\text{reflect and fold} \end{aligned}

Why does the root at 44 move to −4-4? The new inner input must satisfy −x=4-x=4.

Answer. Roots −4,2-4,2, and local maximum (−1,3)(-1,3).

Check. At x=−1x=-1, ∣f(−x)∣=∣f(1)∣=∣−3∣=3|f(-x)|=|f(1)|=|-3|=3.

A graph defined only on a restricted domain also has its domain reflected when xx becomes −x-x.

Watch out

∣f(x)∣|f(x)| changes outputs; f(∣x∣)f(|x|) changes inputs. These are different instructions. For this lesson, the required folds are ∣f(x)∣|f(x)| and ∣f(−x)∣|f(-x)|.

Use new point and root data with the reflected modulus rule.

Combining transformations

When a shift and stretch occur in the same direction, their order matters. One combined point rule avoids guessing the order. Set the complete inner expression equal to the old input before changing the output.

Combined point rule

If (p,q)(p,q) lies on y=f(x)y=f(x), then for A≠0A\ne0, B≠0B\ne0,

y=Af(Bx+C)+D:(p,q)↦(p−CB,Aq+D).y=Af(Bx+C)+D:\qquad(p,q)\mapsto\left(\frac{p-C}{B},Aq+D\right).

The rule also maps the positions of vertical and horizontal asymptotes; those lines are not points on the curve.

Not in the formula booklet: learn it.

For instance, f(2x−2)=f(2(x−1))f(2x-2)=f(2(x-1)) can be obtained by a horizontal stretch of scale factor 12\frac12, followed by translation right 11. Translating right 11 first and then stretching gives f(2x−1)f(2x-1), a different graph.

Worked example 7: transform two turning points

Question. The graph of ff has maximum (−1,3)(-1,3) and minimum (4,−2)(4,-2). Find their images on y=−2f(2x−1)+3y=-2f(2x-1)+3.

Plan. Solve 2x−1=p2x-1=p and use y=−2q+3y=-2q+3.

x=(p+1)/2solve the inner equation(−1,3)↦(0,−3)insert both coordinates(4,−2)↦(5/2,7)insert both coordinates\begin{aligned} x&=(p+1)/2 &&\text{solve the inner equation}\\ (-1,3)&\mapsto(0,-3) &&\text{insert both coordinates}\\ (4,-2)&\mapsto(5/2,7) &&\text{insert both coordinates} \end{aligned}

Why do the turning-point types swap? The negative outside multiplier reverses vertical order.

Answer. Minimum (0,−3)(0,-3) and maximum (52,7)(\frac52,7).

Check. At new input 00, the old input is −1-1, and −2(3)+3=−3-2(3)+3=-3.

Change only the outside shift from +3+3 to −1-1. Both image heights move down by 44, while their inputs stay fixed.

Worked example 8: alter the final translation

Question. Find those turning-point images on y=−2f(2x−1)−1y=-2f(2x-1)-1.

Plan. Retain x=(p+1)/2x=(p+1)/2 and replace the output rule by −2q−1-2q-1.

(−1,3)↦(0,−2(3)−1)=(0,−7)(4,−2)↦(5/2,−2(−2)−1)=(5/2,3)\begin{aligned} (-1,3)&\mapsto\left(0,-2(3)-1\right)=(0,-7)\\ (4,-2)&\mapsto\left(5/2,-2(-2)-1\right)=(5/2,3) \end{aligned}

Why does the horizontal position stay fixed? Only the outside constant changed.

Answer. Minimum (0,−7)(0,-7) and maximum (52,3)(\frac52,3).

Check. Both outputs are 44 lower than in the preceding example, as expected.

Apply exactly the same equations to asymptotes. If the original has x=4x=4, y=−2y=-2, then −2f(2x−1)+3-2f(2x-1)+3 has asymptotes x=52x=\frac52, y=7y=7.

Problem-solving

Use the equation Bx+C=pBx+C=p, rather than multiplying the old horizontal coordinate by BB. This works for roots, endpoints and asymptote positions too.

Change the final output shift with fresh point data.

Named function sketches

The point rule works for every function family in this course. You only need to choose the features that carry its shape. Trigonometric angles below are in radians; later trigonometry lessons develop those base curves in detail.

Base familyFeatures to transform
quadratic, cubic, quarticroots, vertical intercept, turning points, distant ends
a/xa/x, a/x2a/x^2vertical and horizontal asymptotes, branch signs
sine and cosinemidline, amplitude, period, maxima and minima
tangentroots, period and vertical asymptotes
exe^x, axa^x, a>0,a≠1a>0,a\ne1(0,1)(0,1), limiting height zero and growth or decay direction

For example, (x−1)2+2(x-1)^2+2 has vertex (1,2)(1,2); (x−1)3+2(x-1)^3+2 has its flattened crossing of height 22 there; (x−1)4+2(x-1)^4+2 has a minimum there. Each comes from translating its power graph right 11, up 22. Likewise, 1x−1+2\frac1{x-1}+2 and 1(x−1)2+2\frac1{(x-1)^2}+2 have asymptotes x=1x=1, y=2y=2.

[DIAGRAM: asset_name: Transformed sine and cosine; asset_slug: p1_2_9_understand_the_effect_of_simple_transformations_on_the_graph_of_y_f_x__diagram_03; caption: Changing sine to cosine shifts the key points but preserves range and period; description: Two panels show y=3+sin(2x) and y=3+cos(2x) for 0 to 2pi, each with midline 3, period pi and range 2 to 4.]
Changing sine to cosine shifts the key points but preserves range and period

For a sine or cosine curve, a horizontal scale factor of 1∣B∣\frac1{|B|} changes its period from 2π2\pi to 2π∣B∣\frac{2\pi}{|B|}. This transformation result is not in the formula booklet: learn it.

Worked example 9: transform a sine graph

Question. Give the features needed to sketch y=3+sin⁡2xy=3+\sin2x, 0≤x≤2π0\le x\le2\pi.

Plan. Transform one sine cycle, then repeat it with its new period.

period=2π/2=πhorizontal scale 1/2−1≤sin⁡2x≤1  ⟹  2≤y≤4add 32x=π/2+2kπ  ⟹  x=π/4+kπmaximum inputs2x=3π/2+2kπ  ⟹  x=3π/4+kπminimum inputs\begin{aligned} \text{period}&=2\pi/2=\pi &&\text{horizontal scale }1/2\\ -1\le\sin2x\le1&\implies2\le y\le4 &&\text{add }3\\ 2x=\pi/2+2k\pi&\implies x=\pi/4+k\pi &&\text{maximum inputs}\\ 2x=3\pi/2+2k\pi&\implies x=3\pi/4+k\pi &&\text{minimum inputs} \end{aligned}

Why find key heights first? They give an unambiguous wave without plotting many points.

Answer. Midline y=3y=3, amplitude 11, period π\pi; maxima (π4,4)(\frac\pi4,4), (5π4,4)(\frac{5\pi}4,4); minima (3π4,2)(\frac{3\pi}4,2), (7π4,2)(\frac{7\pi}4,2); starts at (0,3)(0,3) rising.

Check. At x=π4x=\frac\pi4, y=3+sin⁡π2=4y=3+\sin\frac\pi2=4; at x=πx=\pi, y=3y=3, one cycle later.

Change only the base function from sine to cosine. The stretch and translation stay the same.

Worked example 10: transform a cosine graph

Question. Give the features needed to sketch y=3+cos⁡2xy=3+\cos2x, 0≤x≤2π0\le x\le2\pi.

Plan. Keep the range and period, then track cosine's maxima and minima.

period=πsame horizontal stretch2≤y≤4same vertical translation2x=2kπ  ⟹  x=kπmaxima2x=π+2kπ  ⟹  x=π/2+kπminima\begin{aligned} \text{period}&=\pi &&\text{same horizontal stretch}\\ 2\le y&\le4 &&\text{same vertical translation}\\ 2x=2k\pi&\implies x=k\pi &&\text{maxima}\\ 2x=\pi+2k\pi&\implies x=\pi/2+k\pi &&\text{minima} \end{aligned}

Why does it start at a maximum? cos⁡0=1\cos0=1, whereas sin⁡0=0\sin0=0.

Answer. Midline 33, amplitude 11, period π\pi; maxima at x=0,π,2πx=0,\pi,2\pi, height 44; minima at x=π2,3π2x=\frac\pi2,\frac{3\pi}2, height 22.

Check. y(0)=4y(0)=4 and y(π2)=3+cos⁡π=2y(\frac\pi2)=3+\cos\pi=2.

Other families use the same reasoning. The graph −cos⁡(x+π4)-\cos(x+\frac\pi4) shifts cosine left π4\frac\pi4 and reflects it in the horizontal axis; its minimum is (−π4,−1)(-\frac\pi4,-1). The graph tan⁡2x\tan2x has period π2\frac\pi2, roots x=kπ2x=\frac{k\pi}2 and asymptotes x=π4+kπ2x=\frac\pi4+\frac{k\pi}2, where k∈Zk\in\mathbb Z.

Exponential graphs transform too: 2e−x+12e^{-x}+1 reflects exe^x in the vertical axis, doubles heights and shifts up 11, giving (0,3)(0,3) and horizontal asymptote y=1y=1. Replacing exe^x by 2x2^x gives 2⋅2−x+12\cdot2^{-x}+1, with the same intercept and limiting height. A surprising contrast: for reciprocal curves 2f(3x)=23f(x)2f(3x)=\frac23f(x) when f(x)=1xf(x)=\frac1x, but for f(x)=1x2f(x)=\frac1{x^2} it is 29f(x)\frac29f(x). The same geometric instruction can simplify differently for different families.

The opening point now follows immediately: −x=4-x=4 gives x=−4x=-4, and 3(−3)+5=−43(-3)+5=-4, so it moves to (−4,−4)(-4,-4).

Exam tip

On a sketch, label the transformed features that distinguish the curve: a period and height for a wave, or asymptotes and an intercept for a reciprocal or exponential graph.

Keep cosine and change the input multiplier for the final check.

Quick Recap

  • Outside operations change heights; inside operations require solving for the new input.
  • Negative multipliers introduce reflections; inside stretch factors act reciprocally on coordinates.
  • Modulus folds negative heights upwards; ∣f(−x)∣|f(-x)| also reflects horizontally.
  • A combined graph maps (p,q)(p,q) to (p−CB,Aq+D)(\frac{p-C}B,Aq+D).
  • Track the defining features of each function family.

The opening point (4,−3)(4,-3) becomes (−4,−4)(-4,-4) on y=3f(−x)+5y=3f(-x)+5, without needing a formula for ff.