# British Flag Theorem

If \(ABCD\) is a rectangle, and \(P\) is any point, then we have

\[ PA^2 + PC^2 = PB^2 + PD ^2 . \]

This can be proved by using the Pythagorean Theorem, and projecting the point \(P\) to the 4 sides of the rectangle.

**Proof**

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

\(AP^{2} = AW^{2} + WP^{2} = AW^{2} + AZ^{2}\) and by a similar argument the squared lengths of the distances from \(P\) to the other three corners can be calculated as

\(PC^{2} = WB^{2} + ZD^{2}\),

\(BP^{2} = WB^{2} + AZ^{2}\),

and

\(PD^{2} = ZD^{2} + AW^{2}\).

Therefore:

\(AP^{2} + PC^{2} = (AW^{2} + AZ^{2}) + (WB^{2} + ZD^{2}) = (WB^{2} + AZ^{2}) + (ZD^{2} + AW^{2}) = BP^{2} + PD^{2}.\)

Point \(E\) lies within rectangle \(ABCD\). If \(AE = 7\), \(BE = 5\), and \(CE = 8\), what is \(DE\)?

(Source: MATHCOUNT 2014)

Let \(DE=x\). By British Flag Theorem, we have \[7^2+8^2 = 5^2+x^2\Leftrightarrow x^2=88 \Leftrightarrow x=\boxed{2\sqrt{22}}\].

**Cite as:**British Flag Theorem.

*Brilliant.org*. Retrieved from https://brilliant.org/wiki/british-flag-theorem/