Math Core

Lesson 1.1 · Functions and Linear Systems

Parent functions and transformations

In Algebra 1 you graphed lines, parabolas and absolute value "V" shapes one at a time. Algebra 2 organizes them into families. Every family has one simplest member, and every other member is that same graph slid, flipped or stretched. Once you can read those moves straight from an equation, you can sketch a graph like g(x)=−2x−1+3g(x) = -2\sqrt{x - 1} + 3 in seconds instead of building a table of values.

The parent functions

Definition

Parent function

A parent function is the simplest function in a family. Every other function in the family is a transformation of it: a shift, reflection, stretch or compression of the parent graph.

These are the parent functions you'll use most this year. Learn their shapes and a few key points on each one, because every transformation starts from those points.

FamilyParentKey pointsDomainRange
Linearf(x)=xf(x) = x(0,0)(0, 0), (1,1)(1, 1)all real numbersall real numbers
Quadraticf(x)=x2f(x) = x^2(0,0)(0, 0), (±1,1)(\pm 1, 1), (±2,4)(\pm 2, 4)all real numbersy≥0y \ge 0
Cubicf(x)=x3f(x) = x^3(0,0)(0, 0), (1,1)(1, 1), (−1,−1)(-1, -1)all real numbersall real numbers
Absolute valuef(x)=∣x∣f(x) = \lvert x \rvert(0,0)(0, 0), (±1,1)(\pm 1, 1)all real numbersy≥0y \ge 0
Square rootf(x)=xf(x) = \sqrt{x}(0,0)(0, 0), (1,1)(1, 1), (4,2)(4, 2)x≥0x \ge 0y≥0y \ge 0
Reciprocalf(x)=1xf(x) = \dfrac{1}{x}(1,1)(1, 1), (−1,−1)(-1, -1)x≠0x \ne 0y≠0y \ne 0
y = x^2y = |x|y = x^3y = sqrt(x)Open in grapher →

The parabola and the V both have a lowest point at the origin, called the vertex. The square root graph starts at the origin and only goes right, because you can't take the square root of a negative number. The cubic passes through the origin, falling on the left and rising on the right.

y = xy = 1/xOpen in grapher →

The reciprocal function never touches either axis. Its graph gets closer and closer to the xx- and yy-axes; those lines are its asymptotes.

Translations: sliding a graph

Adding a number outside the function moves the graph up or down. Adding a number inside, next to xx, moves it left or right.

  • g(x)=f(x)+kg(x) = f(x) + k shifts the graph of ff up kk units (down if kk is negative).
  • g(x)=f(x−h)g(x) = f(x - h) shifts the graph of ff right hh units (left if hh is negative).

Why does f(x−3)f(x - 3) move the graph to the right? Think about the vertex of y=(x−3)2y = (x - 3)^2. The inside, x−3x - 3, equals 00 when x=3x = 3, so the output that the parent produced at x=0x = 0 now appears at x=3x = 3. Every point arrives 33 units later.

The dashed parent y = x² and y = (x − 3)² + 1, shifted right 3 and up 1.Open in grapher →

Common mistake

The horizontal shift goes the opposite way from the sign you see. f(x+4)f(x + 4) moves the graph left 44, because x+4=x−(−4)x + 4 = x - (-4), so h=−4h = -4. Vertical shifts are not reversed: f(x)+4f(x) + 4 moves the graph up 44.

Worked example: Reading a translation

Describe how the graph of g(x)=∣x+4∣−2g(x) = \lvert x + 4 \rvert - 2 relates to the graph of f(x)=∣x∣f(x) = \lvert x \rvert, and give the vertex of gg.

Inside the absolute value, x+4=x−(−4)x + 4 = x - (-4), so the graph moves left 4. Outside, −2-2 moves it down 2.

The vertex of the parent is (0,0)(0, 0), so the vertex of gg is (0−4,0−2)=(−4,−2)(0 - 4, 0 - 2) = (-4, -2).

y = |x|y = |x + 4| - 2Open in grapher →

Reflections: flipping a graph

A negative sign also has two possible spots.

  • g(x)=−f(x)g(x) = -f(x) reflects the graph across the xx-axis. Every output changes sign, so (x,y)(x, y) becomes (x,−y)(x, -y).
  • g(x)=f(−x)g(x) = f(-x) reflects the graph across the yy-axis. Every input changes sign, so (x,y)(x, y) becomes (−x,y)(-x, y).
y = sqrt(x)y = -sqrt(x)y = sqrt(-x)Open in grapher →

The square root graph makes the difference easy to see. y=−xy = -\sqrt{x} still starts at the origin and goes right, but it heads down. y=−xy = \sqrt{-x} is only defined when −x≥0-x \ge 0, that is, when x≤0x \le 0, so it goes left.

Stretches and compressions

Multiplying by a number changes the shape.

  • g(x)=a f(x)g(x) = a\,f(x) multiplies every output by aa. If ∣a∣>1\lvert a \rvert > 1, the graph is vertically stretched (pulled away from the xx-axis). If 0<∣a∣<10 < \lvert a \rvert < 1, it is vertically compressed (squashed toward the xx-axis). If aa is negative, the graph is also reflected across the xx-axis.
  • g(x)=f(bx)g(x) = f(bx) multiplies every input by bb. This horizontally compresses the graph by a factor of 1∣b∣\dfrac{1}{\lvert b \rvert} when ∣b∣>1\lvert b \rvert > 1 and stretches it when 0<∣b∣<10 < \lvert b \rvert < 1.
y = |x|y = 3|x|y = 0.5|x|Open in grapher →

