get tangent equation, giving curve and a point



is there a fast way to get for example y=2*x-7 giving y=x^2-2*x-3 and a point (2,-3)

I know how to calculate but I wanted to know if there was a short way

many thanks