Consider the function y(x)=x2+6x3. It holds that
  1. y(x)=2x+6;
  2. y.
To find the stationary points of y(x) we solve y'(x)=0.
y'(x)=0\Leftrightarrow -2x+6=0\Leftrightarrow x=3.

Since y''(x)=-2<0 for every x, y(x) is a concave function for every x. The point x=3 is therefore a maximum location of the function y(x). It follows from this that y(3)=6 is a maximum of the function y(x).