Maths WorkshopMaths problems with full solutions
Exercise 1311Combinatorics › Pigeonhole principleOlympiadAdded 5 Nov 2026

Five points contain a convex quadrilateral

#combinatorial geometry#convex position#pigeonhole#Happy Ending

Statement

Five points are given in the plane, no three on a line. Prove that four of them are the vertices of a convex quadrilateral.

Hint

Consider the convex hull of the five points. How many vertices can it have? If it is a triangle, look at the line through the two interior points.

Show solutionHide solution

Solution

Idea. Split according to the number of vertices of the convex hull.

Hull with 44 or 55 vertices. Then any 44 hull vertices are in convex position, and we are done.

Hull a triangle ABCABC. The other two points D,ED,E are inside the triangle. The line DEDE does not pass through A,B,CA,B,C, so each of A,B,CA,B,C is on one side of it. By pigeonhole, two of them, say BB and CC, lie on the same side of DEDE.

We claim B,C,E,DB,C,E,D are in convex position.
- BB and CC are vertices of the hull, so they cannot lie in the convex hull of other points.
- DD is not in triangle BCEBCE: this triangle touches the line DEDE only at EE, while D≠ED\ne E is on that line. Symmetrically EE is not in triangle BCDBCD.

So the quadrilateral with vertices B,C,E,DB,C,E,D is convex. ∎

Remark. This is the first case of the Erdős–Szekeres "Happy Ending" problem.

Lesson. Case on the convex hull, then use pigeonhole on which side of a well-chosen line the vertices lie.