Graphs and Transformations

Learning goals

  • Recognize parent functions and connect their shapes with tables and formulas
  • Explain horizontal and vertical changes by tracking corresponding graph points
  • Construct transformed graphs while preserving domain and endpoint information
  • Classify symmetry using both the function rule and its domain
  • Identify intervals of change and local or global extrema from graphs

Familiar shapes as starting points

A parent function is a simple reference function from which we build related graphs. A parent is a starting choice, not a claim that every function belongs to one of a few families.

Compare absolute value and squaring at inputs 0,1,20,1,2. Their outputs are 0,1,20,1,2 and 0,1,40,1,4. Both graphs turn at the origin, but absolute value makes a corner with straight sides; squaring makes a smooth curve whose rise becomes steeper farther from the origin.

A corner and a smooth turnThe solid absolute-value graph and dashed quadratic graph meet at the origin and at plus or minus one. At input two their heights are two and four.-3-2-101230123456xyabsolute valuequadratic
Absolute value and squaring agree at three inputs, but the shapes between and beyond them differ.

These familiar parents give us useful landmarks. Here, each has its natural real domain.

ParentDomainRangeA useful feature
f(x)=xf(x)=xAll real numbersAll real numbersStraight line through the origin
f(x)=x2f(x)=x^2All real numbers[0,∞)[0,\infty)Smooth turn at (0,0)(0,0)
f(x)=x3f(x)=x^3All real numbersAll real numbersIncreasing through (0,0)(0,0)
f(x)=∣x∣f(x)=\lvert x\rvertAll real numbers[0,∞)[0,\infty)Corner at (0,0)(0,0)
f(x)=xf(x)=\sqrt{x}[0,∞)[0,\infty)[0,∞)[0,\infty)Starts at (0,0)(0,0) and extends right
f(x)=1/xf(x)=1/xx≠0x\ne0y≠0y\ne0Two separate branches

For example, the reciprocal parent never takes input zero and never produces output zero. A sketch must retain that missing input; connecting its branches would draw points that do not exist.

Check your understanding

Which parent has straight sides meeting in a corner and has range [0,∞)[0,\infty)?

Answer choices

Change the output

Adding to a function’s output moves every point vertically. If f(2)=5f(2)=5, then f(2)+3=8f(2)+3=8: the input stays 22, while the height rises by 33. Multiplying the output by 22 would instead change the height from 55 to 1010.

For a point (u,v)(u,v) on y=f(x)y=f(x), the rule g(x)=af(x)+kg(x)=a f(x)+k gives a corresponding point (u,av+k)(u,av+k). Apply the multiplication before adding kk.

If a=0a=0, all defined outputs become kk. The original domain still matters: multiplying an undefined value by zero does not define it.

Worked example 1 Move a corner and its neighboring points

Problem. Starting from f(x)=∣x∣f(x)=\lvert x\rvert, consider g(x)=−2∣x−3∣+7g(x)=-2\lvert x-3\rvert+7.

Part A: Find the corner of gg.

Part B: Find the points corresponding to (1,1)(1,1) and (−1,1)(-1,1), and construct the graph.

Part C: State its domain and range.

Solution. Part A: The expression x−3x-3 uses the old input zero when x=3x=3, so the corner moves right to horizontal position 33. Its height becomes −2(0)+7=7-2(0)+7=7. The corner is (3,7)(3,7).

Part B: To reach the old input 11, solve x−3=1x-3=1, giving x=4x=4. To reach −1-1, solve x−3=−1x-3=-1, giving x=2x=2. Both old heights were 11, so both new heights are −2(1)+7=5-2(1)+7=5. The points are (4,5)(4,5) and (2,5)(2,5).

The graph is a downward V with straight sides through those points.

Part C: Every real input is allowed. Since absolute value is nonnegative, subtracting twice it from 77 gives range (−∞,7](-\infty,7].