Multiplying the absolute value by 33 makes the V steeper: the point (1,1)(1, 1) moves to (1,3)(1, 3). Multiplying by 12\dfrac{1}{2} makes it wider: (2,2)(2, 2) moves to (2,1)(2, 1).

For some parents a horizontal change and a vertical change look identical. For example, 4x=4 x=2x\sqrt{4x} = \sqrt{4}\,\sqrt{x} = 2\sqrt{x} when x≥0x \ge 0, so compressing x\sqrt{x} horizontally by a factor of 14\dfrac{1}{4} gives the same graph as stretching it vertically by 22.

The transformation form

For g(x)=a f(b(x−h))+kg(x) = a\,f\big(b(x - h)\big) + k:

PartEffect on the graph of ff
hhshift right hh (left if h<0h < 0)
kkshift up kk (down if k<0k < 0)
aavertical stretch or compression by ∣a∣\lvert a \rvert; reflect across the xx-axis if a<0a < 0
bbhorizontal compression by 1∣b∣\dfrac{1}{\lvert b \rvert}; reflect across the yy-axis if b<0b < 0

When b=1b = 1, a point (x,y)(x, y) on ff moves to (x+h, ay+k)(x + h,\ a y + k).

Combining transformations

When several transformations act at once, move key points in this order: stretch or reflect first, then shift. The rule (x,y)→(x+h, ay+k)(x, y) \to (x + h,\ ay + k) does both in one step.

Worked example: Graphing with key points

Graph g(x)=−2x−1+3g(x) = -2\sqrt{x - 1} + 3. State its domain and range.

Here f(x)=xf(x) = \sqrt{x}, h=1h = 1, a=−2a = -2 and k=3k = 3. The graph is reflected across the xx-axis, stretched vertically by 22, then shifted right 11 and up 33.

Move three key points of x\sqrt{x} with (x,y)→(x+1, −2y+3)(x, y) \to (x + 1,\ -2y + 3):

Parent pointNew point
(0,0)(0, 0)(1,3)(1, 3)
(1,1)(1, 1)(2,1)(2, 1)
(4,2)(4, 2)(5,−1)(5, -1)

The graph starts at (1,3)(1, 3) and heads down and to the right.

y = sqrt(x)y = -2sqrt(x - 1) + 3(1, 3)(2, 1)(5, -1)Open in grapher →

Domain: x−1≥0x - 1 \ge 0, so x≥1x \ge 1. Range: the starting value is 33 and the graph only goes down, so y≤3y \le 3.

Worked example: Writing the equation

The graph of f(x)=x2f(x) = x^2 is reflected across the xx-axis, compressed vertically by a factor of 12\dfrac{1}{2}, and shifted left 22 and up 55. Write an equation for the new function gg.

Reflect and compress: a=−12a = -\dfrac{1}{2}. Left 22: h=−2h = -2, so the inside is x+2x + 2. Up 55: k=5k = 5.

g(x)=−12(x+2)2+5g(x) = -\frac{1}{2}(x + 2)^2 + 5

The vertex is (−2,5)(-2, 5), and the parabola opens down.

y = x^2y = -0.5(x + 2)^2 + 5(-2, 5)Open in grapher →

Tip

Check a transformed equation by substituting one key point. The vertex (−2,5)(-2, 5) should satisfy gg: −12(−2+2)2+5=5-\frac{1}{2}(-2 + 2)^2 + 5 = 5. It does.

Worked example: Transforming a function you can't see

The point (4,−6)(4, -6) lies on the graph of a function ff. Find the matching point on each graph.

  1. g(x)=12f(x+3)−1g(x) = \dfrac{1}{2}f(x + 3) - 1
  2. h(x)=f(2x)h(x) = f(2x)

Solutions.

  1. Here h=−3h = -3, a=12a = \dfrac{1}{2} and k=−1k = -1. The point moves to (4−3, 12(−6)−1)=(1,−4)\left(4 - 3,\ \dfrac{1}{2}(-6) - 1\right) = (1, -4). Check: g(1)=12f(4)−1=−3−1=−4g(1) = \dfrac{1}{2}f(4) - 1 = -3 - 1 = -4.
  2. You need 2x=42x = 4, so x=2x = 2. Then h(2)=f(4)=−6h(2) = f(4) = -6, and the point is (2,−6)(2, -6). The xx-coordinate was divided by 22, a horizontal compression.

Practice

Practice 1

How does the graph of g(x)=(x−5)2g(x) = (x - 5)^2 relate to the graph of f(x)=x2f(x) = x^2?

Practice 2

What is the vertex of g(x)=∣x+3∣−4g(x) = \lvert x + 3 \rvert - 4? Enter it as an ordered pair.

Enter a point like (2, -3)

Practice 3

Which function reflects the graph of f(x)=xf(x) = \sqrt{x} across the yy-axis and then shifts it up 22?

Practice 4

The graph of f(x)=x2f(x) = x^2 is shifted left 44 units and down 11 unit. Write the new function g(x)g(x).

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

What is the domain of g(x)=x+5−1g(x) = \sqrt{x + 5} - 1? Write it as an inequality in xx.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 6

The function g(x)=−3∣x−2∣+7g(x) = -3\lvert x - 2 \rvert + 7 has a maximum value. What is it?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

The point (6,2)(6, 2) is on the graph of ff. What point must be on the graph of g(x)=3f(x−1)−4g(x) = 3f(x - 1) - 4?

Enter a point like (2, -3)

Practice 8

The graph below is a transformation of f(x)=∣x∣f(x) = \lvert x \rvert. Its vertex is (1,−3)(1, -3) and it passes through (3,1)(3, 1). Write its equation.

A transformed absolute value graph through (1, −3) and (3, 1).Open in grapher →

Enter an expression, e.g. 3x^2 - 2x + 1