0

$ 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.

1 Answers1

4

When $f=2x^2-2xy^2+y^2$ so $$f_x=4x-2y^2\to f_{xx}=4, ~~f_{xy}=-4y\\ f_y=-4xy+2y\to f_{yy}=-4x+2\\$$ This means that $$D=f_{xx}f_{yy}-f^2_{xy}=4\times(-4x+2)-(-4y)^2$$

Mikasa
  • 67,374
  • Thanks for your detailed answer! I think my professor has a fault in their exercises. since they end up with the hesse matrix $\begin{pmatrix} 4-4y & -4y \ -4y & -4x+2 \end{pmatrix}$ which should be wrong with $f_{xx} = 4$ – blacksmth Jul 09 '13 at 19:27
  • @blacksmth: Oh I see. Anyway, if this hint doesn't help you tell me to remove that. I see Daniel noted you the points completely. :) – Mikasa Jul 09 '13 at 19:29
  • it is helping, as is daniels :) – blacksmth Jul 09 '13 at 19:30
  • @BabakS.: very easy to follow! +1 – Amzoti Jul 11 '13 at 19:21