lecture 8: Operations on functions — Transformations: shifting, squeezing, reflecting, and composing functions

1. Motivation: Why Transform and Compose?

In modeling real‐world phenomena, we often need to tweak basic functions to fit data or combine them to capture complex relationships:


2. Transformations of the Graph

A transformation modifies the graph of a “parent” function f(x)f(x).

2.1 Shifting

Graphical summary

Transform Rule Effect
Up kk f(x)+kf(x)+k Shift up kk
Right hh f(xh)f(x-h) Shift right hh

2.2 Stretching and Squeezing


2.3 Reflection

Example:
Reflect f(x)=2xf(x)=2^x about the y-axis to get g(x)=2xg(x)=2^{-x}, which decays instead of grows.


3. Combining Transformations

Transformations can be chained. Always apply inside-the-function (horizontal) shifts/scales first, then reflections, then outside (vertical) scales/shifts.

Example:
Given
f(x)=x2,g(x)=2f(3(x+1))+4f(x)=x^2,\quad g(x)=-2\,f(3(x+1)) + 4

  1. Inside: x3(x+1)x\to 3(x+1) → shift left 1, compress horizontally by 1/3.
  2. Reflect x-axis and stretch vertically by 2.
  3. Shift up 4.

4. Composition of Functions

Composition feeds one function into another:

(hg)(x)=h(g(x)).(h\circ g)(x) = h\bigl(g(x)\bigr).

Real-world example:
Temperature conversion then rate calculation:

C(t)=59(F(t)32),R(C)=2C+1(RC)(t)=2(59(F(t)32))+1C(t)=\tfrac{5}{9}(F(t)-32), \quad R(C)=2C+1 \quad (R\circ C)(t)=2\bigl(\tfrac{5}{9}(F(t)-32)\bigr)+1

4.1 Decomposing a Function

Given h(x)=2x+3h(x)=\sqrt{2x+3}, one composition is:

You can often find multiple decompositions by regrouping operations.


Regular Exercises

1. Graphing Transformations

Sketch f(x)=log2(x)f(x)=\log_{2}(x) and then sketch g(x)=3log2(2(x1))+2g(x)=-3\,\log_{2}(2(x-1))+2. Label asymptotes and intercepts.

2. Chain of Transformations

Describe the sequence of shifts, stretches, and reflections to go
from y=x3y=x^3 to y=4((x+2)3)1y=4\,( - (x+2)^3 ) -1.

3. Composition Practice

If f(x)=x21f(x)=x^2-1 and g(x)=3x+2g(x)=3x+2, find and simplify (fg)(x)(f\circ g)(x) and (gf)(x)(g\circ f)(x). Determine their domains.

4. Transformation Proof

Let f(x)=x2,k=2,h=3f(x)=x^2, k=2, h=3.
Prove that performing a horizontal stretch by factor kk then a shift by hh is not the same as shifting first then stretching (unless h=0h=0).

5. Domain Composition

Given f(x)=x1f(x)=\sqrt{x-1} and g(x)=log2(x)g(x)=\log_{2}(x), determine the domain of gfg\circ f and fgf\circ g, and explain any restrictions.