Something may have gone wrong.
In order to be able to speak about minimum / maximum of a function, the function should have values in the field of real numbers (or an other field with an order).
In the above case it seems that the function is vector valued... (values in IR²)