Tangent lines to circles
In Euclidean plane geometry, a tangent line to a circle is a line that touches the circle at exactly one point, never entering the circle's interior. Tangent lines to circles form the subject of several theorems, and play an important role in many geometrical constructions and proofs. Since the tangent line to a circle at a point P is perpendicular to the radius to that point, theorems involving tangent lines often involve radial lines and orthogonal circles. Tangent lines to one circle. A tangent line "t" to a circle "C" intersects the circle at a  single point T. For comparison, secant lines intersect a circle at two points, whereas another line may not intersect a circle at all. This property of tangent lines is preserved under many geometrical transformations, such as scalings, rotation, translations, inversions, and map projections. In technical language, these transformations do not change the incidence structure of the tangent line and circle, even though the line and circle may be deformed. The radius of a circle is perpendicular to the tangent line through its endpoint on the circle's circumference. Conversely, the perpendicular to a radius through the same endpoint is a  tangent line. The resulting geometrical figure of circle and tangent line has a reflection symmetry about the axis of the radius. No tangent line can be drawn through a point within a circle, since any such line must be a secant line. However, "two" tangent lines can be drawn to a circle from a point P outside of the circle. The geometrical figure of a circle and both tangent lines likewise has a reflection symmetry about the radial axis joining P to the center point O of the circle. Thus the lengths of the segments from P to the two  tangent points are equal. By the secant-tangent theorem, the square of this tangent length equals the power of the point P in the circle "C". This power equals the product of distances from P to any two intersection points of the circle with a secant line passing through P. The tangent line "t" and the tangent point T have a conjugate relationship to one another, which has been generalized into the idea of pole points and polar lines. The same reciprocal relation exists between a point P outside the circle and the secant line joining its two points of  tangency. If a point P is exterior to a circle with center O, and if the tangent lines from P touch the circle at points T and S, then ∠TPS and ∠TOS are supplementary (sum to 180°). If a chord TM is drawn from the tangency point T of exterior point P and ∠PTM ≤ 90° then ∠PTM = (1/2)∠TOM. Equation of the tangent line with coordinate. Suppose that the equation of the circle is formula_1 with center at formula_2. Then the tangent line of the circle at formula_3 is This can be proved by taking the implicit  derivative of the circle. Compass and straightedge constructions. It is relatively straightforward to construct a line "t" tangent to a circle at a point T on the circumference of the circle: Thales' theorem may be used to construct the tangent lines to a point P external to the circle "C": The line segments OT and OT are radii of the circle "C"; since both are inscribed in a semicircle, they are perpendicular to the line segments PT and PT, respectively. But only a tangent line is perpendicular to the radial line. Hence, the two lines from P and passing through  T and T are tangent to the circle "C". Another method to construct the tangent lines to a point P external to the circle using only a straightedge: With analytic geometry. Let formula_10 be a point of the circle with equation formula_11. The tangent at formula_12 has equation formula_13, because formula_12 lies on both the curves and formula_15 is a normal vector of the line. The tangent intersects the x-axis at point formula_16 with formula_17. Conversely, if one starts with point formula_16, than the two tangents through formula_19 meet the circle at the two points formula_20 with If point  formula_23 lies not on the x-axis: In the vector form one replaces formula_24 by the distance formula_25 and the unit base vectors by the orthogonal unit vectors formula_26. Then the tangents through point formula_19 touch the circle at the points For formula_29 no tangents exist. For formula_30 point formula_19 lies on the circle and there is just one tangent with equation formula_32. In case of formula_33 there are 2 tangents with equations formula_34. "Relation to circle inversion": Equation formula_17 describes the circle inversion of point formula_36. "Relation to pole and polar:" The polar of point formula_36 has equation formula_38 . Tangential polygons. A tangential polygon is a polygon each of whose sides is tangent to a particular circle, called its incircle. Every triangle is a tangential polygon, as is every regular polygon of any number of sides; in addition, for every number of polygon sides there are an infinite number of non-congruent tangential polygons. Tangent quadrilateral theorem and inscribed circles. A tangential quadrilateral ABCD is a closed figure of four straight sides that are tangent to a given circle "C". Equivalently, the circle "C" is inscribed in the quadrilateral ABCD. By the Pitot theorem, the sums of opposite sides  of any such quadrilateral are equal, i.e., This conclusion follows from the equality of the tangent segments from the four vertices of the quadrilateral. Let the tangent points be denoted as P (on segment AB), Q (on segment BC), R (on segment CD) and S (on segment DA). The symmetric tangent segments about each point of ABCD are equal, e.g., BP=BQ="b", CQ=CR="c", DR=DS="d", and AS=AP="a". But each side of the quadrilateral is composed of two such tangent segments proving the theorem. The converse is also true: a circle can be inscribed into  every quadrilateral in which the lengths of opposite sides sum to the same value. This theorem and its converse have various uses. For example, they show immediately that no rectangle can have an inscribed circle unless it is a square, and that every rhombus has an inscribed circle, whereas a general parallelogram does not. Tangent lines to two circles. For two circles, there are generally four distinct lines that are tangent to both (bitangent) – if the two circles are outside each other – but in degenerate cases there may be any number between zero and four bitangent lines; these are addressed  below. For two of these, the external tangent lines, the circles fall on the same side of the line; for the two others, the internal tangent lines, the circles fall on opposite sides of the line. The external tangent lines intersect in the external homothetic center, whereas the internal tangent lines intersect at the internal homothetic center. Both the external and internal homothetic centers lie on the line of centers (the line connecting the centers of the two circles), closer to the center of the smaller circle: the internal center is in the segment between the two circles, while the  external center is not between the points, but rather outside, on the side of the center of the smaller circle. If the two circles have equal radius, there are still four bitangents, but the external tangent lines are parallel and there is no external center in the affine plane; in the projective plane, the external homothetic center lies at the point at infinity corresponding to the slope of these lines. Outer tangent. The red line joining the points formula_41 and formula_42 is the outer tangent between the two circles. Given points formula_43, formula_44 the points formula_45, formula_46 can easily be  calculated with help of the angle formula_47: Here "R" and "r" notate the radii of the two circles and the angle formula_47 can be computed using basic trigonometry. You have formula_50 with formula_51 and formula_52. Inner tangent. An inner tangent is a tangent that intersects the segment joining two circles' centers. Note that the inner tangent will not be defined for cases when the two circles overlap. Construction. The bitangent lines can be constructed either by constructing the homothetic centers, as described at that article, and then constructing the tangent lines through the homothetic center that is tangent to one  circle, by one of the methods described above. The resulting line will then be tangent to the other circle as well. Alternatively, the tangent lines and tangent points can be constructed more directly, as detailed below. Note that in degenerate cases these constructions break down; to simplify exposition this is not discussed in this section, but a form of the construction can work in limit cases (e.g., two circles tangent at one point). Synthetic geometry. Let O and O be the centers of the two circles, "C" and "C" and let "r" and "r" be their radii, with "r" >  "r"; in other words, circle "C" is defined as the larger of the two circles. Two different methods may be used to construct the external and internal tangent lines. A new circle "C" of radius "r" − "r" is drawn centered on O. Using the method above, two lines are drawn from O that are tangent to this new circle. These lines are parallel to the desired tangent lines, because the situation corresponds to shrinking both circles "C" and "C" by a constant amount, "r", which shrinks "C" to a point. Two radial lines may be drawn from the center  O through the tangent points on "C"; these intersect "C" at the desired tangent points. The desired external tangent lines are the lines perpendicular to these radial lines at those tangent points, which may be constructed as described above. A new circle "C" of radius "r" + "r" is drawn centered on O. Using the method above, two lines are drawn from O that are tangent to this new circle. These lines are parallel to the desired tangent lines, because the situation corresponds to shrinking "C" to a point while expanding "C" by a constant amount, "r". Two radial lines  may be drawn from the center O through the tangent points on "C"; these intersect "C" at the desired tangent points. The desired internal tangent lines are the lines perpendicular to these radial lines at those tangent points, which may be constructed as described above. Analytic geometry. Let the circles have centres "c" = ("x","y") and "c" = ("x","y") with radius "r" and "r" respectively. Expressing a line by the equation formula_53 with the normalization "a" + "b" = 1, then a bitangent line satisfies: Solving for formula_54 by subtracting the first from the second yields where Δ"x" = "x  − x", Δ"y" = "y" − "y" and Δ"r" = "r" − "r". If formula_55 is the distance from "c" to "c" we can normalize by "X" = Δ"x"/"d", "Y" = Δ"y"/"d" and "R" = Δ"r"/"d" to simplify equations, yielding the equations "aX" + "bY" = "R" and "a" + "b" = 1, solve these to get two solutions ("k" = ±1) for the two external tangent lines: Geometrically this corresponds to computing the angle formed by the tangent lines and the line of centers, and then using that to rotate the equation for the line of centers to yield  an equation for the tangent line. The angle is computed by computing the trigonometric functions of a right triangle whose vertices are the (external) homothetic center, a center of a circle, and a tangent point; the hypotenuse lies on the tangent line, the radius is opposite the angle, and the adjacent side lies on the line of centers. ("X", "Y") is the unit vector pointing from "c" to "c", while "R" is formula_56 where formula_57 is the angle between the line of centers and a tangent line. formula_58 is then formula_59 (depending on the sign of formula_57, equivalently the direction  of rotation), and the above equations are rotation of ("X", "Y") by formula_61 using the rotation matrix: The above assumes each circle has positive radius. If "r" is positive and "r" negative then "c" will lie to the left of each line and "c" to the right, and the two tangent lines will cross. In this way all four solutions are obtained. Switching signs of both radii switches "k" = 1 and "k" = −1. Vectors. In general the points of tangency "t" and "t" for the four lines tangent to two circles with centers "v" and "v" and radii  r and "r" are given by solving the simultaneous equations: These equations express that the tangent line, which is parallel to formula_64 is perpendicular to the radii, and that the tangent points lie on their respective circles. These are four quadratic equations in two two-dimensional vector variables, and in general position will have four pairs of solutions. Degenerate cases. Two distinct circles may have between zero and four bitangent lines, depending on configuration; these can be classified in terms of the distance between the centers and the radii. If counted with multiplicity (counting a common tangent twice) there are  zero, two, or four bitangent lines. Bitangent lines can also be generalized to circles with negative or zero radius. The degenerate cases and the multiplicities can also be understood in terms of limits of other configurations – e.g., a limit of two circles that almost touch, and moving one so that they touch, or a circle with small radius shrinking to a circle of zero radius. Finally, if the two circles are identical, any tangent to the circle is a common tangent and hence (external) bitangent, so there is a circle's worth of bitangents. Further, the notion of bitangent lines  can be extended to circles with negative radius (the same locus of points, formula_70 but considered "inside out"), in which case if the radii have opposite sign (one circle has negative radius and the other has positive radius) the external and internal homothetic centers and external and internal bitangents are switched, while if the radii have the same sign (both positive radii or both negative radii) "external" and "internal" have the same usual sense (switching one sign switches them, so switching both switches them back). Bitangent lines can also be defined when one or both of the circles has radius  zero. In this case the circle with radius zero is a double point, and thus any line passing through it intersects the point with multiplicity two, hence is "tangent". If one circle has radius zero, a bitangent line is simply a line tangent to the circle and passing through the point, and is counted with multiplicity two. If both circles have radius zero, then the bitangent line is the line they define, and is counted with multiplicity four. Note that in these degenerate cases the external and internal homothetic center do generally still exist (the external center is at infinity  if the radii are equal), except if the circles coincide, in which case the external center is not defined, or if both circles have radius zero, in which case the internal center is not defined. Applications. Belt problem. The internal and external tangent lines are useful in solving the "belt problem", which is to calculate the length of a belt or rope needed to fit snugly over two pulleys. If the belt is considered to be a mathematical line of negligible thickness, and if both pulleys are assumed to lie in exactly the same plane, the problem devolves to summing  the lengths of the relevant tangent line segments with the lengths of circular arcs subtended by the belt. If the belt is wrapped about the wheels so as to cross, the interior tangent line segments are relevant. Conversely, if the belt is wrapped exteriorly around the pulleys, the exterior tangent line segments are relevant; this case is sometimes called the "pulley problem". Tangent lines to three circles: Monge's theorem. For three circles denoted by "C", "C", and "C", there are three pairs of circles ("C""C", "C""C", and "C""C"). Since each pair of circles has two homothetic centers, there are  six homothetic centers altogether. Gaspard Monge showed in the early 19th century that these six points lie on four lines, each line having three collinear points. Problem of Apollonius. Many special cases of Apollonius's problem involve finding a circle that is tangent to one or more lines. The simplest of these is to construct circles that are tangent to three given lines (the LLL problem). To solve this problem, the center of any such circle must lie on an angle bisector of any pair of the lines; there are two angle-bisecting lines for every intersection of two lines . The intersections of these angle bisectors give the centers of solution circles. There are four such circles in general, the inscribed circle of the triangle formed by the intersection of the three lines, and the three exscribed circles. A general Apollonius problem can be transformed into the simpler problem of circle tangent to one circle and two parallel lines (itself a special case of the LLC special case). To accomplish this, it suffices to scale two of the three given circles until they just touch, i.e., are tangent. An inversion in their tangent point with respect to a circle of  appropriate radius transforms the two touching given circles into two parallel lines, and the third given circle into another circle. Thus, the solutions may be found by sliding a circle of constant radius between two parallel lines until it contacts the transformed third circle. Re-inversion produces the corresponding solutions to the original problem. Generalizations. The concept of a tangent line to one or more circles can be generalized in several ways. First, the conjugate relationship between tangent points and tangent lines can be generalized to pole points and polar lines, in which the pole points may be anywhere, not  only on the circumference of the circle. Second, the union of two circles is a special (reducible) case of a quartic plane curve, and the external and internal tangent lines are the bitangents to this quartic curve. A generic quartic curve has 28 bitangents. A third generalization considers tangent circles, rather than tangent lines; a tangent line can be considered as a tangent circle of infinite radius. In particular, the external tangent lines to two circles are limiting cases of a family of circles which are internally or externally tangent to both circles, while the internal tangent lines are limiting  cases of a family of circles which are internally tangent to one and externally tangent to the other of the two circles. In Möbius or inversive geometry, lines are viewed as circles through a point "at infinity" and for any line and any circle, there is a Möbius transformation which maps one to the other. In Möbius geometry, tangency between a line and a circle becomes a special case of tangency between two circles. This equivalence is extended further in Lie sphere geometry. Radius and tangent line are perpendicular at a point of a circle, and hyperbolic-orthogonal at a  point of the unit hyperbola. The parametric representation of the unit hyperbola via radius vector is formula_71 The derivative of "p"("a") points in the direction of tangent line at "p"("a"), and is formula_72 The radius and tangent are hyperbolic orthogonal at "a" since formula_73 are reflections of each other in the asymptote "y=x" of the unit hyperbola. When interpreted as split-complex numbers (where j j = +1), the two numbers satisfy formula_74