Summary
This lesson studies how the graph of a function bends: if between two of its points it lies below the chord joining them, the function is convex; if it lies above it, concave. It translates the definition into a comparison of the slopes of the chords and, with the mean value theorem and monotonicity, proves that a differentiable function is convex if and only if its derivative is increasing, if and only if its graph lies above all its tangents, and that a twice differentiable function is convex if and only if its second derivative is not negative. It defines inflection points, where the function changes from convex to concave, and gives the tests for finding them: the sign change of the second derivative, the necessary condition and the third derivative test, which compares the graph with its tangent as the higher-order derivative test compared it with the horizontal line. With the chords of the sine it obtains Jordan’s inequality, and with Jensen’s inequality it turns the concavity of the logarithm into the inequality between the geometric and arithmetic means of any number of numbers.
Learning objectives
- Define with quantifiers the convex function and the concave function by their chords, distinguish the two conventions found in textbooks and translate the definition into the comparison of the slopes of the chords.
- Prove that a differentiable function is convex if and only if its derivative is increasing and if and only if its graph lies above its tangents, and decide with the second derivative on which intervals a function is convex or concave.
- Find the inflection points of a function with the sign change of the second derivative and with the third derivative, and recognize the points with zero second derivative that are not inflection points.
- Prove inequalities with convexity: Jordan’s by the chords, Jensen’s and the inequality of the means.
Convex and concave functions
The lesson on monotonicity studied whether a function rises or falls; this one studies how it does so. The functions and are strictly increasing on , but the first bends upward and the second downward: the line segment joining two points of the graph of , its chord, lies above the arc of the graph between them, and that of lies below it. If is in , the point of the chord joining with whose abscissa is has ordinate : the same combination of the ordinates.
Let be a function defined on an interval . We say that is convex on if no point of its graph lies above the chord joining two points of the graph whose abscissas enclose its own:
and strictly convex if the inequality is strict whenever and . We say that is concave (or strictly concave) on if is convex (or strictly convex), that is, if the opposite inequality holds: no point of the graph lies below those chords.
A linear function is both convex and concave: its graph coincides with its chords. The function is strictly convex on , because the difference between the two sides of the inequality is , positive if and . The absolute value is convex, by the triangle inequality, , although it is not differentiable at ; it is not strictly convex, because on it coincides with its chords.
Two conventions. In this course, “convex” is the function whose graph does not rise above its chords, like , and “concave” the one that does not fall below them, like . It is the convention of most textbooks of analysis and optimization, and that of the admitted fact of the concavity of the sine, in the lesson on the trigonometric functions and their graphs, from Algebra and Geometry II. Other textbooks use the words the other way around, and call concave, because they look at the graph from above; others say “concave up” for convex and “concave down” for concave. Faced with a new textbook, it is worth looking for its definition or noticing what it calls : the inequalities do not change, only the names.
The definition compares a point of the graph with a chord. If , comparing with the chord from to is equivalent to comparing the slopes of three chords: as one runs along the graph of a convex function from left to right, the chords get steeper. The figure shows it with .
Let be a function defined on an interval , and let be the slope of the chord between two distinct abscissas and of . If are points of , each of the inequalities
is equivalent to the point not lying above the chord joining with , and each of the strict inequalities, to its lying strictly below it. Consequently, is convex on if and only if the three inequalities hold for all in , and strictly convex if and only if they hold strictly.
Proof
Let , which lies in ; then and . The point of the chord with abscissa has ordinate , and the comparison, multiplied by , is written without fractions:
Subtract from both sides; since , the right-hand side becomes , and it suffices to divide by . In the same way, subtracting and dividing by gives the second inequality.
The increment from to is the sum of the increments from to and from to : the slope of the long chord is an average of those of the short ones, with positive weights of sum , and its difference from has the sign of . Hence the three inequalities are equivalent, and so are the strict ones. For the definition, if , or if equals or , the inequality holds with equality, and if the roles of and are exchanged, and those of and .
Loading the content…
Completed
Sign in to save your progress