TITLE: Can we speak of angles when our inner product isn't standard?
QUESTION [5 upvotes]: I'm wondering if we can speak of angles, specifically right angles when we live in an inner product space, but our product $\langle u, v\rangle$ is not the standard dot product that we all know and love, but rather some other obscure unknown product.
Specifically I'm looking at the first proof for Cauchy-Schwarz inequality proof found here https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality
Basically we have 3 vectors $u,v, z \in \mathbb F^n$ such that $u = z + v$ and $\langle z, v \rangle = 0$
The author then goes on to say that this means $u, v, z$ form a right triangle and so we can use the pythagorean theorem. 
It's not perfectly clear to me why this is true. Our inner product is obscure. It is not necessarily true that if $\langle z, v \rangle = 0$ then $ u \cdot v = 0$ right? And even if it did, in our world, the standard dot product "does not exist", so can we still use it to infer angles between vectors?
TLDR
$u = z + v$, $\langle z, v \rangle = 0$. The standard dot product does not exist. Can we use the pythagorean theorem? why? What does right angle even mean in our sense?

REPLY [3 votes]: On real inner product vector spaces, you can define the angle $\alpha$ between two (nonzero) vectors $x$ and $y$ by
$$
\cos\alpha=\frac{\langle x,y\rangle}{\sqrt{\langle x,x\rangle\langle y,y\rangle}}
$$
because the Cauchy-Schwarz inequality tells you precisely that the number in the right hand side belongs to $[-1,1]$. With this definition, we have $\alpha=\pi/2$ if and only if $\langle x,y\rangle=0$.
Right angles according to the “obscure” inner product need not be right angles with respect to the standard inner product, but it's of no consequence as long as we stick to the definition of angle with respect to the given inner product.

On the other hand, any “obscure” inner product on $\mathbb{R}^n$ can be written as
$$
\langle x,y\rangle_{?}=x^TB^TBy \tag{*}
$$
for an invertible $n\times n$ matrix $B$. The mapping $f\colon x\mapsto Bx$ will then define an isomorphism of $\mathbb{R}^n$ with the standard inner product with the same space with the “obscure” one. Indeed, if $\langle x,y\rangle$ denotes the standard inner product, we have
$$
\langle x,y\rangle_?=\langle f(x),f(y)\rangle
$$
Why is (*) possible? Consider the standard basis of $\mathbb{R}^n$, $\{e_1,\dots,e_n\}$ and form the matrix
$$
A=[\langle e_i,e_j\rangle_?]
$$
(the Gram matrix of the “obscure” inner product). Such a matrix is symmetric (and positive definite), so it can be diagonalized with an orthogonal matrix: $A=U^TDU$ and the eigenvalues (the diagonal entries on the diagonal matrix $D$) are positive. If $\sqrt{D}$ is the diagonal matrix with positive entries on the diagonal such that $D=(\sqrt{D})^2$, then setting $B=\sqrt{D}U$ gives the required form.