Re: Convex Functions
f(x,y)= x^2 * exp
is not convex (you can verify that if you connect points (1,10,f(1,10)) and (10,6,f(10,6)) then the center of this segment lies below the graph of f).
A function is convex if the Hessian matrix is positive definite - it is not enough to have positive determinant of the Hessian matrix.
In your case the Hessian matrix is not positive definite because the top left corner is positive, but the determinant of the whole matrix is <= 0.
See Wikipedia on Positive definite matrix, and on Hessian.