The Problem arises from Walter Rudin's "Principles of Mathematical Analysis":

My Question: How exactly does $\int_X |fg|d\mu\leq\|f\|\|g\|$ in the theorem follow from the highlighted texts? Surely we have $\|f\|^2+r^2\|g\|^2\geq2r\|f\|\|g\|$ for all $r\in\mathbb{R}$; but that does not seem to be of any help here. Any hint would be greatly appreciated.
It is basically from the algebraic fact regarding quadratic equation that:
In your case, consider $x=\lambda$, $a=\|g\|^2$, $b=2\int_X |fg|\;d\mu$, and $c=\|f\|^2$.