It's always a good idea to look at simple cases first, so let's see what happens when n=m=1. Then we have and Divide by |y–x|, to get Now let y→x and you see that f'(x)=0 (for all x). So f has to be constant on each component of D.

Now do the same sort of thing for the general case.