Calculate the closest point to the center of a circle from another circle on its radius. There are 2 circles, the smaller one has its center on the bigger circles border, from that how can you calculate the coordinates the closest point on the smaller circle to the center of the bigger one.

I want to find the coordinates of the closest point of the circle given that I have the height and width and radius of both circles and the position of both circles.
 A: If you know the radius of both circles, then the distance from the center of the larger circle to the closest point on the smaller circle is $r_1-r_2$, where $r_1$ is the radius of the larger circle and $r_2$ is the radius of the smaller. If, as it appears, the center of the smaller circle is also on the $x$-axis, then you have your answer, once you make it negative and plug it into an ordered pair. If not, then you need to use the trigonometric functions to find the coordinates of the center, and then solve for the coordinates of a point $r_1-r_2$ in the direction of the angle.
A: If you are certain that the small circle has the centre on the larger circles border then find the tangent to the point on the small circle that connects the centre on the small circle to that of the centre of the larger circle.
After that we have the equation:
X = (x-x1) & Y = (y-y1)
From distance formula:
(X^2 + Y^2)^1/2 = C where C is the radius of the larger circle.
Equate this equation with the tangent of the point on the small circle as mentioned earlier as a simultaneous equation and you will get both x and y coordinates of the closest point.
