In Euclidean geometry, the British flag theorem says that if a point P is chosen inside a rectangle ABCD then the sum of the squares of the Euclidean distances from P to two opposite corners of the rectangle equals the sum to the other two opposite corners.[1] [2] [3] As an equation:
The theorem also applies to points outside the rectangle, and more generally to the distances from a point in Euclidean space to the corners of a rectangle embedded into the space.[4] Even more generally, if the sums of squares of distances from a point P to the two pairs of opposite corners of a parallelogram are compared, the two sums will not in general be equal, but the difference between the two sums will depend only on the shape of the parallelogram and not on the choice of P.[5]
The theorem can also be thought of as a generalisation of the Pythagorean theorem. Placing the point P on any of the four vertices of the rectangle yields the square of the diagonal of the rectangle being equal to the sum of the squares of the width and length of the rectangle, which is the Pythagorean theorem.
Drop perpendicular lines from the point P to the sides of the rectangle, meeting sides AB, BC, CD, and AD at points W, X, Y and Z respectively, as shown in the figure. These four points WXYZ form the vertices of an orthodiagonal quadrilateral.By applying the Pythagorean theorem to the right triangle AWP, and observing that WP = AZ, it follows that
AP2=AW2+WP2=AW2+AZ2
PC2=WB2+ZD2,
BP2=WB2+AZ2,
PD2=ZD2+AW2.
Therefore:
\begin{align} AP2+PC2&=\left(AW2+AZ2\right)+\left(WB2+ZD2\right)\\[4pt] &=\left(WB2+AZ2\right)+\left(ZD2+AW2\right)\\[4pt] &=BP2+PD2 \end{align}
The British flag theorem can be generalized into a statement about (convex) isosceles trapezoids. More precisely for a trapezoid
ABCD
AB
CD
P
| ||||
|AP| |
⋅ |PC|2=|BP|
| ||||
⋅ |PD|2
\tfrac{|AB|}{|CD|}
This theorem takes its name from the fact that, when the line segments from P to the corners of the rectangle are drawn, together with the perpendicular lines used in the proof, the completed figure resembles a Union Flag.