this might sound like a stupid question, but what I mean is: You need $n \times n$ elements to define a square matrix $\in R^{n \times n}$. How many element do I need to define an orthogonal matrix? I have the feeling that it should be $n$ or $2n$ but cannot find a clean mathematical formulation for that.
Thanks!
let us count the number of constraints:
(a) to make the first column orthogonal to the remaining $n-1$ columns, you need $n-1$ constraints. al together one needs $(n-1)+(n-2) + \cdots + 2 + 1=\frac12 n(n-1).$
(b) to make all columns of length $1,$ one needs $n$ constraints.
therefore, to make an $n \times n$ orthonormal matrix, you will have $$n^2 -\frac12n(n-1) - n=\frac{n(n-1)}{2}$$ free parameters. for example, you have only one free variable to make a $2 \times 2$ orthogonal matrix. for $n = 3,$ it is $3$ free variables.
for an orthogonal matrix, you don't need to make the columns length one. so there will be $$\frac{n(n+1)}2$$ free variables.