I understand how when doing the equation of a tangent line, you are given the equation and point P, you choose point Q, and from there you set up the limit.

My question is: how, exactly, do you pick point Q and set it all up exactly? My book is incredibly vague on this section. Everything else it is pretty explicit about, but this one has an example that doesn't make much sense and no real explanation of it.