$f(x,y)$ defined on $[0,1]\times [0,1]$ and $\frac{\partial f}{\partial x}\le2$, $\frac{\partial f}{\partial y}\le2$. Show $|f(x)-f(y)|\le2\sqrt{2}$ $||x-y||$.
How do I approach this problem? I'm learning transformation in real analysis, but I have no clue where to start.
Consider the function $g(t):=f(tx+(1-t)y)$ for $t\in [0,1]$ (note that $tx+(1-t)y\in [0,1]\times [0,1]$). Thus, by the Mean Value Theorem, there is some $t_0\in (0,1)$ such that $$f(x)-f(y)=g(1)-g(0)=g'(t_0)(1-0)=\langle\nabla f(t_0),x-y\rangle.$$ Can you take it from here?
P.S. I guess that $f$ is differentiable in $[0,1]\times [0,1]$ and the partial derivatives are bounded in magnitude that is $\left|\frac{\partial f}{\partial x}\right|\le2$, $\left|\frac{\partial f}{\partial y}\right|\le2$.