Precalculus · Textbook draft · 10 minute reading

Transforming Graphs

Derive shifts, reflections, stretches, and symmetry from changed inputs and outputs.

Before you begin

  • Function notation, domains, and coordinate graphs.

Learning objectives

  • Transform coordinates under a changed function formula.
  • Determine transformed domains and ranges.
  • Use even and odd symmetry in graph analysis.

Suppose a temperature profile is known as a function of time. Delaying the process changes when each temperature is reached; adding a fixed temperature changes the output without changing the timing. Input and output transformations distinguish these operations and let us build a new graph from coordinates on a known one.

Dashed quadratic y equals x squared and its transformed solid graph. The point (1, 1) maps to (4, 3).

Follow a point through the formula

Let

g(x)=Af(B(x−h))+k,A≠0, B≠0.g(x)=A f(B(x-h))+k,\qquad A\ne0,\ B\ne0.

If (u,v)(u,v) is on the graph of ff, then v=f(u)v=f(u). To obtain that same inner input in gg, solve B(x−h)=uB(x-h)=u, giving x=h+u/Bx=h+u/B. Its new output is Av+kAv+k. Thus the point mapping is

(u,v)⟼(h+u/B, Av+k).(u,v)\longmapsto(h+u/B,\ Av+k).

The horizontal factor is reciprocal because we solve for the new input. This is the reason f(2x)f(2x) compresses a graph horizontally by two while 2f(x)2f(x) stretches it vertically by two.

For f(x)=x2f(x)=x^2 and g(x)=−2(x−3)2+5g(x)=-2(x-3)^2+5, the point (1,1)(1,1) maps to (4,3)(4,3) and (−1,1)(-1,1) to (2,3)(2,3). The vertex maps from (0,0)(0,0) to (3,5)(3,5). Reflection in the horizontal axis and vertical stretching are contained in the factor −2-2.

Domains and ranges transform too

The domain of gg consists of inputs for which B(x−h)B(x-h) belongs to the original domain. If f(u)=uf(u)=\sqrt u, then g(x)=2(x−3)+1g(x)=\sqrt{2(x-3)}+1 requires x≥3x\ge3 and has range [1,∞)[1,\infty).

For g(x)=4−2(x−3)g(x)=4-\sqrt{2(x-3)}, the same input restriction holds but outputs now lie in (−∞,4](-\infty,4]. Multiplying an output interval by a negative number reverses its endpoint order.

If the original function is specified only on [0,4][0,4] and g(x)=f(−2(x−1))g(x)=f(-2(x-1)), the domain condition is 0≤−2(x−1)≤40\le-2(x-1)\le4. Solving gives −1≤x≤1-1\le x\le1. The negative horizontal factor reflects and compresses the original interval.

The order of operations affects a shift

The formulas f(2x−6)f(2x-6) and f(2(x−3))f(2(x-3)) are identical. Factoring the inner expression makes the shift h=3h=3 visible. Describing 2x−62x-6 as a shift right by 6 would give the wrong coordinate mapping.

Output operations also have an order. The function 2(f(x)+3)2(f(x)+3) shifts up by 3 before stretching outputs by two, producing 2f(x)+62f(x)+6. The function 2f(x)+32f(x)+3 stretches first, then shifts up by 3. Applying the point mapping avoids relying on a verbal list whose order may be unclear.

Symmetry can reduce the work

An even function satisfies f(−x)=f(x)f(-x)=f(x) on a domain symmetric about zero. Its graph reflects across the vertical axis. For x2x^2, the two inputs ±x\pm x produce equal squares.

An odd function satisfies f(−x)=−f(x)f(-x)=-f(x) on a symmetric domain. Its graph is invariant under a half-turn about the origin. The cube function is odd, while x2+xx^2+x is neither even nor odd. A formula can resemble an even expression but lose this property if its specified domain is not symmetric.

Translating an even graph horizontally moves its line of symmetry. The graph of (x−3)2(x-3)^2 is symmetric about x=3x=3, although this new function is not even as a function of xx. The inherited geometric symmetry and the formal evenness condition refer to different centers.

Absolute values change branches

The function ∣f(x)∣|f(x)| reflects negative outputs upward and retains nonnegative outputs. For f(x)=x−2f(x)=x-2, the result is a V with vertex (2,0)(2,0). The function f(∣x∣)f(|x|) instead uses only the original graph’s nonnegative-input branch and reflects that branch across the vertical axis.

For f(x)=x−2f(x)=x-2, these give ∣x−2∣|x-2| and ∣x∣−2|x|-2, with different vertices. Testing the input zero gives outputs 2 and −2-2, making the distinction visible before drawing either graph.

Exercises

  1. Find the vertex, domain, and range of g(x)=3(x+2)2−7g(x)=3(x+2)^2-7.
  2. Map the point (4,2)(4,2) from ff to g(x)=2f(3(x−1))−5g(x)=2f(3(x-1))-5.
  3. Find the domain and range of 4−x+14-\sqrt{x+1}.
  4. Is x3−2xx^3-2x even, odd, or neither on R\mathbb R?
  5. Compare f(2x)+1f(2x)+1 and 2f(x)+12f(x)+1 when f(x)=x2f(x)=x^2.
  6. For ff with domain [2,6][2,6], determine the domain of f(8−2x)f(8-2x).
Worked solutions
  1. Vertex (−2,−7)(-2,-7), domain R\mathbb R, range [−7,∞)[-7,\infty).
  2. The new input is 1+4/3=7/31+4/3=7/3 and output 2(2)−5=−12(2)-5=-1, giving (7/3,−1)(7/3,-1).
  3. Domain [−1,∞)[-1,\infty) and range (−∞,4](-\infty,4].
  4. Replacing xx by −x-x negates every term, so it is odd.
  5. The first is 4x2+14x^2+1 and the second 2x2+12x^2+1. Horizontal compression has squared the factor through the quadratic.
  6. Solve 2≤8−2x≤62\le8-2x\le6, giving 1≤x≤31\le x\le3.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.