The geometric series as a function

The graph below shows $f(x) = 1/(1-x)$ together with the approximations of the form $$\frac{1}{1-x} \approx \sum_{n=0}^N x^n.$$ You can use the slider to determine the order of the approximation or move the point of tangency to see the effect.

Order $n$: