$A$ and $B$ are $n \times n$ matrix. rank($A$) = $n-1$. rank($B$) = $n$. I want to show $rank(AB) = n-1$.
A solution provided to me is:
We want to find the N($AB$), the null space of $AB$. To find the N($AB$), find $ABx=0$. We can write this as $Ay=0$, where $Bx = y$. So $x = B^{-1}y$. So N($AB$) = $B^{-1}N(A)$.
So I'm confused. First and foremost, how does this show that the rank of $AB$ = $n-1$? I'm trying to get someone to explain this proof.
Note that for every invertible matrix $P$ and any matrix $B$ we have $$\text{rank}(PB)=\text{rank}(B)$$
Proof $$\begin{align}\text{rank}(PB)=k &\iff \dim\left\{x|PBx=0\ \ x\in \mathbb{R}^n\right\}=n-k\\ & \iff \dim\left\{x|P^{-1}(PBx)=0\ \ x\in \mathbb{R}^n\right\}=n-k\\ & \iff \dim\left\{x|Bx=0\ \ x\in \mathbb{R}^n\right\}=n-k\\ &\iff \text{rank}(B)=k \end{align}$$
Note that this follows from the equivalences: $$(PBx)=0\iff P^{-1}(PBx)=0\iff Bx=0 $$