I have been faced with the following question:
Find the values of $k$ for which $y = kx - 2$ is a tangent to the curve $y = x^2 - 8x + 7$
I managed to figure this out by treating them as simultaneous equations and then calculating the discriminant so that k either has the value $-14$ or $-2$ however I was wondering if there was another possible method to answer this perhaps by way of differentiation.
EDIT
And using differentiation how is it possible to get the answer that k is either $-14$ or $-2$?
Hint: The tangent at $(a,b)$ is $y=(2a-8)(x-a)+b$.