B9 - Transforming function graphs

B9 - Transforming function graphs

Use a known graph to build a new one by moving, stretching or reflecting its points. You will distinguish changes to outputs from changes to inputs, track domains and ranges, and describe combinations in an order that produces the required equation.

Vertical translations and stretches

Does moving a graph up by 11, then doubling its heights, give the same graph as doing those operations in reverse order? Take a point at height 33: the two routes give 2(3+1)=82(3+1)=8 and 2(3)+1=72(3)+1=7. The graph's equation records which operation happened first.

You already know

A point (u,v)(u,v) lies on y=f(x)y=f(x) when v=f(u)v=f(u). A transformation must tell you what happens to both coordinates, even when one stays unchanged.

Changes outside ff act on its output. In y=f(x)+by=f(x)+b, every point (u,v)(u,v) becomes (u,v+b)(u,v+b): a translation by (0b)\begin{pmatrix}0\\b\end{pmatrix}. Positive bb moves up; negative bb moves down. In y=af(x)y=af(x), the height becomes avav: a stretch in the vertical direction with factor aa when a>0a>0. A factor between zero and one reduces distances from the horizontal axis.

Changing outputs

y=af(x)+b:(u,v)↦(u,av+b)y=af(x)+b:\qquad (u,v)\mapsto(u,av+b)

For a<0a<0, describe a reflection in the horizontal axis and a vertical stretch with positive factor ∣a∣|a|, followed by the translation. The domain stays the same; transform every attained range value by v↦av+bv\mapsto av+b. Not in the formula booklet: learn it.

The final addition happens after multiplication. A negative multiplier reverses the ordering of heights, so a minimum can become a maximum.

Worked example 1: reverse and scale heights

Question. For f(x)=x2−1f(x)=x^2-1, describe y=−2f(x)+3y=-2f(x)+3. Find its equation, vertex, range and the image of (2,3)(2,3).

Plan. Apply v↦−2v+3v\mapsto-2v+3 to the old vertex and point, then simplify the equation.

y=−2(x2−1)+3=−2x2+5multiply before adding(0,−1)↦(0,5)old vertex(2,3)↦(2,−3)−2(3)+3=−3v≥−1⟹−2v+3≤5reverse the range bound\begin{aligned} y&=-2(x^2-1)+3=-2x^2+5 && \text{multiply before adding}\\ (0,-1)&\mapsto(0,5) && \text{old vertex}\\ (2,3)&\mapsto(2,-3) && -2(3)+3=-3\\ v\geq-1&\quad\Longrightarrow\quad-2v+3\leq5 && \text{reverse the range bound} \end{aligned}

Why this step? The negative multiplier turns the lowest original height into the greatest new height.

Answer. Reflect in the horizontal axis, stretch vertically by factor 22, then translate up 33. The vertex is (0,5)(0,5), range (−∞,5]( -\infty,5], and mapped point (2,−3)(2,-3).

Check. At x=2x=2, the new equation gives −8+5=−3-8+5=-3, agreeing with the point map.

The original upward parabola and its changed heights are shown together below.

An upward quadratic and its reflected stretched vertically translated graph with both vertices labelled

Change only the final translation in the next example. The new maximum should move by exactly the same amount.

Worked example 2: change the final translation

Question. For the same f(x)=x2−1f(x)=x^2-1, describe y=−2f(x)+5y=-2f(x)+5 and find its vertex, range and the image of (2,3)(2,3).

Plan. Keep the reflection and stretch, but add 55 to the scaled heights.

y=−2(x2−1)+5=−2x2+7simplify(0,−1)↦(0,7)−2(−1)+5=7(2,3)↦(2,−1)−2(3)+5=−1\begin{aligned} y&=-2(x^2-1)+5=-2x^2+7 && \text{simplify}\\ (0,-1)&\mapsto(0,7) && -2(-1)+5=7\\ (2,3)&\mapsto(2,-1) && -2(3)+5=-1 \end{aligned}

Why this step? The added constant acts on every height after scaling, so increasing it by 22 raises every point by 22.

Answer. Reflect in the horizontal axis, stretch vertically by factor 22, then translate up 55. The vertex is (0,7)(0,7), range (−∞,7]( -\infty,7], and mapped point (2,−1)(2,-1).

Check. The equation −2x2+7-2x^2+7 can never exceed 77, and attains it at x=0x=0.

