Category: Functions Level: 201
y = 1/(x - h) + k: center (h, k), asymptotes x = h and y = k
The graph of y = 1/(x − 2) + 1 is the graph of y = 1/x moved right 2 and up 1. The asymptotes ride along, so their crossing point lands at (2, 1).
The parent y = 1/x has two branches. Its asymptotes are the two axes, and they cross at the center (0, 0).
y = 1/x
Replace x with x − 2. The whole picture slides 2 to the right, and the vertical asymptote moves to x = 2.
y = 1/(x - 2)
Add 1. The picture rises 1, and the horizontal asymptote moves to y = 1. The center is now (2, 1).
y = 1/(x - 2) + 1
In y = 1/(x − h) + k, the number subtracted from x is the vertical asymptote and the number added at the end is the horizontal one. No table needed.
h = 2: x = 2, k = 1: y = 1
cd svg-generator python3 -m svgmath render rational-shift --out /tmp/rational-shift
Source: svgmath/diagrams/function_families.py