Given $A=\begin{bmatrix} a_1 & & \\ & a_2 & \\ &&a_2 \end{bmatrix}$ and $B\in\mathbb{R}^{3\times2}$, where $a_1,a_2>1$, and $X=AX(I+BB'X)^{-1}A$.
1) Find $\mathrm{tr}(AX^{-1}AX)$ in terms of $a_i$.
2) Show that $\frac{x_1\cdot\begin{vmatrix} x_2 & x_{23}\\ x_{23}&x_3 \end{vmatrix}}{|X|}$ is independent of $B$, where $|X|=\mathrm{det}X$.
My attempt: $X$ is the solution to discrete-time algebraic Riccati equation.
Let $X=\begin{bmatrix} x_1 & x_{12} & x_{13}\\ x_{12} & x_2 & x_{23}\\ x_{13}&x_{23}&x_3 \end{bmatrix}$ and $z=x_1\cdot\begin{vmatrix} x_2 & x_{23}\\ x_{23}&x_3 \end{vmatrix}$, then I found that
\begin{align} \mathrm{tr}(AX^{-1}AX) =(a_1-a_2)^2\frac{z}{|X|}+(2a_1a_2+a_2^2). \end{align}
I did simulation by fixing $A$ and found out that $\frac{z}{|X|}$ doesn't depend on $B$, thus $\mathrm{tr}(AX^{-1}AX)$ also doesn't depend on $B$ (as long as $B$ is full rank).
Observation 1: $A=\begin{bmatrix} 7 & & \\ & 2 & \\ &&2 \end{bmatrix}$ and $A=\begin{bmatrix} 2 & & \\ & 7 & \\ &&7 \end{bmatrix}$ has equal $\frac{z}{|X|}$.
Observation 2: The larger the gap between $a_1$ and $a_2$, the smaller $\frac{z}{|X|}$ and vice-versa.