TITLE: Matrix invertiblity and its Inverse
QUESTION [7 upvotes]: I'd like to prove that the Matrix $L:={ M }^{ T }M$ is invertible and determine its inverse (in dependence of $A$ and $B$).
$M:=\begin{pmatrix}A & B \\ 0_{q\times p}& I_q\end{pmatrix}$ and $A\in K^{p\times p},B\in K^{p\times q}$. 
Further is given that the matrix $A$ has rank $p$.
I tried to form $L=\begin{pmatrix}{ A }^T A& A^T B\\ B^T A &{ B^T B+I }_{ q }\end{pmatrix}$ into the Unity Blockmatrix using elementary row operations.
Since A has a full rank it must be invertible and because A is a $p\times p$ matrix, its transpose must be invertible too, with this knowledge its fairly easy to get ${ a }_{ 21 }=0$ and  I'm stuck in getting ${ a }_{ 12 }=0$ since I know nothing about the invertibility of $B$.
Are there any other ways to solve this problem?

REPLY [5 votes]: Computing the inverse of $ L $ given the inverse of $ M $ is easy:  $ L^{-1} = ( M^T M)^{-1} = M^{-1} M^{-T} $.
So, the question really is how to find the inverse of $ M $.
But the inverse of this partitioned triangular matrix is given by
$$ \left( \begin{array}{c | c}
A & B \\ \hline
0 & I 
\end{array} \right)^{-1} =
\left( \begin{array}{c | c}
A^{-1} & -A^{-1} B  \\ \hline
0 & I 
\end{array} \right) $$
(just multiply out.)
So, you can now put the pieces together.