# Stewart's theorem

In geometry, Stewart's theorem yields a relation between a lengths of the sides of the triangle and the length of a cevian of the triangle. Its name is in honor of the Scottish mathematician Matthew Stewart who published the theorem in 1746.[1]

## Theorem

Let $a$, $b$, and $c$ be the lengths of the sides of a triangle. Let $d$ be the length of a cevian to the side of length $a$. If the cevian divides $a$ into two segments of length $m$ and $n$, with $m$ adjacent to $c$ and $n$ adjacent to $b$, then Stewart's theorem states that

$b^2m + c^2n = a(d^2 + mn).\,$
(This can also be written $dad + man = bmb + cnc.\,$, a form which invites mnemonic memorization, e.g. "A man and his dad put a bomb in the sink.")

Apollonius' theorem is the special case where $d$ is the length of the median.

The theorem may be written somewhat more symmetrically using signed lengths of segments, in other words the length AB is taken to be positive or negative according to whether A is to the left or right of B in some fixed orientation of the line. In this formulation, the theorem states that if A, B, and C are collinear points, and P is any point, then[2]

$PA^2\cdot BC+PB^2\cdot CA-PC^2\cdot AB - BC\cdot CA\cdot AB =0.\,$

## Proof

The theorem can be proved as an application of the law of cosines:[3]

Let θ be the angle between m and d and θ′ the angle between n and d. Then θ′ is the supplement of θ and cos θ′ = −cos θ. The law of cosines for θ and θ′ states

\begin{align} c^2 &= m^2 + d^2 - 2dm\cos\theta \\ b^2 &= n^2 + d^2 - 2dn\cos\theta' \\ &= n^2 + d^2 + 2dn\cos\theta.\, \end{align}

Multiply the first equation by n, the second equation by m, and add to eliminate cos θ, obtaining

\begin{align} &b^2m + c^2n \\ &= nm^2 + n^2m + (m+n)d^2 \\ &= (m+n)(mn + d^2) \\ &= a(mn + d^2), \\ \end{align}

which is the required equation.

Alternatively, the theorem can be proved by drawing a perpendicular from the vertex of the triangle to the base and using the Pythagorean theorem to write the distances b, c, and d in terms of the altitude. The left and right hand sides of the equation then reduce algebraically to the same expression.[2]

## History

According to Hutton & Gregory (1843, p. 220) Dr. Matthew Stewart published the result in 1746 when he was a candidate to replace Colin Maclaurin as Professor of Mathematics at the University of Edinburgh. Coxeter & Greitzer (1967, p. 6) state that the result was probably known to Archimedes around 300 B.C.E. They go on to say (mistakenly) that the first known proof was provided by R. Simson in 1751. Hutton & Gregory (1843) state that the result is used by Dr. Simson in 1748 and by Professor Simpson in 1752, and its first appearance in Europe given by Lazare Carnot in 1803.