# Revision history [back]

### How can I find the maximum of a two variable function?

Hello everyone, I'm trying to find the maximum of the following function:

var('x,y')
func(x,y) = x*y - y^2


Is there any way I can find the maximum of that function (func) when 0 < x < 1 and 0 < y < 2 for example?