DGS Studio

Geometry

Different Circle Sizes

External tangent of two circles with different radii.

The circles have radii 7 and 2, and their centers are 12 apart. The external common-tangent length is √[d² − (r1 − r2)²] = 10.9087.

An external tangent keeps both centers on the same side of the line. An internal tangent puts the centers on opposite sides, which is why the radii are added inside the square root. A zero result is a real touch, not an error. A negative value under the square root means that tangent does not exist, and the circles are drawn without it.

Equation

common_tangent_external(r1=7, r2=2, d=12)

Lengths and tangents

Geometry examples state objects and a relationship, then DGS draws the figure and reports the measurement. A distance is the length of the segment between two points. A common tangent is a line that touches two circles, either externally or internally.

The drawing is there so the algebra has a picture. Lengths that come out as perfect squares stay exact. Other lengths keep a radical when the engine can simplify one, plus a decimal. Editing a coordinate or a radius is the fastest way to see which part of the formula changed.

Reading the input

Try a change

Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples