This is exercise 11, Chapter 6 in Baby Rudin:
Let $\alpha$ be a fixed increasing function on $[a, b]$. For $u \in \mathscr{R}(\alpha)$, define $$ \lVert u \rVert_2 = \left\{ \int_a^b \lvert u \rvert^2 \ \mathrm{d} \alpha \right\}^{1/2}. $$ Suppose $f, g, h \in \mathscr{R}(\alpha)$, and prove the triangle inequality $$ \lVert f-h \rVert_2 \leq \lVert f-g \rVert_2 + \lVert g-h \rVert_2 $$ as a consequence of the Schwarz inequality
where by "Schwarz inequality," Rudin means the following version of Holder's inequality:
$$\left\lvert \int_a^b f g \ \mathrm{d} \alpha \right\rvert \leq \left\{ \int_a^b \lvert f \rvert^2 \ \mathrm{d} \alpha \right\}^{1/2} \left\{ \int_a^b \lvert g \rvert^2 \ \mathrm{d} \alpha \right\}^{1/2}. $$
The solution to this question in the solutions manual is:
In the first display on the left-hand side, it should read $||f-h||_2^2$ instead of $||f-h||_2^1$. My question is about the only inequality in the proof. In particular, how is it true that $$\int_a^b |f-g||g-h| \ d\alpha \le \left\{ \int_a^b \lvert f-g \rvert^2 \ \mathrm{d} \alpha \right\}^{1/2} \left\{ \int_a^b \lvert g-h \rvert^2 \ \mathrm{d} \alpha \right\}^{1/2}?$$ This does not looks like the proper usage of the "Schwarz inequality" or am I missing something? Can someone please propose a correct version of the solution?
The solution to the same question here seems to suffer from the same issue, if this is an issue at all, that is.
