Sub topic 9
Tracking Key Points with a Mapping Rule
Prerequisites and the main rule
Assume you can evaluate function notation, plot points, and identify the domain and range of basic parent functions. You should also know the transformation form
\[ g(x)=a\cdot f(b(x-h))+k, \]
where \(f\) is the parent function.
A mapping rule tells you where each point on the graph of \(f\) moves on the graph of \(g\). If \((x,y)\) lies on \(f\), then the corresponding point on \(g\) is
\[ (x,y)\longrightarrow \left(\frac{x}{b}+h,\ ay+k\right). \]
The horizontal coordinate changes by dividing by \(b\), then adding \(h\). The vertical coordinate changes by multiplying by \(a\), then adding \(k\).
Why the horizontal coordinate is divided
Suppose \((x,y)\) is on \(f\). This means \(f(x)=y\). To make the inside of \(f\) equal to \(x\), solve
\[ b(X-h)=x \]
for the new horizontal coordinate \(X\):
\[ X=\frac{x}{b}+h. \]
The output transformation then sends \(y\) to \(ay+k\). Therefore,
\[ (x,y)\longrightarrow \left(\frac{x}{b}+h,\ ay+k\right). \]
This explains a common error. A factor inside the function affects horizontal values in the opposite way. For example, \(f(2x)\) compresses the graph horizontally by a factor of \(2\), so each original \(x\)-coordinate is divided by \(2\).
Worked example
Start with the parent function
\[ f(x)=x^2. \]
Use the transformed function
\[ g(x)=-2f(x-3)+1. \]
Here,
\[ a=-2,\qquad b=1,\qquad h=3,\qquad k=1. \]
The mapping rule is
\[ (x,y)\longrightarrow (x+3,\ -2y+1). \]
Choose several familiar points from \(y=x^2\):
| Parent point \((x,y)\) | New \(x\)-coordinate | New \(y\)-coordinate | Transformed point |
|---|---|---|---|
| \((-2,4)\) | \(-2+3=1\) | \(-2(4)+1=-7\) | \((1,-7)\) |
| \((-1,1)\) | \(-1+3=2\) | \(-2(1)+1=-1\) | \((2,-1)\) |
| \((0,0)\) | \(0+3=3\) | \(-2(0)+1=1\) | \((3,1)\) |
| \((1,1)\) | \(1+3=4\) | \(-2(1)+1=-1\) | \((4,-1)\) |
| \((2,4)\) | \(2+3=5\) | \(-2(4)+1=-7\) | \((5,-7)\) |
The vertex \((0,0)\) moves to \((3,1)\). The negative value of \(a\) flips the parabola across a horizontal line, and \(|a|=2\) makes it narrower.
Using a mapping rule efficiently
You do not need to map every point on a graph. Map points that reveal its important features:
- For a quadratic, map the vertex and points on both sides.
- For an absolute-value graph, map the corner and nearby points.
- For a square-root graph, map the endpoint and a few increasing points.
- For a cubic, map the intercept and points on both sides of it.
If \(b=0\), the expression does not describe the usual graph transformation, so the mapping rule requires \(b\ne0\). When \(b\) is negative, dividing by \(b\) changes the sign of the horizontal coordinate before \(h\) is added.
def transform(f, a=1, b=1, h=0, k=0):
"""Return g(x) = a * f(b * (x - h)) + k."""
return lambda x: a * f(b * (x - h)) + k
f = lambda x: x ** 2
g = transform(f, a=-2, b=1, h=3, k=1)
print(g(3)) # 1
print(g(4)) # -1
print(g(2)) # -1Exercise
For g(x) = 3f(2(x + 1)) − 4, where f has the point (4, 2), what point lies on g?
Show answer
Here a = 3, b = 2, h = −1, and k = −4. The mapping gives (4, 2) → (4/2 − 1, 3(2) − 4) = (1, 2).