How to find the coordinate where a vector function is max?

Hi, how do I find different maximum values for different subdomains ? I have created a post here How to calculate two max values of vector in two different subdomains?