An $n\times n$ matrix $A$ over a number field is similar to its transpose $A^T$. Is there any natural way to construct a nonsingular matrix $P$ such that $P^{-1}AP=A^T$?
-
1$\begingroup$ see: math.stackexchange.com/questions/94599/… $\endgroup$– Piyush GroverCommented Apr 28, 2022 at 2:56
-
1$\begingroup$ But the answer given there uses Jordan canonical form. What if the field is arbitrary? $\endgroup$– Michael RenardyCommented Apr 28, 2022 at 3:07
-
$\begingroup$ Just an idea: if the semisimple + nilpotent decomposition holds in this case, you can use it to break your problem into 2 simpler problems. $\endgroup$– MalkounCommented Apr 28, 2022 at 12:06
-
$\begingroup$ Thanks for the comments. $\endgroup$– Zhihua ChangCommented Apr 29, 2022 at 0:42
2 Answers
As mentioned in another answer the fact that $A$ and $A^T$ are similar corresponds to a commutative diagram of modules over the polynomial ring $F[\lambda]$: $$ \begin{array}{c} 0 & \to & F[\lambda]\otimes V & & \stackrel{\lambda I - A}{\longrightarrow} & F[\lambda]\otimes V & \to & V_{A} & \to & 0\\ && \downarrow~R &&& Q~\downarrow & & \downarrow P \\ 0 & \to & F[\lambda]\otimes V & & \stackrel{\lambda I - A^T}{\longrightarrow} & F[\lambda]\otimes V & \to & V_{A^T} & \to & 0 \end{array} $$ where:
- $V$ denotes that $n$-dimensional column vector space over $F$
- For a square matrix $B$ we use $V_B$ to denote $V$ as a module over $F[\lambda]$ on which $\lambda$ acts by $B$.
- The maps $P$, $Q$, $R$ are isomorphisms of $F[\lambda]$ modules.
The matrix $P$ is what we need to determine.
The idea is that once we determine $Q$ and $R$, then $P$ can be easily calculated.
The Wikipedia page for the Smith Normal Form sketches an algorithm from which one can compute invertible matrices $F$ and $G$ over $F[\lambda]$ such that $F(\lambda u - A)G$ is a diagonal matrix over $F[\lambda]$. It follows that $G^T(\lambda u -A^T)F^T$ is the same diagonal matrix.
We can now take $R^{-1}=G(F^T)^{-1}$ and $Q=(G^{T})^{-1}F$ to get the identity $Q(\lambda I - A)=(\lambda I - A^{T})R$ as required. As mentioned above, now that we have calculated $Q$ and $R$, we can calculate $P$.
Update: Since it may not be immediately obvious how to calculate the matrix of $P$ with entries in $F$, here is an explicit calculation which uses the matrix $Q$ over $F[\lambda]$.
Note that if $e_i$ denotes the $i$-th standard basis vector of $V$, then under the horizontal map from $F[\lambda]\otimes V$ to $V_A$ or $V_B$, $1\otimes e_i$ goes to $e_i$.
Under $Q$, the image of $1\otimes e_i$ in $F[\lambda]\otimes V$ is $E_i=\sum_{k=1}^n Q_{k,i} \otimes e_k$, where $Q_{k,i}$ is the $(k,i)$-th entry of $Q$ and is a polynomial in $\lambda$. The image of $E_i$ in $V_B$ is $f_i=\sum_{k=1}^n Q_{k,i}(A)e_k$. We then write $f_i=\sum_{l=1} P_{l,i} e_l$ to get the matrix $P$. (It is a bit curious that it only depends on $Q$!) Note that to actually calculate $P$, we need to calculate the matrix entries of $Q_{k,i}(A)$ for all $i$ and $k$.
-
$\begingroup$ But this method works only over infinite field, right? $\endgroup$ Commented Apr 29, 2022 at 5:28
-
$\begingroup$ @FedorPetrov I think the algorithm for SNF is for any PID where Bezout's identity can be explicitly computed. So it can be done over any $F[\lambda]$, as far as I can see. Am I missing something? $\endgroup$– KapilCommented Apr 29, 2022 at 5:35
-
$\begingroup$ of course, but $F[\lambda]$ itself is infinite $\endgroup$ Commented Apr 29, 2022 at 6:02
-
$\begingroup$ @FedorPetrov However, $P$ is a map of finite dimensional vector spaces over $F$ and thus is a given matrix over $F$ (which need not be infinite). $\endgroup$– KapilCommented Apr 29, 2022 at 6:16
-
$\begingroup$ Sorry, I missed this point, thinking that $P$ also has coefficients in $F[\lambda]$. Could you please elaborate on how to get $P$ knowing $Q$ and $R$? $\endgroup$ Commented Apr 29, 2022 at 6:24
Here is an answer in a very particular but possibly useful case: if $A$ is the companion matrix of the polynomial $f(x)=x^n+a_1x^{n-1}+\cdots+a_{n-1}x+a_n$, i.e. $$A = \begin{bmatrix} 0 & 0 & \cdots & 0& -a_{n}\\ 1 & 0 & \cdots & 0 & -a_{n-1}\\ \vdots & \ \vdots & & \vdots & \vdots \\ 0 & 0 & \cdots & 0 & -a_{2} \\ 0 & 0 & \cdots & 1 & -a_1 \end{bmatrix}\ ,$$ if one defines $$ P = \begin{bmatrix} a_{n-1} & a_{n-2} & \cdots & a_1 & 1 \\ a_{n-2} & a_{n-3} & \cdots & 1 & 0 \\ \vdots & \ \vdots & & \vdots & \vdots \\ a_{1} & 1 & \cdots & 0 & 0 \\ 1 & 0 & \cdots & 0 & 0 \end{bmatrix}$$ then $P^{-1}AP=A^T$, i.e. the companion matrix $A$ and its transpose $A^T$ are similar.