Convex Function
BasisPrerequisites
Many inequalities in analysis and probability reduce to a single geometric observation: for a “bowl-shaped” function, the straight line between two points on the graph never dips below the graph itself. Formalising that observation gives you the notion of a convex function.
The chord condition
Let be an interval and .
Definition. is convex on if for every and every ,
The point is a convex combination of and : as ranges over it traces the segment from to . The right-hand side is the corresponding point on the chord from to .
In words: the graph of lies at or below every chord.
Strict convexity
Definition. is strictly convex on if inequality is strict whenever and :
Strict convexity rules out any flat portion of the graph lying on a chord. Every strictly convex function is convex, but not vice versa (the identity is convex but not strictly convex).
Concavity
is (strictly) concave if is (strictly) convex, i.e. if the inequality in is reversed. Concave functions are “cap-shaped”: every chord lies at or below the graph.
Examples
| Function | Domain | Convex? | Strictly? |
|---|---|---|---|
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | No (flat at on the chord from to ) | ||
| No (concave) | — | ||
| No (concave) | — | ||
| (constant) | Yes | No |
Verifying . For and :
is equivalent to , which holds for all and is strict when and . So is strictly convex.
Equivalent two-point form
Dividing both sides of by setting and rearranging, convexity can also be read as: for any three points in ,
Each fraction is the slope of a secant, so this says: the secant slopes from a fixed left point are non-decreasing as the right endpoint moves right. This monotone-slope property is fully equivalent to and is often the quickest way to check convexity from a graph.
Summary
- is convex on if every chord from to lies at or above the graph: for all , .
- Strict convexity requires a strict inequality for and .
- Concavity reverses the inequality; is concave iff is convex.
- Standard examples: and are strictly convex; is strictly concave.