If an external point PPP is at distance ddd from the centre of a circle of radius rrr, the length of each tangent from PPP is d2−r2\sqrt{d^2 - r^2}d2−r2 (by Pythagoras on the right triangle with the radius perpendicular to the tangent).