function f = fex1(x)
% simple quadratic example
f = x(1)^2 + 2*x(2)^2; 
