Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If $f:[0,1]\to\mathbb{R}$$f:[0,1]^n\to\mathbb{R}$ is $L$-Lipschitz and $f(0)=0$, then $|f(x)|\le L\|x\|$, which obviously implies that the function $x\mapsto L\|x\|$ is the maximizer for both problems.
If $f:[0,1]\to\mathbb{R}$ is $L$-Lipschitz and $f(0)=0$, then $|f(x)|\le L\|x\|$, which obviously implies that the function $x\mapsto L\|x\|$ is the maximizer for both problems.
If $f:[0,1]^n\to\mathbb{R}$ is $L$-Lipschitz and $f(0)=0$, then $|f(x)|\le L\|x\|$, which obviously implies that the function $x\mapsto L\|x\|$ is the maximizer for both problems.
If $f:[0,1]\to\mathbb{R}$ is $L$-Lipschitz and $f(0)=0$, then $|f(x)|\le L\|x\|$, which obviously implies that the function $x\mapsto L\|x\|$ is the maximizer for both problems.