% hw02cbh.m  -  Hessian for M604 HW02 C(b)
%
% Input parameter xy must be a column vector with two components.
% Output is a symmetric  2 x 2  matrix.

function z = hw02cbh(xy)

z = zeros(2,2);

x = xy(1);
y = xy(2);

z12 = 4*(x-2)*y;

z = [12*(x-2)^2+2*y^2, z12; ...
     z12, 2*(x-2)^2+2];
