Example 1
Consider the function y(x)=x3+2x on the interval x0. It holds that

  1. y(x)=3x2+2>0 for every x0;
  2. y(x)=6x0 for every x0.

From the second-order condition it follows that y(x) is convex on the interval x0.

Example 2
Consider the function y(x)=2+x+1. From y(x)=2+(x+1)12 it follows that

  1. y(x)=12(x+1)12=12x+1>0 for every x>1;
  2. 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.