Differential Equation of the Circles tangent to x-axis.
Circles with the required property have the form $\displaystyle (x - a)^2 + (y - r)^2 = r^2$. So get dy/dx from this equation using implicit differentiation and impose the boundary condition y(0) = r.