Katana VentraIP

British flag theorem

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.

Pizza theorem

Nguyen Minh Ha, Dao Thanh Oai: . Global Journal of Advanced Research on Classical and Modern Geometries, Volume 4 (2015), issue 1, pp. 31–34.

An interesting application of the British flag theorem

Dana S. Richards (ed.): The Colossal Book of Short Puzzles and Problems. W. W. Norton, 2006, ISBN 978-0-393-06114-7, pp. 147, 159 (problem 6.16)

Martin Gardner

at artofproblemsolving.com

British Flag Theorem

(video, 5:41 mins)

Can You Solve Microsoft's Rectangle Corners Interview Question?

interacive illustration of the British flag theorem for und for isosceles trapezoids

rectangles