The horizontal coordinates have stayed unchanged in both examples. A vertical stretch is measured from the horizontal axis, not from the graph's vertex.

Watch out

Wrong: −2f(x)+5=−2(f(x)+5)-2f(x)+5=-2(f(x)+5). Expanding the right side gives −2f(x)−10-2f(x)-10, a different graph. Right: perform the outside operations in their stated order.

Use a new scaling and translation on the next point.

Horizontal translations and stretches

A change inside ff asks which new input produces a particular old input. For y=f(x+4)y=f(x+4), an old input 66 occurs when x+4=6x+4=6, so the new input is 22: the point moves left by 44.

Changing inputs

For a point (u,v)(u,v) on y=f(x)y=f(x),

y=f(x+c):(u,v)↦(u−c,v)y=f(x+c):\quad(u,v)\mapsto(u-c,v) y=f(kx):(u,v)↦(uk,v)(k>0)y=f(kx):\quad(u,v)\mapsto\left(\frac{u}{k},v\right)\qquad(k>0)

The first is a translation by (−c0)\begin{pmatrix}-c\\0\end{pmatrix}; the second is a stretch in the horizontal direction with factor 1/k1/k. Not in the formula booklet: learn it.

These rules follow by solving x+c=ux+c=u or kx=ukx=u. The output values stay the same. To find the new domain, require that the complete expression inside ff belongs to the old domain.

Worked example 3: double the input inside

Question. A function ff has domain [0,8][0,8] and a point (6,2)(6,2) on its graph. Describe y=f(2x)y=f(2x), find the new domain and the corresponding point.

Plan. Solve for the new input and impose the old-domain condition on 2x2x.

2x=6⟹x=3trace the point0≤2x≤8⟹0≤x≤4trace the domain\begin{aligned} 2x&=6\quad\Longrightarrow\quad x=3 && \text{trace the point}\\ 0\leq2x&\leq8\quad\Longrightarrow\quad0\leq x\leq4 && \text{trace the domain} \end{aligned}

Why this step? The new input must be half as large to supply the same old input, so the horizontal factor is 12\frac12.

Answer. A horizontal stretch with factor 12\frac12, domain [0,4][0,4], and corresponding point (3,2)(3,2).

Check. At new input 33, f(2×3)=f(6)=2f(2\times3)=f(6)=2.

Change only the inside multiplier from 22 to 12\frac12. This makes the new graph wider rather than narrower.

Worked example 4: halve the input inside

Question. With the same function, describe y=f(x/2)y=f(x/2), find its domain and the point corresponding to (6,2)(6,2).

Plan. Solve x/2=6x/2=6 and apply the original interval to x/2x/2.

x2=6⟹x=12trace the point0≤x2≤8⟹0≤x≤16trace the domain\begin{aligned} \frac{x}{2}&=6\quad\Longrightarrow\quad x=12 && \text{trace the point}\\ 0\leq\frac{x}{2}&\leq8\quad\Longrightarrow\quad0\leq x\leq16 && \text{trace the domain} \end{aligned}

Why this step? The reciprocal of the inside multiplier gives the horizontal scale factor: 1/(12)=21/(\frac12)=2.

Answer. A horizontal stretch with factor 22, domain [0,16][0,16], and corresponding point (12,2)(12,2).

Check. The endpoint x=16x=16 supplies old input 88, so the included right endpoint has been tracked correctly.

Translations use the same reasoning. If the old domain is [1,5][1,5], then f(x+2)f(x+2) requires 1≤x+2≤51\leq x+2\leq5, giving [−1,3][-1,3]. This is a shift left by 22, not right.

Watch out

Wrong: call f(2x)f(2x) a horizontal stretch of factor 22. Right: solve 2x=u2x=u, giving new input u/2u/2 and scale factor 12\frac12.

Try another positive inside multiplier.

Reflections and negative scale factors

A minus sign outside a function reverses heights; a minus sign inside reverses inputs. For a point (2,3)(2,3), these give (2,−3)(2,-3) and (−2,3)(-2,3), respectively.

New equationPoint mappingTransformation
y=−f(x)y=-f(x)(u,v)↦(u,−v)(u,v)\mapsto(u,-v)Reflection in the horizontal axis
y=f(−x)y=f(-x)(u,v)↦(−u,v)(u,v)\mapsto(-u,v)Reflection in the vertical axis

