The problem is this:
to show that a circle of radius $r$ and center $(h, k)$ intersects the $x$-axis at exactly one point if and only if $\left|k\right| = r$.
Using geometrical intuition, this is easy to see. When a circle's bottom or top is just touching the $x$-axis, its center is one radius away. (Note that I put "tangent" in quotes because I'm using a definition which captures one aspect of tangency, but doesn't hold in the case of, say, intersecting lines.)
I'm having some trouble with the forward direction of this statement.
My attempt so far
Suppose that the circle $C$ touches the $x$-axis at exactly one point. That is, suppose that $(\alpha, 0) \in C$ for some $\alpha \in \mathbb{R}$ and $(x, 0) \notin C$ for all $x \neq \alpha$ ($x \in \mathbb{R}$). Then
$$ \begin{align*} (\alpha - h)^2 + (0 - k)^2 &= r^2 \\ \Rightarrow (\alpha - h)^2 + k^2 &= r^2. \end{align*} $$
Somehow I need to use the fact that the only $\alpha$ which works is $h$... but how can I show that $\alpha = h$?
The backward direction
Suppose $\left|k\right| = r$. Then
$$ \begin{align*} (h - h)^2 + (0 - k)^2 &= k^2 \\ &= \left|k\right|^2 \\ &= r^2 \\ \Rightarrow (h, 0) &\in C \end{align*} $$
And for other $x \neq h$, we have $(x - h)^2 + (0 - k)^2 = (x - h)^2 + r^2 > r^2$.
Let us find the intersection of the circle with the $x$-axis ($y=0$).
Setting $y=0$ in the equation $$(x-h)^2+(y-k)^2=r^2,$$ we get $$x^2-2hx+h^2+k^2-r^2=0.$$
Each root represents the abscissa of one intersection.
For tangency, the coordinate of two intersections must coincide $\implies $ the roots of must be the same.
For the problem in the question, we have $(\alpha - h)^2 + (0 - k)^2 = r \Rightarrow \alpha = h \pm \sqrt{r^2 - k^2}$. Then, since it intersects the $x$-axis at only one point, we must have $\sqrt{r^2 - k^2} = 0$, i.e. $r^2 = k^2$ or $r = \left|k\right|$.