If $A$ is a matrix of size $R^{h\times w}$, then what's the meanning of $A^{\frac{1}{2}}$ and $A^{-\frac{1}{2}}$? Does it means $\sqrt{A_{ij}}$ or $-\sqrt{A_{ij}}$?
There is a formula as follows: $$ f(x)=x^T D x,x\in R^{d\times 1}, D\in R^{d\times d} $$ then, we could let the following formulas $$ y=D^{\frac{1}{2}}x $$ to get the following formula $$ f(y)=y^Ty. $$ Is there any difference between the domain of $f(x)$ and $f(y)$?
This is only possible when $D$ is positive semi-definite. Since $D$ is related to a quadric, it is implicitly assumed that it is symmetric. A symmetric matrix $D$ can be diagonalized by orthonormal matrices $M$: $$ D=M\Lambda M^T,\quad \Lambda=\text{diag}(\underbrace{\lambda_1,\dots,\lambda_n}_{\text{eigenvalues}}) $$ In the case $D$ is positive semi-definite, meaning its eigenvalues are all non-negative, $D^{1/2}$ could only mean: $$ D^{1/2}=M\Lambda^{1/2} M^T,\quad \Lambda^{1/2}=\text{diag}(\lambda_1^{1/2},\dots,\lambda_n^{1/2}) $$ It is easy to check that $D^{1/2}D^{1/2}=D$: $$ D^{1/2}D^{1/2}=M\Lambda^{1/2} \underbrace{M^TM}_{\text{cancel out}}\Lambda^{1/2} M^T=M\Lambda M^T $$ If $D^{-1/2}$ is needed, $D$ should be positive definite.
There should be no difference between the domain of $x$ and $y$ if $D$ is positive definite (non-singular). When $D$ is only positive semi-definite, meaning it does not have a full rank, the domain of $y$ is restricted to its image.