These reflection rules are not in the formula booklet: learn them. With a larger negative multiplier, name a reflection and a positive stretch factor separately: −3f(x)-3f(x) has vertical factor 33, while f(−3x)f(-3x) has horizontal factor 13\frac13.

Worked example 5: reflect outputs

Question. For f(x)=xf(x)=\sqrt{x}, x≥0x\geq0, describe and sketch y=−f(x)y=-f(x), giving its domain and range.

Plan. Reverse the sign of each original height and keep each input.

y=−xnegative outside(0,0)↦(0,0)endpoint on the mirror(4,2)↦(4,−2)height changes signy≤0original heights were nonnegative\begin{aligned} y&=-\sqrt{x} && \text{negative outside}\\ (0,0)&\mapsto(0,0) && \text{endpoint on the mirror}\\ (4,2)&\mapsto(4,-2) && \text{height changes sign}\\ y&\leq0 && \text{original heights were nonnegative} \end{aligned}

Why this step? The original square root still receives xx, so its domain condition has not changed.

Answer. Reflection in the horizontal axis, domain [0,∞)[0,\infty), range (−∞,0]( -\infty,0]. The curve begins at the included origin and extends downwards to the right through (4,−2)(4,-2).

Check. At x=9x=9, the new output is −3-3, the negative of the old output.

Change only the position of the minus sign, moving it inside the function. Now the inputs, rather than the outputs, change sign.

Worked example 6: reflect inputs

Question. For the same ff, describe and sketch y=f(−x)y=f(-x), giving its domain and range.

Plan. Require −x≥0-x\geq0, then reverse the original points' horizontal coordinates.

y=−xnegative inside−x≥0⟹x≤0square-root domain(4,2)↦(−4,2)input changes sign\begin{aligned} y&=\sqrt{-x} && \text{negative inside}\\ -x&\geq0\quad\Longrightarrow\quad x\leq0 && \text{square-root domain}\\ (4,2)&\mapsto(-4,2) && \text{input changes sign} \end{aligned}

Why this step? Outputs still come from a positive square root, so the range remains nonnegative.

Answer. Reflection in the vertical axis, domain (−∞,0]( -\infty,0], range [0,∞)[0,\infty). The curve starts at the included origin and extends upwards to the left through (−4,2)(-4,2).

Check. At x=−9x=-9, the output is 9=3\sqrt9=3, matching the reflected old point (9,3)(9,3).

A reflection can leave a graph unchanged. Since (−x)2=x2(-x)^2=x^2, reflecting y=x2y=x^2 in the vertical axis produces the same set of points. More surprisingly, different kinds of transformation can also produce the same equation: for f(x)=x2f(x)=x^2, f(2x)=4x2=4f(x)f(2x)=4x^2=4f(x). A horizontal factor 12\frac12 and a vertical factor 44 therefore produce the same parabola, although they move its individual points differently. This identity is derived directly, not supplied in the formula booklet.

Watch out

Wrong: leave inequality signs unchanged when dividing a domain condition by a negative number. Right: −2x<6-2x<6 gives x>−3x>-3; also keep track of which endpoint was excluded.

Combine a reflection with a horizontal scale factor in the next domain calculation.

Combined transformations and their order

Track the old input and the old output separately when an equation contains several changes. For y=−2f(3(x−1))+4y=-2f(3(x-1))+4, the old input uu appears where 3(x−1)=u3(x-1)=u; the old height vv becomes −2v+4-2v+4.

Combined point mapping

For a≠0a\ne0, k≠0k\ne0,

y=af(k(x−h))+b:(u,v)↦(uk+h,av+b)y=af(k(x-h))+b:\qquad (u,v)\mapsto\left(\frac{u}{k}+h,av+b\right)

Solve the inside equation for the new input and apply the outside operations to the old output. Not in the formula booklet: learn it.

One valid sequence is: horizontal stretch of factor 1/∣k∣1/|k|, reflection in the vertical axis if k<0k<0, then horizontal translation by hh; vertical stretch of factor ∣a∣|a|, reflection in the horizontal axis if a<0a<0, then vertical translation by bb. Changes to different coordinates can be interchanged; changes to the same coordinate may give different outcomes in a different order.

Worked example 7: transform a modulus graph

