TITLE: $xf(y)+yf(x)\leq 1$ for all $x,y\in[0,1]$ implies $\int_0^1 f(x) \,dx\leq\frac{\pi}{4}$
QUESTION [21 upvotes]: I want to show that if $f\colon [0,1]\to\mathbb{R}$ is continuous and 
$xf(y)+yf(x)\leq 1$ for all $x,y\in[0,1]$
then we have the following inequality:
$$\int_0^1 f(x) \, dx\leq\frac{\pi}{4}.$$
The $\pi$ on the right hand side suggests we have to do something with a geometric function. Letting $f(x) = \frac{1}{1+x^2}$ we have equality but this function does not satisfy $xf(y)+yf(x)\leq 1$.

REPLY [3 votes]: $$\int \limits _0 ^1 f(x) \Bbb d x = \frac 1 2 \int \limits _0 ^1 f(x) \Bbb d x + \frac 1 2 \int \limits _0 ^1 f(y) \Bbb d y = - \frac 1 2 \int \limits _{\frac \pi 2} ^0 f(\cos t) \sin t \Bbb d t + \frac 1 2 \int \limits _0 ^{\frac \pi 2} f(\sin t) \cos t \Bbb d t \le \frac 1 2 \cdot \frac \pi 2$$