Function Transformations and Geometric Solutions

Updated July 2026

Mastering function transformations is vital for the ESAT as it allows you to visualise complex algebraic equations. This topic explores how translations and stretches affect function behavior and provides a geometric framework for solving simultaneous equations. A key fact is that adding a constant within the function argument shifts the graph in the negative direction.

Core concept

Geometric transformations provide a visual way to manipulate functions: y=f(x+a)y = f(x + a) and y=f(ax)y = f(ax) affect the horizontal position and scale, while y=f(x)+ay = f(x) + a and y=af(x)y = af(x) affect the vertical, with graph intersections representing solutions to simultaneous equations.

Understanding Function Notation

To master transformations, we must first be clear on what the notation y=f(x)y = f(x) represents. This notation indicates that for any given value on the horizontal axis (the xx value), the corresponding vertical value (the yy value) on the curve is calculated using the rule defined by f(x)f(x). For example, if we have the function y=x2+3y = x^2 + 3, the yy value located above x=2x = 2 is 22+3=72^2 + 3 = 7, and the value above x=4x = 4 is 42+3=194^2 + 3 = 19. We use this understanding of inputs and outputs to deduce how modifications to the algebra affect the geometry of the graph.

Vertical Stretches: y=af(x)y = a f(x)

Consider the specific case where we compare y=f(x)=x3y = f(x) = x^3 with y=4f(x)=4x3y = 4f(x) = 4x^3. In this transformation, every yy value in the new function is exactly four times as large as the original yy value for the same xx coordinate. Geometrically, this is a vertical stretch of the graph by a factor of 4. The stretch occurs away from the xx axis: points move upwards if yy is positive and downwards if yy is negative.

img-78.jpeg

img-79.jpeg

If the constant aa is between 0 and 1, such as a=0.5a = 0.5, the graph becomes half its original height. If aa is negative, the graph is stretched by the magnitude of aa and then reflected in the xx axis due to the change in sign.

Vertical Translations: y=f(x)+ay = f(x) + a

When we compare y=f(x)=x2y = f(x) = x^2 with y=f(x)+3=x2+3y = f(x) + 3 = x^2 + 3, we find that every yy value increases by 3 units. This translates the entire graph upwards parallel to the yy axis. Formally, we describe this as a translation by the vector (03)\binom{0}{3}. In general, the transformation y=f(x)+ay = f(x) + a results in a translation by (0a)\binom{0}{a}.

In trigonometry, notation requires care. Writing cosx+a\cos x + a can be ambiguous, as it might be confused with cos(x+a)\cos(x + a). Mathematicians typically write a+cosxa + \cos x to clarify that the constant is added to the result of the cosine function, not to the angle itself. Similarly, cos1x\cos^{-1} x refers to the inverse function (arccos) and not 1/cosx1/\cos x, which is written as secx\sec x.

Horizontal Translations: y=f(x+a)y = f(x + a)

This transformation is often counter-intuitive. Adding a positive constant aa to the input xx actually shifts the graph to the left, in the negative xx direction. To understand this, let f(x)=2xf(x) = 2^x and compare it with f(x+3)f(x + 3). On the original graph, the yy value at x=5x = 5 is 25=322^5 = 32. On the new graph y=f(x+3)y = f(x + 3), the yy value above x=2x = 2 is f(2+3)=f(5)=32f(2 + 3) = f(5) = 32. Thus, the value that used to be at x=5x = 5 has moved to x=2x = 2. This requires shifting the graph 3 units to the left.

img-80.jpeg

img-81.jpeg

In general, y=f(x+a)y = f(x + a) is a translation of y=f(x)y = f(x) by the vector (a0)\binom{-a}{0}. If aa is negative, such as y=f(x4)y = f(x - 4), the graph translates 4 units to the right.

To find the expression for f(x+a)f(x + a), replace every xx in the original formula with (x+a)(x + a).

  1. If f(x)=x2+2x5f(x) = x^2 + 2x - 5, then f(x+3)=(x+3)2+2(x+3)5f(x + 3) = (x + 3)^2 + 2(x + 3) - 5.
  2. If f(x)=cos(2x)f(x) = \cos(2x), then f(xπ/2)=cos(2(xπ/2))=cos(2xπ)f(x - \pi/2) = \cos(2(x - \pi/2)) = \cos(2x - \pi). Note that the coefficient 2 must multiply the entire bracketed replacement.

Horizontal Squash: y=f(ax)y = f(ax)

Multiplying the input xx by a factor aa squashes the graph towards the yy axis by a factor of aa. Consider f(x)=x33x2+2f(x) = x^3 - 3x^2 + 2 and f(2x)f(2x). At x=1x = 1, the function f(2x)f(2x) takes the value of f(2)f(2), which is 2-2. This value originally occurred at x=2x = 2, but now occurs at x=1x = 1, effectively compressing the graph horizontally.

img-82.jpeg

img-83.jpeg

If 0<a<10 < a < 1, the graph is stretched horizontally away from the yy axis. If aa is negative, the graph is reflected in the yy axis in addition to the horizontal scaling.

Summary of Transformations

