$\textbf{Prompt:}$ Prove that with the Cauchy Schwarz inequality, if $(f,g)=||f||||g||$ and $g \neq 0$ then $f=cg$ for a scalar $c$.
I have an outline for suggestions for the proof, but I don't understand it. Here are the suggestions:
Assume $||f||=||g||=1$ and $(f,g)=1$. Then $f-g$ and $g$ are orthogonal, and $f=f-g+g$. Therefore, $||f||^{2}=||f-g||^{2}+||g||^{2}$.
Now, I don't understand why we assume that $||f||=||g||=1$. What if it's not 1? And...I'm trying to understand the orthogonal part...I understand the following algebra of equating $f$ to $f-g+g$, but how exactly does this conclusion imply that $f=cg$ for a scalar $c$?
Hint: It may behoove you to look at the quantity $\|f-g\|^2$. Is there a formula for this that implies $f$ and $g$ should be linearly dependent?