$ f(x,y) = 2x^2-2xy^2+y^2$
I want to prepare this function for a hesse-matrix. But I'm stuck at deriving.
I get $\frac{\partial f^2}{\partial^2 x} = 4 $
$\frac{\partial f^2}{\partial y^2} = 4x + 4$
$\frac{\partial f^2}{\partial x \partial y} = 4x - 4y + 2y$
which is obviously wrong. but I can't tell why.