My book states:
if $q: \mathbb{R}^n \to \mathbb{R}$ is a positive definite quadratic form then there exists a basis $B=(v_1,...,v_n)$ such that $q(x)=x_1^2+...+x_n^2=||x||^2$ for every $x=x_1v_1+...+x_nv_n$
But what do I know about the basis $B$? Is it orthonormal? If not, I'm having a hard time justifying the fact that $x_1^2+...+x_n^2=||x||^2$.
Yes, this is in fact implied by the statement. Let $B$ denote the associated symmetric bilinear form, i.e. $2B(x,y)=q(x+y)-q(x)-q(y)$. Of course for $x=v_i$ we have $x_j=\delta_{ij}$. Now
$q(v_i)=x_i^2=1^2=1$,
and if $i\neq j$ then
$2B(v_i,v_j)=q(v_i+v_j)-q(v_i)-q(v_j)=(x_i^2+x_j^2)-x_i^2-x_j^2=(1^2+1^2)-1^2-1^2=0$.
Thus the basis is orthonormal.