Let A and B be two $n \times n$ square matrices with complex coefficients, and consider the $2n \times 2n$ matrix $M$ given by
$$ M = \begin{bmatrix} A & A \\ A & B \\ \end{bmatrix} $$
Determine the rank of $M$ in terms of $A$ and $B$.
What is the condition for $M$ to have an inverse $M^{-1}$? Compute $M^{-1}$ when it exists.
Any ideas on how to get started on this problem are welcome.
Thanks,
\begin{align} [ M \mid I ] &= \left[ \begin{array}{cc|cc} A & A & I & 0 \\ A & B & 0 & I \end{array} \right] \\ &\to \left[ \begin{array}{cc|cc} A & A & I & 0 \\ 0 & B-A & -I & I \end{array} \right] \\ & \to \left[ \begin{array}{cc|cc} I & I & A^{-1} & 0 \\ 0 & I & -(B-A)^{-1} & (B-A)^{-1} \end{array} \right] \\ & \to \left[ \begin{array}{cc|cc} I & 0 & A^{-1} +(B-A)^{-1} & -(B-A)^{-1} \\ 0 & I & -(B-A)^{-1} & (B-A)^{-1} \end{array} \right] = [ I \mid M^{-1} ] \end{align}