Given a matrix $A \in M^{n×n}(F)$, let $A^{\rho}$ denote the matrix obtained from $A$ by ‘rotating’ it $90^{\circ}$ clockwise. For example, $$\begin{bmatrix} 1&2\\ 3&4 \end{bmatrix}^\rho =\begin{bmatrix} 3&1\\ 4&2 \end{bmatrix}.$$ Find (with proof) an expression for $A^\rho$ in terms of $A$.
Through analyzing $2\times 2, 3\times 3, 4\times 4$, and $5\times 5$ cases, it seems that the rotation is equivalent to transposing A and then swapping the first column with the $n^{th}$ column, the second column with the $(n-1)^{th}$ column, and so on. Performing these column operations is equivalent to right multiplication by a permutation matrix.
So I've concluded that $A^\rho$ is equivalent to $A^TP$ where $P$ is the the "mirror image" of $I_n$.
For example in the $5 \times 5$ case, $P= \begin{bmatrix} 0&0&0&0&1\\ 0&0&0&1&0\\ 0&0&1&0&0\\ 0&1&0&0&0\\ 1&0&0&0&0 \end{bmatrix}.$
I'm struggling with how to prove this in the general case, or how to express $P$ for any $n$. Any help is appreciated!
A good way to prove this is to take $A_{ij}$ and track where it should end up after a rotation, and where it does end up after your expression.
To get you started: $A_{i,j} = A^{\rho}_{j , n-i} $
Now show that $A_{i,j} = (A^TP)_{j, n-i}$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.