I'm asking about a question about two lines which are tangents to a circle. Most of the question is quite elementary algebra, it's just one stage I can't get my head round. Picture here:
The circle $C$ has equation $(x-6)^2+(y-5)^2=17$. The lines $l_1$ and $l_2$ are each a tangent to the circle and intersect at the point $(0,12)$. Find the equations of $l_1$ and $l_2$ giving your answers in the form $y=mx+c$.
Both lines have equation $y = mx + 12$ where $m$ represents two gradients to be found (both negative).
The circle has equation $(x-6)^2 + (y-5)^2 = 17$.
Combining the knowledge $y = mx + 12$ for both lines and $(x-6)^2 + (y-5)^2 = 17$ produces the quadratic:
$$(1+m^2)x^2 + (14m−12)x + 68 = 0$$
At this point I was confused about what step to take to get $m$ or $x$. Looking at the worked solution, it says "There is one solution so using the discriminant $b^2 − 4ac = 0$..."
From here it's straightforward algebra again, producing another quadratic based on the $b^2 - 4ac$ of the previous quadratic:
$$(14m−12)^2 - 4 x (1+m^2) + 68 = 0$$
etc. until we have $m = -4$ or $-8/19$.
My question is I don't understand how we can tell it's right to assume $b^2 - 4ac = 0$ and how we can see that's the right step to take in this question.
Obviously this feels intuitively wrong since we know there are two solutions for m. Is the logic that m is a gradient which intersects with the circle once? But if so, how do you see that this is the right equation to decide it only has one solution? (I had assumed before looking at the worked example if I needed to do something more complicated based on the equations of the radii or the knowledge that the two tangents would be equal length from the circle to where they meet or something.)
As you can tell, this question is based on fairly elementary algebra; I'm more concerned about knowing why this is the right step to take here.
Many thanks for any answers.


When you insert $y=mx+12$ into the circle equation and obtain $$(1+m^2)\cdot x^2 + (14m−12)\cdot x + 68 = 0\label{1}\tag{1}$$ There are two things you can do: solve for $x$ or for $m$. Which of those makes sense?
Notice that in $(\ref{1})$, if you take $x$ as a given constant and solve for $m$, you are answering the question: Given an $x$ intercept of the line through $(0,12)$ with the circle, determine the slope of this line. It might happen that there are two points, one or none on the circle with that given $x$ coordinate, hence the number of solutions for $m$. This isn't, however, what we are looking for.
Instead, the tangent-condition offers us valuable information: there is only one $x$ solution for some $m$ we are looking for. Thus, it makes more sense to solve for $x$ in $(\ref{1})$ with the quadratic equation formula: $$x = \frac{- 7 m + 6\pm\sqrt{-19 m^2 - 84 m - 32} }{m^2 + 1}$$ This might look frightening at a first glance, but remember that we already know that there is exactly one solution for $x$, and this happens precisely when the discriminant is zero: $$\Delta=-19m^2-84m-32=0$$ Which can be solved via the quadratic equation formula. This yields $$\fbox{$\displaystyle m\in\left\{-4, -\frac{8}{19}\right\}$}$$