Question. Let f(x)=∣x∣f(x)=|x|. Sketch g(x)=−2f(3(x−1))+4g(x)=-2f(3(x-1))+4, finding its vertex, roots, range and the image of (−3,3)(-3,3).

Plan. Map the vertex and named point, then solve the zero-height equation.

(u,v)↦(u3+1,−2v+4)solve the input equation(0,0)↦(1,4)vertex(−3,3)↦(0,−2)named pointg(x)=−6∣x−1∣+4positive factor inside modulus∣x−1∣=23⟹x=13,53zero heights\begin{aligned} (u,v)&\mapsto\left(\frac u3+1,-2v+4\right) && \text{solve the input equation}\\ (0,0)&\mapsto(1,4) && \text{vertex}\\ (-3,3)&\mapsto(0,-2) && \text{named point}\\ g(x)&=-6|x-1|+4 && \text{positive factor inside modulus}\\ |x-1|&=\frac23\quad\Longrightarrow\quad x=\frac13,\frac53 && \text{zero heights} \end{aligned}

Why this step? Factoring the inside as 3(x−1)3(x-1) reveals a horizontal factor 13\frac13 followed by a shift right by 11.

Answer. A downward V with vertex (1,4)(1,4), roots 13,53\frac13,\frac53, range (−∞,4]( -\infty,4], and mapped point (0,−2)(0,-2).

Check. g(0)=−2∣−3∣+4=−2g(0)=-2|{-3}|+4=-2, and g(1)=4g(1)=4.

The image shows how a point left of the original corner can land on the new vertical axis.

A modulus graph and its combined transformation with the new vertex and mapped point labelled

Change only the final height shift from 44 to 66. The new roots move even though the vertex's horizontal coordinate does not.

Worked example 8: shift the transformed graph

Question. For the same ff, sketch q(x)=−2f(3(x−1))+6q(x)=-2f(3(x-1))+6, giving its vertex, roots, range and the image of (−3,3)(-3,3).

Plan. Keep the horizontal map and replace the final vertical addition by 66.

(0,0)↦(1,6)new vertex(−3,3)↦(0,0)−2(3)+6=0q(x)=−6∣x−1∣+6simplify∣x−1∣=1⟹x=0,2find both roots\begin{aligned} (0,0)&\mapsto(1,6) && \text{new vertex}\\ (-3,3)&\mapsto(0,0) && -2(3)+6=0\\ q(x)&=-6|x-1|+6 && \text{simplify}\\ |x-1|&=1\quad\Longrightarrow\quad x=0,2 && \text{find both roots} \end{aligned}

Why this step? The final translation shifts the whole downward V up by 22, so the zero-height line cuts its arms further from the corner.

Answer. Vertex (1,6)(1,6), roots 0,20,2, range (−∞,6]( -\infty,6], and mapped point (0,0)(0,0).

Check. At x=2x=2, −2∣3∣+6=0-2|3|+6=0; the roots are symmetric about x=1x=1.

Return to the opening order puzzle. Starting with y=f(x)y=f(x), translating up 11, then stretching vertically by 22, gives 2(f(x)+1)=2f(x)+22(f(x)+1)=2f(x)+2. Reversing the order gives 2f(x)+12f(x)+1. In the first route the translation itself is stretched. This algebraic comparison is not supplied in the formula booklet.

The nonzero conditions in the point map matter: a=0a=0 gives a constant output on the permitted original composite domain, not an invertible stretch. With k=0k=0, f(kx)=f(0)f(kx)=f(0) is defined only if the original function accepts zero.

Watch out

Wrong: describe f(2x−6)f(2x-6) as horizontal factor 22, then right 66. Right: solve 2x−6=u2x-6=u, giving x=u/2+3x=u/2+3: factor 12\frac12, then right 33.

Alter the final translation again and check all three intercepts.

Quick Recap

  • Outside operations change heights directly; inside operations must be undone to find new inputs.
  • f(kx)f(kx) has horizontal factor 1/k1/k for positive kk.
  • A minus outside reflects in the horizontal axis; a minus inside reflects in the vertical axis.
  • Trace both coordinates and their permitted sets when combining transformations.

The opening operations give different graphs: translating then doubling produces 2f(x)+22f(x)+2; doubling then translating produces 2f(x)+12f(x)+1.