Find $k$ such that the line $y=x-2-k$ is tangent to the circle given by $x^2+(y+2)^2=4$

circlesdiscriminantgraphing-functionstangent line

I have the circle $x^2+(y+2)^2=4$ and the line $y=x-2-k$. How would you find a $k$ value that would allow the second equation to sit tangent to the circle? There should, in theory, be only two solutions.

I can't make sense of this problem as you can't equate these problems to find a point. Thinking of this problem, I would think of using the discriminate, but I cannot find the proper equation format by manipulating the equation in order to make it fit in the form $ax^2+bx+c$.

Would anyone have any clue on how you may find this value? I've noticed by typing it into a CAS, it partially solves it by stating the domain of k can only be within $2\sqrt2$ or $-2\sqrt2$ which are the solutions to this problem but I would like to understand how it may have equated this domain.

Thank you for your help.

Best Answer

The line is tangent to the circle iff they intersect at exactly one point. The intersection is given by a quadratic equation, the number of solutions is given by the sign of the discriminant (you want the discriminant to be $0$).

The circle and the line intersect at $x$ given by $x^2+(x-k)^2=4$, i.e. $2x^2-2kx+k^2-4=0$.

There is only one possible $x$ if $\Delta=32-4k^2=0$, that is when $k=\pm2\sqrt{2}$.

Then the coordinates of the tangent points are given by $x=\frac k2, y=-\frac k2-2$.