CURIUM
How do you recognise a convex function at a glance from its curve?

Convex function

How do you recognise a convex function at a glance from its curve?

By the chord: joining any two points on the curve with a line segment, the segment stays entirely above the curve. Viewed from below, the curve bulges upward. The square function is convex: the chord between points with x-coordinates 1 and 3 passes through (2, 5), above the point (2, 4) on the parabola.

MathsMathematical analysis

The three levels

Beginner

How do you recognise a convex function at a glance from its curve?

By the chord: joining any two points on the curve with a line segment, the segment stays entirely above the curve. Viewed from below, the curve bulges upward. The square function is convex: the chord between points with x-coordinates 1 and 3 passes through (2, 5), above the point (2, 4) on the parabola.

Intermediate

What do you gain by minimizing a convex function rather than another?

The certainty that a valley is the bottom: any local minimum of a convex function is a global minimum. Elsewhere, an algorithm that descends can get stuck in a secondary basin. The practical criterion: a function twice differentiable is convex if and only if its second derivative is positive or zero, like the exponential function or x⁴.

Expert

Is a convex function necessarily continuous?

On an open interval, yes: it even admits a left derivative and a right derivative at every point, and is non-differentiable at at most a countable number of points. At the boundaries of a closed interval, no: the value f(a) can exceed the right-hand limit. And in infinite dimension, a non-continuous linear form is convex without being continuous.