In mathematics, Casey's theorem, also known as the generalized Ptolemy's theorem, is a theorem in Euclidean geometry named after the Irish mathematician John Casey.
Let                             O                 be a circle of radius                             R                . Let                                       O                      1                          ,                  O                      2                          ,                  O                      3                          ,                  O                      4                                   be (in that order) four non-intersecting circles that lie inside                             O                 and tangent to it. Denote by                                       t                      i            j                                   the length of the exterior common bitangent of the circles                                       O                      i                          ,                  O                      j                                  . Then:
                                      t                      12                          ⋅                  t                      34                          +                  t                      41                          ⋅                  t                      23                          =                  t                      13                          ⋅                  t                      24                          .                Note that in the degenerate case, where all four circles reduce to points, this is exactly Ptolemy's theorem.
The following proof is due to Zacharias. Denote the radius of circle                                       O                      i                                   by                                       R                      i                                   and its tangency point with the circle                             O                 by                                       K                      i                                  . We will use the notation                             O        ,                  O                      i                                   for the centers of the circles. Note that from Pythagorean theorem,
                                      t                      i            j                                2                          =                                                                              O                                      i                                                                    O                                      j                                                              ¯                                            2                          −        (                  R                      i                          −                  R                      j                                    )                      2                          .                We will try to express this length in terms of the points                                       K                      i                          ,                  K                      j                                  . By the law of cosines in triangle                                       O                      i                          O                  O                      j                                  ,
                                                                                          O                                      i                                                                    O                                      j                                                              ¯                                            2                          =                                                            O                                  O                                      i                                                              ¯                                            2                          +                                                            O                                  O                                      j                                                              ¯                                            2                          −        2                                            O                              O                                  i                                                      ¯                          ⋅                                            O                              O                                  j                                                      ¯                          ⋅        cos                ∠                  O                      i                          O                  O                      j                                  Since the circles                             O        ,                  O                      i                                   tangent to each other:
                                                        O                              O                                  i                                                      ¯                          =        R        −                  R                      i                          ,                ∠                  O                      i                          O                  O                      j                          =        ∠                  K                      i                          O                  K                      j                                  Let                             C                 be a point on the circle                             O                . According to the law of sines in triangle                                       K                      i                          C                  K                      j                                  :
                                                                        K                                  i                                                            K                                  j                                                      ¯                          =        2        R        ⋅        sin                ∠                  K                      i                          C                  K                      j                          =        2        R        ⋅        sin                                                    ∠                              K                                  i                                            O                              K                                  j                                                      2                                  Therefore,
                    cos                ∠                  K                      i                          O                  K                      j                          =        1        −        2                  sin                      2                                                                      ∠                              K                                  i                                            O                              K                                  j                                                      2                          =        1        −        2        ⋅                              (                                                                                                      K                                              i                                                                                    K                                              j                                                                              ¯                                                  2                  R                                                      )                                2                          =        1        −                                                                                                                        K                                              i                                                                                    K                                              j                                                                              ¯                                                            2                                                    2                              R                                  2                                                                            and substituting these in the formula above:
                                                                                          O                                      i                                                                    O                                      j                                                              ¯                                            2                          =        (        R        −                  R                      i                                    )                      2                          +        (        R        −                  R                      j                                    )                      2                          −        2        (        R        −                  R                      i                          )        (        R        −                  R                      j                          )                  (          1          −                                                                                                                                        K                                                  i                                                                                            K                                                  j                                                                                      ¯                                                                    2                                                            2                                  R                                      2                                                                                )                                                                                                                  O                                      i                                                                    O                                      j                                                              ¯                                            2                          =        (        R        −                  R                      i                                    )                      2                          +        (        R        −                  R                      j                                    )                      2                          −        2        (        R        −                  R                      i                          )        (        R        −                  R                      j                          )        +        (        R        −                  R                      i                          )        (        R        −                  R                      j                          )        ⋅                                                                                                                        K                                              i                                                                                    K                                              j                                                                              ¯                                                            2                                                    R                              2                                                                                                                                                      O                                      i                                                                    O                                      j                                                              ¯                                            2                          =        (        (        R        −                  R                      i                          )        −        (        R        −                  R                      j                          )                  )                      2                          +        (        R        −                  R                      i                          )        (        R        −                  R                      j                          )        ⋅                                                                                                                        K                                              i                                                                                    K                                              j                                                                              ¯                                                            2                                                    R                              2                                                            And finally, the length we seek is
                              t                      i            j                          =                                                                                                                        O                                              i                                                                                    O                                              j                                                                              ¯                                                            2                                      −            (                          R                              i                                      −                          R                              j                                                    )                              2                                                    =                                                                              R                  −                                      R                                          i                                                                                  ⋅                                                R                  −                                      R                                          j                                                                                  ⋅                                                                                          K                                              i                                                                                    K                                              j                                                                              ¯                                                      R                                  We can now evaluate the left hand side, with the help of the original Ptolemy's theorem applied to the inscribed quadrilateral                                       K                      1                                    K                      2                                    K                      3                                    K                      4                                  :
                                                                                                        t                                      12                                                                    t                                      34                                                  +                                  t                                      14                                                                    t                                      23                                                                                                      =                                                                                                                  1                                          R                                              2                                                                                            ⋅                                                      R                    −                                          R                                              1                                                                                                                                  R                    −                                          R                                              2                                                                                                                                  R                    −                                          R                                              3                                                                                                                                  R                    −                                          R                                              4                                                                                                              (                                                                                                              K                                                      1                                                                                                    K                                                      2                                                                                              ¯                                                        ⋅                                                                                                              K                                                      3                                                                                                    K                                                      4                                                                                              ¯                                                        +                                                                                                              K                                                      1                                                                                                    K                                                      4                                                                                              ¯                                                        ⋅                                                                                                              K                                                      2                                                                                                    K                                                      3                                                                                              ¯                                                        )                                                                                    =                                                                                                                  1                                          R                                              2                                                                                            ⋅                                                      R                    −                                          R                                              1                                                                                                                                  R                    −                                          R                                              2                                                                                                                                  R                    −                                          R                                              3                                                                                                                                  R                    −                                          R                                              4                                                                                                              (                                                                                                              K                                                      1                                                                                                    K                                                      3                                                                                              ¯                                                        ⋅                                                                                                              K                                                      2                                                                                                    K                                                      4                                                                                              ¯                                                        )                                                                                    =                                                                                              t                                      13                                                                    t                                      24                                                                                              Q.E.D.
It can be seen that the four circles need not lie inside the big circle. In fact, they may be tangent to it from the outside as well. In that case, the following change should be made:
If                                       O                      i                          ,                  O                      j                                   are both tangent from the same side of                             O                 (both in or both out),                                       t                      i            j                                   is the length of the exterior common tangent.
If                                       O                      i                          ,                  O                      j                                   are tangent from different sides of                             O                 (one in and one out),                                       t                      i            j                                   is the length of the interior common tangent.
The converse of Casey's theorem is also true. That is, if equality holds, the circles are tangent to a common circle.
Casey's theorem and its converse can be used to prove a variety of statements in Euclidean geometry. For example, the shortest known proof of Feuerbach's theorem uses the converse theorem.