I'm working on a larger proof and am struggling with one portion in which I need get a matrix equation into a desired form. Here is that problem:
I have a matrix equation (left side) that needs to be formatted into another form (right side). I've simplified the left side as much as I could but can't seem to get it to the match the right side. Note that Q and R are invertible. H is not. I've also used MATLAB to verify that the two equations are indeed the same.
How would I go about obtaining this desired form?

I think I got it.
$$ \begin{aligned} (Q &- QH^T(R+HQH^T)^{-1}HQ)H^TR^{-1}) \\ &= ((QH^T(R+HQH^T)^{-1})(QH^T(R+HQH^T)^{-1})^{-1} QH^TR^{-1} \\&\quad -QH^T(R+HQH^T)^{-1}HQH^TR^{-1} ) \\&= (QH^T(R+HQH^T)^{-1})\cdot \underbrace{((QH^T(R+HQH^T)^{-1})^{-1} QH^TR^{-1}-HQH^TR^{-1})}_{=I} \\&= QH^T(R+HQH^T)^{-1} \end{aligned} $$
Where for the last equal sign this is used: \begin{aligned} (&QH^T(R+HQH^T)^{-1})^{-1} QH^TR^{-1}-HQH^TR^{-1} \\&= (R+HQH^T)(QH^T)^{-1}QH^T R^{-1}-HQH^TR^{-1} \\&= (R+HQH^T)R^{-1}-HQH^TR^{-1} \\&= I+HQH^TR^{-1}-HQH^TR^{-1} \\& = I \end{aligned}