Given $X_{nxp}$ of rank p, we know that $(X'X)^{-1}$ exists because $X'X$ also has rank $p$. But how do you prove that $X'X$ has rank $p$ (it is rank-preserving of $X$)? What properties can you use to prove this?
Clarification: $X'$ is the transpose of $X$, and the values of $X$ are real.