I want to compute the inverse of:
$\begin{pmatrix} 1&2&3&4&5&6&7&8&9\\3&2&1&6&5&9&4&8&7 \end{pmatrix}$
Sorry about alignment(they are all one digit though)
Now it would seem that the inverse here is itself. But I feel like maybe I am just confusing myself now, and I want some confirmation. Thank you and sorry again.
Also can someone explain why my matrix above isn't formatting properly despite having two & between each element
To compute the inverse of a permutation that is written in two-line notation, simply swap the two rows, then reorder the columns so that the first row goes $1,2,3\cdots,n$.
To compute the inverse of a permutation that is written in disjoint cycle notation, simply write each cycle backwards. In fact, even if we have a representation as a product of non-disjoint cycles, simply write the whole thing in reverse (so $(12)(341)(2)(3)(4)$ becomes $(4)(3)(2)(143)(21)$ for example).