Exercise 3.6-4 in Kreyszig asks to show that $\langle x,y \rangle = \sum_k \langle x,e_k \rangle \overline{\langle y,e_k \rangle}$ using the "Parseval relation": $\sum_k |\langle x, e_k \rangle |^2 = ||x||^2$, for all $x \in X$, where the $(e_k)$ form an orthonormal set.
I'm a bit stumped here. I see how the relation on $||x||^2$ would follow from the first, but not the other way around.