Let the line cut the axes at A (a, 0) and B (0, b). The equation of the tangent to the circumscribed circle at the origin (0,0) is bx plus ay equals 0. The distance m from A (a, 0) to this tangent is absolute value of ba divided by root of b squared plus a squared, and the distance n from B (0, b) is absolute value of ab divided by root of b squared plus a squared, giving m equals n. The diameter of this right-angled triangle's circumscribed circle is the hypotenuse AB, which is root of b squared plus a squared. From the distance formula, substituting m and n yields the diameter as m plus n.