Learn on PengiOpenStax Algebra and TrigonometryChapter 3: Functions

Lesson 3.5: Transformation of Functions

In this Grade 7 math lesson from OpenStax Algebra and Trigonometry, students learn how to transform functions by applying vertical and horizontal shifts, reflections across the x-axis and y-axis, and compressions and stretches to their graphs. Using notation such as g(x) = f(x) + k, students practice identifying how changes to a function's equation affect its graph and determine whether a function is even, odd, or neither. The lesson is part of Chapter 3: Functions and builds students' ability to combine multiple transformations to model real-world scenarios.

Section 1

📘 Transformation of Functions

New Concept

Function transformations allow us to take a basic 'toolkit' function and modify its graph. By systematically shifting, reflecting, stretching, or compressing the graph, we can create new functions to model a wide variety of real-world scenarios.

What’s next

Next, you'll master each transformation—shifts, reflections, and stretches—through interactive examples and practice cards. Soon, you'll be combining them like a pro.

Section 2

Vertical Shift

Property

Given a function f(x)f(x), a new function g(x)=f(x)+kg(x) = f(x) + k, where kk is a constant, is a vertical shift of the function f(x)f(x). All the output values change by kk units. If kk is positive, the graph will shift up. If kk is negative, the graph will shift down. To apply a vertical shift from a table, add the constant kk to each output value.

Examples

  • The function f(x)=x2f(x) = x^2 shifted up 4 units becomes g(x)=x2+4g(x) = x^2 + 4. The vertex moves from (0,0)(0,0) to (0,4)(0,4).
  • The function f(x)=xf(x) = \sqrt{x} shifted down 1 unit becomes h(x)=x1h(x) = \sqrt{x} - 1. The graph's starting point moves from (0,0)(0,0) to (0,1)(0,-1).

Section 3

Horizontal Shift

Property

Given a function ff, a new function g(x)=f(xh)g(x) = f(x - h), where hh is a constant, is a horizontal shift of the function ff. If hh is positive, the graph will shift right. If hh is negative, the graph will shift left. To apply a horizontal shift from a table, add the value of the shift hh to each input value.

Examples

  • The function f(x)=x3f(x) = x^3 shifted right by 2 units becomes g(x)=(x2)3g(x) = (x-2)^3. The point of inflection at (0,0)(0,0) moves to (2,0)(2,0).
  • The function f(x)=xf(x) = |x| shifted left by 3 units becomes h(x)=x+3h(x) = |x+3|. The vertex moves from (0,0)(0,0) to (3,0)(-3,0).

Section 4

Reflections about the Axes

Property

Given a function f(x)f(x), a new function g(x)=f(x)g(x) = -f(x) is a vertical reflection of the function f(x)f(x), sometimes called a reflection about the xx-axis. To apply this, multiply all output values by 1-1.

Given a function f(x)f(x), a new function g(x)=f(x)g(x) = f(-x) is a horizontal reflection of the function f(x)f(x), sometimes called a reflection about the yy-axis. To apply this, multiply all input values by 1-1.

Examples

  • The graph of f(x)=x3f(x) = x^3 reflected across the x-axis is g(x)=x3g(x) = -x^3. The point (2,8)(2,8) on the original graph becomes (2,8)(2,-8) on the new graph.

Section 5

Even and Odd Functions

Property

A function is called an even function if for every input xx, f(x)=f(x)f(x) = f(-x). The graph of an even function is symmetric about the yy-axis.

A function is called an odd function if for every input xx, f(x)=f(x)f(x) = -f(-x). The graph of an odd function is symmetric about the origin.

Examples

  • The function f(x)=3x4+5f(x) = 3x^4 + 5 is even because f(x)=3(x)4+5=3x4+5=f(x)f(-x) = 3(-x)^4 + 5 = 3x^4 + 5 = f(x).

Section 6

Vertical Stretches and Compressions

Property

Given a function f(x)f(x), a new function g(x)=af(x)g(x) = a f(x), where aa is a constant, is a vertical stretch or vertical compression of the function f(x)f(x).

  • If a>1a > 1, then the graph will be stretched.
  • If 0<a<10 < a < 1, then the graph will be compressed.
  • If a<0a < 0, then there will be a combination of a vertical stretch or compression with a vertical reflection.