A reflected and shifted VThe graph is a downward V with corner (3,7), passing through (2,5) and (4,5). The displayed portions continue beyond the window.0123456012345678xyg(x)
The corner is the greatest output. The two arms continue downward beyond the viewing window.

The explorer below shows a∣x−h∣+ka\lvert x-h\rvert+k. Begin at its starting graph, change only hh, and track the corner. Reset, then change only kk. Finally change aa to compare a stretch, reflection, and the flat case. The point follows the corner when a≠0a\ne0; when a=0a=0, it is just a marked point on a horizontal line.

Change one part of an absolute-value graph

y = |x|. Its corner sits at (0, 0), not shifted at all. Its two arms point upward, rising one unit for every unit across. A coordinate plane with the graph of |x| drawn on it, with its corner marked. Use the controls below the figure to stretch it, or to shift it across or up and down. -6 -4 -2 2 4 6 -4 -2 2 4 6 8
Stretch a Inside h Outside k

y = |x|. Its corner sits at (0, 0), not shifted at all. Its two arms point upward, rising one unit for every unit across.

Change one control at a time and compare the marked point with the equation. Reset returns to the parent graph.

Change the input

An inside change tells us which new input reaches an old one. Suppose the original graph has a point (6,3)(6,3). In g(x)=f(2x)g(x)=f(2x), the old input 66 is reached when 2x=62x=6, so the corresponding point is (3,3)(3,3).

The point does not move to (12,3)(12,3). At the new input 1212, the function would receive 2424, a different old input. Every horizontal position is halved: this is a horizontal compression by factor 1/21/2.

Same height, half the horizontal positionThe original solid graph joins (-4,0), (2,6), and (8,0). The dashed graph joins (-2,0), (1,6), and (4,0). Corresponding heights stay the same while horizontal positions are halved.-4-20246802468xyf(x)f(2x)
The complete broken-line graph is compressed toward the vertical axis. Heights and endpoint inclusion stay unchanged.
Original point on ffCorresponding point on g(x)=f(2x)g(x)=f(2x)
(−4,0)(-4,0)(−2,0)(-2,0)
(2,6)(2,6)(1,6)(1,6)
(8,0)(8,0)(4,0)(4,0)

More generally, g(x)=f(bx)g(x)=f(bx) sends (u,v)(u,v) to (u/b,v)(u/b,v) when b≠0b\ne0. It compresses horizontally when ∣b∣>1\lvert b\rvert>1, stretches when 0<∣b∣<10<\lvert b\rvert<1, and also reflects across the yy-axis when b<0b<0.

A horizontal shift follows the same reasoning. To reach old input uu in f(x−h)f(x-h), solve x−h=ux-h=u. The new input is u+hu+h: positive hh moves right. For f(x+4)f(x+4), the new input is u−4u-4, a shift left.

Check your understanding

A graph contains (9,−2)(9,-2). Where is the corresponding point on y=f(x/3)y=f(x/3)?

Answer choices

Track all the changes together

We can combine these moves without memorizing an order of verbal directions. Match the inside to the old input, then calculate the new output.

Worked example 2 Transform points without knowing a formula

Problem. The graph of ff consists of straight segments joining (−6,2)(-6,2), (0,−4)(0,-4), and (4,6)(4,6), with both endpoints included. Consider the function

g(x)=−12f(−2(x+1))+4.g(x)=-\tfrac12 f\bigl(-2(x+1)\bigr)+4.

Part A: Construct its entire graph and give the corner and endpoints.

Part B: State its domain and range.

Solution. Part A: For old input −6-6, solve −2(x+1)=−6-2(x+1)=-6. This gives x=2x=2, while the old height 22 becomes −12(2)+4=3-\tfrac12(2)+4=3. Thus (−6,2)(-6,2) moves to (2,3)(2,3).

The same calculation gives the other points:

