Convex Hull — Definition, Formula & Examples
The convex hull of a set of points is the smallest convex shape that contains all the points. You can picture it as the shape formed by stretching a rubber band around the outermost points and letting it snap tight.
Given a set , the convex hull is the intersection of all convex sets containing . Equivalently, it is the set of all convex combinations of points in : .
Key Formula
Where:
- = The original set of points
- = Points chosen from S
- = Non-negative weights that sum to 1
- = Number of points in the convex combination
How It Works
To find the convex hull of a finite set of points in 2D, identify which points lie on the outer boundary — these are the vertices of the hull. Interior points are enclosed but do not contribute to the hull's shape. Algorithmically, methods like the gift-wrapping algorithm or Graham scan systematically determine these boundary points. In higher dimensions, the same idea applies: the hull is a convex polytope whose vertices are a subset of the original points.
Worked Example
Problem: Find the convex hull of the points , , , in .
Step 1: Plot or inspect the points. Identify candidates for the outer boundary by checking which points are not interior to any triangle formed by the others.
Step 2: Check whether lies inside the triangle . Express as a convex combination of , , : solve and with . This gives , , . All weights are positive, so is inside triangle .
Step 3: Since is interior, the convex hull is the triangle with vertices , , and .
Answer: The convex hull is triangle with vertices , , and .
Why It Matters
Convex hulls appear in computational geometry algorithms, collision detection in computer graphics, and linear programming where feasible regions are convex polytopes. In machine learning, support vector machines rely on the geometry of convex hulls to separate classes of data points.
Common Mistakes
Mistake: Including interior points as vertices of the convex hull.
Correction: Only points on the boundary of the hull are its vertices. Test whether a candidate point can be written as a convex combination of other points; if so, it is interior and not a vertex.