Examples

  • To stretch the graph of f(x)=x2f(x) = x^2 vertically by a factor of 4, you use g(x)=4x2g(x) = 4x^2. The point (1,1)(1,1) on the original graph moves to (1,4)(1,4).
  • To compress the graph of f(x)=xf(x) = |x| vertically by a factor of 1/31/3, you use h(x)=13xh(x) = \frac{1}{3}|x|. The point (3,3)(3,3) on the original graph moves to (3,1)(3,1).

Section 7

Horizontal Stretches and Compressions

Property

Given a function f(x)f(x), a new function g(x)=f(bx)g(x) = f(bx), where bb is a constant, is a horizontal stretch or horizontal compression of the function f(x)f(x).

  • If b>1b > 1, then the graph will be compressed by 1b\frac{1}{b}.
  • If 0<b<10 < b < 1, then the graph will be stretched by 1b\frac{1}{b}.
  • If b<0b < 0, then there will be a combination of a horizontal stretch or compression with a horizontal reflection.

Examples

  • To compress the graph of f(x)=x2f(x) = x^2 horizontally by a factor of 1/21/2, use g(x)=(2x)2g(x) = (2x)^2. The point (1,1)(1,1) on the original graph moves to (1/2,1)(1/2, 1).
  • To stretch the graph of f(x)=xf(x) = \sqrt{x} horizontally by a factor of 4, use h(x)=14xh(x) = \sqrt{\frac{1}{4}x}. The point (16,4)(16,4) on the original graph moves to (64,4)(64,4).

Section 8

Combining Transformations

Property

When combining vertical transformations written in the form af(x)+kaf(x) + k, first vertically stretch by aa and then vertically shift by kk.

When combining horizontal transformations written in the form f(b(xh))f(b(x - h)), first horizontally stretch by 1b\frac{1}{b} and then horizontally shift by hh.

To handle forms like f(bx+p)f(bx + p), factor inside the function to get f(b(x+pb))f(b(x + \frac{p}{b})). Horizontal and vertical transformations are independent and can be performed in either order.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Functions

  1. Lesson 1

    Lesson 3.1: Functions and Function Notation

  2. Lesson 2

    Lesson 3.2: Domain and Range

  3. Lesson 3

    Lesson 3.3: Rates of Change and Behavior of Graphs

  4. Lesson 4

    Lesson 3.4: Composition of Functions

  5. Lesson 5Current

    Lesson 3.5: Transformation of Functions

  6. Lesson 6

    Lesson 3.6: Absolute Value Functions

  7. Lesson 7

    Lesson 3.7: Inverse Functions

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Transformation of Functions

New Concept

Function transformations allow us to take a basic 'toolkit' function and modify its graph. By systematically shifting, reflecting, stretching, or compressing the graph, we can create new functions to model a wide variety of real-world scenarios.

What’s next

Next, you'll master each transformation—shifts, reflections, and stretches—through interactive examples and practice cards. Soon, you'll be combining them like a pro.

Section 2

Vertical Shift

Property

Given a function f(x)f(x), a new function g(x)=f(x)+kg(x) = f(x) + k, where kk is a constant, is a vertical shift of the function f(x)f(x). All the output values change by kk units. If kk is positive, the graph will shift up. If kk is negative, the graph will shift down. To apply a vertical shift from a table, add the constant kk to each output value.

Examples

  • The function f(x)=x2f(x) = x^2 shifted up 4 units becomes g(x)=x2+4g(x) = x^2 + 4. The vertex moves from (0,0)(0,0) to (0,4)(0,4).
  • The function f(x)=xf(x) = \sqrt{x} shifted down 1 unit becomes h(x)=x1h(x) = \sqrt{x} - 1. The graph's starting point moves from (0,0)(0,0) to (0,1)(0,-1).

Section 3

Horizontal Shift

Property

Given a function ff, a new function g(x)=f(xh)g(x) = f(x - h), where hh is a constant, is a horizontal shift of the function ff. If hh is positive, the graph will shift right. If hh is negative, the graph will shift left. To apply a horizontal shift from a table, add the value of the shift hh to each input value.

Examples

  • The function f(x)=x3f(x) = x^3 shifted right by 2 units becomes g(x)=(x2)3g(x) = (x-2)^3. The point of inflection at (0,0)(0,0) moves to (2,0)(2,0).
  • The function f(x)=xf(x) = |x| shifted left by 3 units becomes h(x)=x+3h(x) = |x+3|. The vertex moves from (0,0)(0,0) to (3,0)(-3,0).