Old point (u,v)(u,v)New input −1−u/2-1-u/2New height 4−v/24-v/2
(−6,2)(-6,2)2233
(0,−4)(0,-4)−1-166
(4,6)(4,6)−3-311

Join the points in their new left-to-right order: (−3,1)(-3,1), (−1,6)(-1,6), (2,3)(2,3). The negative inside multiplier reverses their horizontal order. The corner is (−1,6)(-1,6), and the endpoints are (−3,1)(-3,1) and (2,3)(2,3).

Part B: The domain is [−3,2][-3,2] and the range is [1,6][1,6]. The endpoints remain included because they correspond to included old endpoints.

Reversing horizontal orderThe transformed graph consists of straight segments from (-3,1) to (-1,6) to (2,3), all points included.-4-3-2-101234012345678xytransformed graph
The original right endpoint becomes the new left endpoint. The corner remains a corner.

For the general rule

g(x)=af(b(x−h))+k,g(x)=a f\bigl(b(x-h)\bigr)+k,

take a≠0a\ne0 and b≠0b\ne0. An original point (u,v)(u,v) has v=f(u)v=f(u). Solving b(x−h)=ub(x-h)=u gives x=h+u/bx=h+u/b, and its new output is av+kav+k. Therefore the correspondence is

(u,v)⟼(h+ub, k+av).(u,v)\longmapsto\left(h+\frac{u}{b},\ k+av\right).

This argument works for every original point, not just the three in the example. Conversely, every allowed new input sends b(x−h)b(x-h) into the old domain, so no extra points are added. Open endpoints stay open and closed endpoints stay closed.

Factor the inside before reading hh. For example, 3x−12=3(x−4)3x-12=3(x-4), so f(3x−12)f(3x-12) divides old horizontal positions by 33 and then adds 44. It does not shift by 1212.

Check your understanding

The domain of ff is [−3,5)[-3,5). What is the domain of g(x)=f(2(x−1))g(x)=f(2(x-1))?

Answer choices

Read symmetry and change

A graph may match itself after a reflection. For f(x)=x2f(x)=x^2, inputs −3-3 and 33 both give 99. In general, (−x)2=x2(-x)^2=x^2, so the graph mirrors across the yy-axis. This is even symmetry: f(−x)=f(x)f(-x)=f(x) for every input in a domain symmetric about zero.

For f(x)=x3f(x)=x^3, those inputs give −27-27 and 2727. The rule (−x)3=−x3(-x)^3=-x^3 shows odd symmetry: f(−x)=−f(x)f(-x)=-f(x). Each point (u,v)(u,v) has partner (−u,−v)(-u,-v), a half-turn about the origin.

Both definitions require that −x-x be allowed whenever xx is allowed. The rule x2x^2 restricted to [0,3][0,3] is neither even nor odd: most of its reflected inputs are missing. The zero function on all real numbers is both even and odd. Other nonzero constant functions on all real numbers are even but not odd.

Partner points under reflection and a half-turnThe upper panel shows the parabola y equals x squared on the symmetric domain [-2,2], with equal horizontal and vertical units. The marked points (-1,1) and (1,1) are mirror partners. The lower panel shows y equals x cubed on [-1,1], also with equal units. Its marked endpoints (-1,-1) and (1,1) are half-turn partners about the origin.Even: mirror across the y-axisy = x², -2 ≤ x ≤ 2xy-2204(-1,1)(1,1)Partner points share the same height.Odd: half-turn about the originy = x³, -1 ≤ x ≤ 1xy-1101-1(-1,-1)(1,1)Partner points have opposite coordinates.
Reflection keeps heights equal; a half-turn reverses both coordinates. Each shown domain includes every input's negative.

Check your understanding

Which function is odd on its stated domain?

Answer choices

To read change, move left to right. A function is increasing on an interval when every larger input there gives a larger output. It is decreasing when every larger input gives a smaller output. A constant interval has equal outputs, so it is neither strictly increasing nor strictly decreasing.

