Category: Functions Level: 201
y = 1/(x - 2) + 1: vertical asymptote x = 2, horizontal asymptote y = 1
Near x = 2 the denominator shrinks to zero and the graph shoots off to infinity. Far from the origin the fraction fades to zero and the graph settles toward y = 1.
At x = 2 the denominator is 0, and nobody divides by 0. The graph cannot touch the line x = 2.
x - 2 = 0 ⇒ x = 2
Try x values closer and closer to 2. Just right of 2 the outputs blow up, just left of 2 they plunge. That is a vertical asymptote.
x → 2+: y → ∞, x → 2-: y → −∞
Now try huge x values. The fraction 1/(x − 2) shrinks toward 0, so y settles toward 1 from above on the right and from below on the left.
x → ±∞: 1/(x - 2) → 0, y → 1
Join the points without crossing the asymptotes. The graph has two branches. It crosses the x-axis at 1 and the y-axis at 0.5.
y = 0: 1/(x - 2) = -1 ⇒ x = 1; x = 0: y = 0.5
cd svg-generator python3 -m svgmath render rational-asymptotes --out /tmp/rational-asymptotes
Source: svgmath/diagrams/function_families.py