Mathwords logoMathwords

Convex — Definition, Meaning & Examples

Convex

A geometric figure with no indentations. Formally, a geometric figure is convex if every line segment connecting interior points is entirely contained within the figure's interior.

 

Three convex shapes: a curved triangle, a square, and an oval, labeled "Convex Shapes.

 

 

See also

Concave

Key Formula

For all points P,QS:tP+(1t)QSfor every t[0,1]\text{For all points } P, Q \in S: \quad tP + (1 - t)Q \in S \quad \text{for every } t \in [0, 1]
Where:
  • SS = The geometric figure (set of points) being tested for convexity
  • P,QP, Q = Any two points inside the figure
  • tt = A parameter ranging from 0 to 1 that traces every point along the line segment from Q to P
  • tP+(1t)QtP + (1 - t)Q = A convex combination — any point on the line segment connecting P and Q

Worked Example

Problem: Determine whether the quadrilateral with vertices A(0, 0), B(4, 0), C(4, 3), and D(0, 3) is convex.
Step 1: Identify the shape. The four vertices form a rectangle with width 4 and height 3.
Step 2: Pick two interior points and connect them with a line segment. Choose P(1, 1) and Q(3, 2).
Segment: tP+(1t)Q=t(1,1)+(1t)(3,2)\text{Segment: } tP + (1-t)Q = t(1,1) + (1-t)(3,2)
Step 3: Compute a sample point on the segment. At t = 0.5, the midpoint is:
0.5(1,1)+0.5(3,2)=(2,1.5)0.5(1,1) + 0.5(3,2) = (2, 1.5)
Step 4: Check whether (2, 1.5) is inside the rectangle. Since 0 < 2 < 4 and 0 < 1.5 < 3, it is inside.
Step 5: Verify the interior-angle test: compute each interior angle of the rectangle. All four angles equal 90°, and every interior angle is less than 180°. This confirms the polygon is convex.
Each interior angle=90°<180°  \text{Each interior angle} = 90° < 180° \; \checkmark
Answer: The rectangle is convex because every line segment between interior points stays inside the figure, and all interior angles are less than 180°.

Another Example

This example shows how to identify a non-convex (concave) polygon using the cross-product sign test, contrasting with the first example where all angles were under 180°.

Problem: Determine whether the polygon with vertices A(0, 0), B(4, 0), C(2, 1), D(4, 4), and E(0, 4) is convex or concave.
Step 1: Plot the vertices in order. Notice that vertex C(2, 1) pushes inward compared to a regular pentagon shape — this creates an indentation on the bottom edge.
Step 2: Use the interior-angle test at vertex C. Compute the vectors from C to its neighbors B and D.
\vec{CB} = B - C = (4-2,\, 0-1) = (2, -1)$$ $$\vec{CD} = D - C = (4-2,\, 4-1) = (2, 3)
Step 3: Compute the cross product of consecutive edge vectors at C (going around the polygon). The sign of the cross product at C differs from the sign at vertices A, B, D, and E.
BC×CD=(2)(3)(1)(2)=62=8\vec{BC} \times \vec{CD} = (-2)(3) - (1)(2) = -6 - 2 = -8
Step 4: A negative cross product here (while the others are positive for a counterclockwise traversal) means the interior angle at C exceeds 180°. This is a reflex angle, so the polygon is concave.
Interior angle at C>180°    not convex\text{Interior angle at } C > 180° \implies \text{not convex}
Answer: The polygon is concave (not convex) because the interior angle at vertex C is greater than 180°.

Frequently Asked Questions

What is the difference between convex and concave?
A convex figure has no indentations — all interior angles of a convex polygon are less than 180°, and any line segment between two interior points stays inside. A concave figure has at least one indentation, meaning at least one interior angle exceeds 180° (a reflex angle), and you can find a line segment between two interior points that passes outside the figure.
How do you tell if a polygon is convex?
Check every interior angle: if all are strictly less than 180°, the polygon is convex. Equivalently, compute the cross product of consecutive edge vectors as you traverse the vertices in order. If the cross products all share the same sign (all positive or all negative), the polygon is convex. If any sign differs, it is concave.
Is a circle convex?
Yes. A circle (including its interior) is convex. Any line segment connecting two points inside a circle lies entirely within the circle. In fact, the circle is one of the simplest and most symmetric convex shapes.

Convex vs. Concave

ConvexConcave
DefinitionNo indentations; every segment between interior points stays insideAt least one indentation; some segments between interior points pass outside
Interior angles (polygon)All interior angles < 180°At least one interior angle > 180° (reflex angle)
Cross-product testAll cross products have the same signCross products have mixed signs
ExamplesRectangle, regular hexagon, circleStar shape, arrow/chevron, L-shaped polygon
DiagonalsEvery diagonal lies inside the polygonAt least one diagonal passes outside the polygon

Why It Matters

Convexity appears throughout geometry, optimization, and computer science. In geometry courses, knowing whether a polygon is convex determines which area formulas and angle-sum properties apply directly. In optimization (linear programming), the feasible region is always convex, which guarantees that a local optimum is also a global optimum — a fact that underpins many real-world applications from economics to engineering.

Common Mistakes

Mistake: Confusing a convex polygon with a regular polygon.
Correction: A regular polygon (equal sides and equal angles) is always convex, but a convex polygon does not need equal sides or angles. For example, a non-square rectangle is convex but not regular.
Mistake: Testing only one or two line segments and concluding the shape is convex.
Correction: The convex definition requires that EVERY possible line segment between interior points stays inside. To prove convexity for a polygon, check all interior angles or use the cross-product sign test at every vertex — not just a few sample segments.

Related Terms

  • ConcaveOpposite property — has at least one indentation
  • Geometric FigureGeneral category that can be convex or concave
  • Line SegmentUsed in the formal definition of convexity
  • InteriorRegion that must contain all connecting segments
  • PointBasic element used to test convexity
  • PolygonCommon shape tested for convexity
  • Regular PolygonAlways convex; a special case