If $f(x) \in L^2[0, \pi]$ Prove that these two inequalities cannot both be true:
$$ \int_{0}^{\pi} [f(x) - \sin x] ^2 \, dx \le \frac{4}{9} $$
$$ \int_{0}^{\pi} [f(x) - \cos x] ^2 \, dx \le \frac{1}{9} $$
I have been trying the following approach. Define two functions $G(x)$ and $H(x)$ such that $G(x) = f(x) - \sin x$ and $H(x) = \cos x - f(x)$. Then consider that $G+H$ in $L^2[0,\pi]$. I was adding the two functions together and using the triangle inequality of the norm but couldn't get the problem to go. Is this the right approach? Is there another direction for this problem?
Thank you.
This is the right approach. Let $u(x)=f(x) - \sin x$ and $w(x)=f(x) - \cos x$. The asummptions tell us that
$$ \lVert u\rVert\leq2/3, \quad \lVert w\rVert\leq1/3 $$ but $$ \lVert u-w\rVert=\sqrt{\pi} $$ as you can compute (or use a computer) where the norms are $L^2$ norms. Thus if both inequalities in the assumption were true then the triangle inequality would be violated, a contradiction. It must be the case that at least one of the inequalities in the assumptions is false.