Example 1
Consider the function y(x)=x3+2x on the interval x≥0. It holds that
- y′(x)=3x2+2>0 for every x≥0;
- y″(x)=6x≥0 for every x≥0.
From the second-order condition it follows that y(x) is convex on the interval x≥0.
Example 2
Consider the function y(x)=−2+√x+1. From y(x)=−2+(x+1)12 it follows that
- y′(x)=12(x+1)−12=12√x+1>0 for every x>−1;
- y″(x)=−14(x+1)−32=−14(x+1)√x+1<0 for every x>−1.
From the second-order condition it follows that y(x) is concave on the interval x>−1.