- #1
Evgeny.Makarov
Gold Member
MHB
- 2,436
- 4
Hello,
Suppose I have a vector space $V$ over $\Bbb R$, a quadratic form $f(x)$ over $V$, some basis of $V$ and a symmetric matrix $A$ corresponding to $f$ in that basis, i.e., $f(x)=x^TAx$. Using, for example, the Lagrange method, I can find a change-of-basis matrix $C$ ($x=Cx'$) such that in the new basis the matrix $C^TAC$ of $f$ is diagonal with $1$, $-1$ and $0$ on the diagonal. I can also find an orthogonal matrix $C$ such that $C^TAC$ is diagonal (with arbitrary values on the diagonal). Is it possible to find each of these two decompositions in WolframAlpha? Maybe there is some other online service where this can be done?
A related question. Suppose
\[
A=\begin{pmatrix}
0&1/2&1/2\\
1/2&0&1/2\\
1/2&1/2&0
\end{pmatrix}
\]
and using the Lagrange method I found
\[
D=C^{-1}=\begin{pmatrix}
1/2&1/2&1\\
1/2&-1/2&0\\
0&0&1
\end{pmatrix}
\]
I want to check in WA that
\[
D^T\begin{pmatrix}1&0&0\\0&-1&0\\0&0&-1\end{pmatrix}D=A.
\]
I type the following in WA
but it is interpreted as though the function Transpose[] is applied to the product of the three matrices: see here! What's up with that?
Suppose I have a vector space $V$ over $\Bbb R$, a quadratic form $f(x)$ over $V$, some basis of $V$ and a symmetric matrix $A$ corresponding to $f$ in that basis, i.e., $f(x)=x^TAx$. Using, for example, the Lagrange method, I can find a change-of-basis matrix $C$ ($x=Cx'$) such that in the new basis the matrix $C^TAC$ of $f$ is diagonal with $1$, $-1$ and $0$ on the diagonal. I can also find an orthogonal matrix $C$ such that $C^TAC$ is diagonal (with arbitrary values on the diagonal). Is it possible to find each of these two decompositions in WolframAlpha? Maybe there is some other online service where this can be done?
A related question. Suppose
\[
A=\begin{pmatrix}
0&1/2&1/2\\
1/2&0&1/2\\
1/2&1/2&0
\end{pmatrix}
\]
and using the Lagrange method I found
\[
D=C^{-1}=\begin{pmatrix}
1/2&1/2&1\\
1/2&-1/2&0\\
0&0&1
\end{pmatrix}
\]
I want to check in WA that
\[
D^T\begin{pmatrix}1&0&0\\0&-1&0\\0&0&-1\end{pmatrix}D=A.
\]
I type the following in WA
Code:
Transpose[{{1/2,1/2,1},{1/2,-1/2,0},{0,0,1}}].{{1,0,0},{0,-1,0},{0,0,-1}}.{{1/2,1/2,1},{1/2,-1/2,0},{0,0,1}}