NotationTransformation Type
af(x)af(x)Vertical stretch factor aa away from xx axis. Reflection in xx axis if a<0a < 0.
f(x)+af(x) + aTranslation by vector (0a)\binom{0}{a}.
f(x+a)f(x + a)Translation by vector (a0)\binom{-a}{0}.
f(ax)f(ax)Horizontal squash factor aa towards yy axis. Reflection in yy axis if a<0a < 0.

Combining Transformations

The order of operations is critical when multiple transformations are applied. Consider y=cos(2x+π/6)y = \cos(2x + \pi/6). We could reach this via two different sequences:

  1. Translate by π/6-\pi/6 first: cosxcos(x+π/6)\cos x \rightarrow \cos(x + \pi/6), then squash by factor 2: cos(2x+π/6)\cos(2x + \pi/6). This is correct.
  2. Squash by factor 2 first: cosxcos2x\cos x \rightarrow \cos 2x, then translate by π/6-\pi/6: cos2(x+π/6)=cos(2x+π/3)\cos 2(x + \pi/6) = \cos(2x + \pi/3). This is incorrect. Alternatively, if you squash by 2 first, you would need to translate by only π/12-\pi/12 to reach cos2(x+π/12)=cos(2x+π/6)\cos 2(x + \pi/12) = \cos(2x + \pi/6).

Notation for Composite Functions: f(g(x))f(g(x))

The notation f(g(x))f(g(x)) means that the function g(x)g(x) is the input for function ff. If g(x)=2xg(x) = 2x and f(x)=x2+3x2f(x) = x^2 + 3x - 2, we find f(g(x))f(g(x)) by replacing every xx in ff with 2x2x: f(g(x))=(2x)2+3(2x)2=4x2+6x2f(g(x)) = (2x)^2 + 3(2x) - 2 = 4x^2 + 6x - 2. Note that f(g(x))f(g(x)) is generally not equal to g(f(x))g(f(x)).

Linear and Quadratic Graphs as Transformations

Any linear graph y=mx+cy = mx + c can be viewed as a series of transformations of y=xy = x. One sequence is a vertical stretch of y=xy = x by factor mm, followed by a translation of c/mc/m to the left: y=xy=mxy=m(x+c/m)=mx+cy = x \rightarrow y = mx \rightarrow y = m(x + c/m) = mx + c.

Similarly, a quadratic in the form y=a(x+b)2+cy = a(x + b)^2 + c is a transformation of y=x2y = x^2:

  1. Vertical stretch factor aa: y=ax2y = ax^2.
  2. Translation by b-b horizontally: y=a(x+b)2y = a(x + b)^2.
  3. Translation by cc vertically: y=a(x+b)2+cy = a(x + b)^2 + c.

Geometric Interpretation of Equations

The solutions to the equation f(x)=g(x)f(x) = g(x) correspond to the xx coordinates of the points where the graphs of y=f(x)y = f(x) and y=g(x)y = g(x) intersect. If the equations are solved simultaneously, the resulting (x,y)(x, y) pairs represent the geometric locations where the two curves meet. If the graphs do not intersect, there are no real solutions to the simultaneous equations.

Key takeaways

  • A horizontal translation f(x+a)f(x + a) shifts the graph by aa units in the negative xx direction.
  • A horizontal squash f(ax)f(ax) compresses the graph towards the yy axis by factor aa, which is the inverse of the vertical stretch factor.
  • The order of transformations matters, especially for horizontal changes: a squash applied after a translation affects the translation distance.
  • Graph intersections provide a visual solution to simultaneous equations where the xx values represent the real roots.
Tips

When combining horizontal transformations, always check your work by substituting a specific xx value, such as the xx intercept, to ensure the final graph's position matches your algebraic expression.

Cautions

A common mistake is applying f(ax)+bf(ax) + b as a single horizontal shift. Remember that terms outside the function brackets affect the vertical position, while only terms inside affect the horizontal position.

Insight

The relationship between algebraic solutions and graph intersections is the foundation of coordinate geometry. For example, the number of real roots of a polynomial is visually represented by how many times its graph crosses the xx axis, which is the intersection with the line y=0y = 0.

Frequently asked questions

Why does f(x+a)f(x + a) move the graph to the left if aa is positive?

To obtain the same output value f(k)f(k), the new input xx must satisfy x+a=kx + a = k, meaning x=kax = k - a. Every point is therefore shifted aa units in the negative direction.

How do I correctly apply a horizontal squash and translation together?

It is safest to factorise the input. For f(ax+b)f(ax + b), write it as f(a(x+b/a))f(a(x + b/a)). This shows a squash by factor aa followed by a translation of b/ab/a to the left.

What is the difference between af(x)af(x) and f(ax)f(ax) geometrically?

af(x)af(x) is a vertical stretch that changes the yy coordinates, while f(ax)f(ax) is a horizontal squash that changes the xx coordinates.

Can every quadratic be sketched using transformations?

Yes, by completing the square to reach the form y=a(x+b)2+cy = a(x + b)^2 + c, you can identify the vertical stretch, horizontal translation, and vertical translation required to transform y=x2y = x^2.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.