A function is said to be convex if it has the property that every chord lies on or above the function. This means that the second derivative of the function has to be everywhere positive. If a function has the opposite namely that every chord lies on or below the function, it is called concave.

Any value of in the interval from to can be written in the form where . The corresponding point on the chord is given by , and the corresponding value of the function is . Thus, complexity implies that

A function is called strictly convex if the equality is satisfied only for and ; strictly concave functions are similarly defined.