Let's say we want to animate a secant line to a curve at a point turning into a tangent line as . Now, you could make a really fancy version of this that does everything automatically for you (try it once you get the hang of things), but let's set this up step by step.