2

Let $f$ be a continuous function. What is the maximum of $\int_0^1 fg$ among all continuous functions $g$ with $\int_0^1 |g| = 1$?

2 Answers2

5

Hint: Try concentrating the weight of $g$ around the maximum of $|f|$. What happens then?

1

Put $M = \|f\|_\infty$. Note that $$\int_0^1 f(x) g(x)\, dx \le \|f\|_\infty \|g\|_1 = M.$$ Let $\epsilon > 0$. Then choose a point $x$ so $|f(x)| = M$. Wlog, we may assume $f(x) = M$. Choose an interval $I$ so that $f\ge M - \epsilon$ on $I$.

Define $g$ to be $1/|I|$ on $I$ and $0$ off $[f > 0]$; then extend this function continuously onto all of $[0,1]$ so it has values in $[0, 1/|I|]$. Then $$\int_0^1 f(x) g(x)\, dx \ge {1\over |I|}\int_I f(x)g(x)\, dx \ge M - \epsilon.$$ The supremum must be $M$.

If you take $f(x) = x(1-x)$, $x\in [0,1]$, you will see this supremum is not attained.

ncmathsadist
  • 50,127