An output is a local maximum if it is at least as large as nearby outputs, and a local minimum if it is at most as large. Here we use these local terms at interior points of the domain. A global maximum or global minimum compares with every output in the domain, including any included endpoints. Together these are extrema. Name both the value and the input where it occurs.

Worked example 3 Separate the highest peak from a smaller peak

Problem. The entire graph below consists of straight segments through (−5,1)(-5,1), (−2,5)(-2,5), (1,−1)(1,-1), (4,3)(4,3), and (6,0)(6,0), all included.

Part A: State its increasing and decreasing intervals.

Part B: State its local extrema.

Part C: State its global extrema.

Peaks and valleys on a complete graphThe entire graph consists of straight segments through the filled points (-5,1), (-2,5), (1,-1), (4,3), and (6,0).-6-5-4-3-2-10123456-2-10123456xycomplete graph
The endpoints and every corner are included. Straight segments fill the intervals between them.

Solution. Part A: The graph rises from input −5-5 to −2-2, falls to 11, rises to 44, and falls to 66. We report intervals between turning points using open endpoints:

  • Increasing on (−5,−2)(-5,-2) and (1,4)(1,4).
  • Decreasing on (−2,1)(-2,1) and (4,6)(4,6).

Part B: The local maximum values are 55 at x=−2x=-2 and 33 at x=4x=4. The local minimum value is −1-1 at x=1x=1.

Part C: The global maximum is 55 at x=−2x=-2, and the global minimum is −1-1 at x=1x=1. The smaller peak at x=4x=4 is only a local maximum because another part of the graph is higher. Neither endpoint exceeds the highest peak or falls below the lowest valley.

The complete-graph condition matters. A table can show outputs increasing at its listed inputs while hiding a dip between them. A cropped graph can hide a higher peak. Without information about the missing intervals, report only what the data establish.

Choose a rule from graph features

Different parent families can fit the same few points. Choose a shape using information about the relationship, not just one convenient match.

Worked example 4 Distinguish a corner from a smooth turn

Problem. An absolute-value graph has corner (5,−2)(5,-2) and passes through (8,4)(8,4).

Part A: Find its rule.

Part B: Find a quadratic with the same vertex and the same second point.

Part C: Compare their outputs at x=6x=6.

Solution. Part A: The corner sets the absolute-value form A(x)=a∣x−5∣−2A(x)=a\lvert x-5\rvert-2. Using (8,4)(8,4) gives 4=3a−24=3a-2, so a=2a=2 and

A(x)=2∣x−5∣−2.A(x)=2\lvert x-5\rvert-2.

Part B: The quadratic has form Q(x)=c(x−5)2−2Q(x)=c(x-5)^2-2. The second point gives 4=9c−24=9c-2, so c=2/3c=2/3 and

Q(x)=23(x−5)2−2.Q(x)=\tfrac23(x-5)^2-2.

Part C: At input 66, the distance from the center is 11. Thus A(6)=0A(6)=0 while Q(6)=−4/3Q(6)=-4/3. Both match the given points, but their different shapes predict different values between them.

Two models through the same landmarksThe solid V and dashed parabola share vertex (5,-2) and point (8,4). The V is higher between these points.0246810-202468xyabsolute valuequadratic
The models share the given landmarks but disagree at other inputs.

Check your understanding

The entire graph is y=−∣x+2∣+6y=-\lvert x+2\rvert+6 for real xx. Which statement is correct?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In 1637, René Descartes published La Géométrie as an appendix to his Discourse on Method. It asked readers to connect geometric constructions with algebraic equations. Descartes described giving names to known and unknown lengths, then expressing the relationships between them as equations.

The book was written for experienced mathematicians, not as a school introduction to graph paper. Its methods helped make it possible to study a geometric question through algebra, even when the resulting curve was harder to draw than a circle or a straight line. The University of St Andrews reproduces an excerpt from the work.

Your progress

See all your progress →