Section 4

Reflections about the Axes

Property

Given a function f(x)f(x), a new function g(x)=f(x)g(x) = -f(x) is a vertical reflection of the function f(x)f(x), sometimes called a reflection about the xx-axis. To apply this, multiply all output values by 1-1.

Given a function f(x)f(x), a new function g(x)=f(x)g(x) = f(-x) is a horizontal reflection of the function f(x)f(x), sometimes called a reflection about the yy-axis. To apply this, multiply all input values by 1-1.

Examples

  • The graph of f(x)=x3f(x) = x^3 reflected across the x-axis is g(x)=x3g(x) = -x^3. The point (2,8)(2,8) on the original graph becomes (2,8)(2,-8) on the new graph.

Section 5

Even and Odd Functions

Property

A function is called an even function if for every input xx, f(x)=f(x)f(x) = f(-x). The graph of an even function is symmetric about the yy-axis.

A function is called an odd function if for every input xx, f(x)=f(x)f(x) = -f(-x). The graph of an odd function is symmetric about the origin.

Examples

  • The function f(x)=3x4+5f(x) = 3x^4 + 5 is even because f(x)=3(x)4+5=3x4+5=f(x)f(-x) = 3(-x)^4 + 5 = 3x^4 + 5 = f(x).

Section 6

Vertical Stretches and Compressions

Property

Given a function f(x)f(x), a new function g(x)=af(x)g(x) = a f(x), where aa is a constant, is a vertical stretch or vertical compression of the function f(x)f(x).

  • If a>1a > 1, then the graph will be stretched.
  • If 0<a<10 < a < 1, then the graph will be compressed.
  • If a<0a < 0, then there will be a combination of a vertical stretch or compression with a vertical reflection.

Examples

  • To stretch the graph of f(x)=x2f(x) = x^2 vertically by a factor of 4, you use g(x)=4x2g(x) = 4x^2. The point (1,1)(1,1) on the original graph moves to (1,4)(1,4).
  • To compress the graph of f(x)=xf(x) = |x| vertically by a factor of 1/31/3, you use h(x)=13xh(x) = \frac{1}{3}|x|. The point (3,3)(3,3) on the original graph moves to (3,1)(3,1).

Section 7

Horizontal Stretches and Compressions

Property

Given a function f(x)f(x), a new function g(x)=f(bx)g(x) = f(bx), where bb is a constant, is a horizontal stretch or horizontal compression of the function f(x)f(x).

  • If b>1b > 1, then the graph will be compressed by 1b\frac{1}{b}.
  • If 0<b<10 < b < 1, then the graph will be stretched by 1b\frac{1}{b}.
  • If b<0b < 0, then there will be a combination of a horizontal stretch or compression with a horizontal reflection.

Examples

  • To compress the graph of f(x)=x2f(x) = x^2 horizontally by a factor of 1/21/2, use g(x)=(2x)2g(x) = (2x)^2. The point (1,1)(1,1) on the original graph moves to (1/2,1)(1/2, 1).
  • To stretch the graph of f(x)=xf(x) = \sqrt{x} horizontally by a factor of 4, use h(x)=14xh(x) = \sqrt{\frac{1}{4}x}. The point (16,4)(16,4) on the original graph moves to (64,4)(64,4).

Section 8

Combining Transformations

Property

When combining vertical transformations written in the form af(x)+kaf(x) + k, first vertically stretch by aa and then vertically shift by kk.

When combining horizontal transformations written in the form f(b(xh))f(b(x - h)), first horizontally stretch by 1b\frac{1}{b} and then horizontally shift by hh.

To handle forms like f(bx+p)f(bx + p), factor inside the function to get f(b(x+pb))f(b(x + \frac{p}{b})). Horizontal and vertical transformations are independent and can be performed in either order.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Functions

  1. Lesson 1

    Lesson 3.1: Functions and Function Notation

  2. Lesson 2

    Lesson 3.2: Domain and Range

  3. Lesson 3

    Lesson 3.3: Rates of Change and Behavior of Graphs

  4. Lesson 4

    Lesson 3.4: Composition of Functions

  5. Lesson 5Current

    Lesson 3.5: Transformation of Functions

  6. Lesson 6

    Lesson 3.6: Absolute Value Functions

  7. Lesson 7

    Lesson 3.7: Inverse Functions