I'm given a matrix $C=(\underline{0}_{k}, I_{k})$, where $\underline{0_{k}}$ is the $k \times 1$ zero vector, and $I_{k}$ is the $k \times k$ identity matrix. I'm asked to show that there exists some matrix $M$ such that $C=MX$ and $M\underline{1}_{n}=\underline{0}_{k}$.
Where $X$ is a full column rank $n \times (k+1)$ design matrix with the first column being a vector of one's (for the intercept).
I can notice that each row in $M$ has to sum to zero. I have tried approaching this via pre/post multiplying $C=MX$ by a number of choices, and by trying to find values for the rows of $M$ that would satisfy:
$\sum_{j}M_{ij}=0$
and
$\sum_{j}M_{ij}X_{ji}=1$ $\quad$and$\quad$ $\sum_{j}M_{ij}X_{ji'}=0$
with little success. Can anyone offer me a hint or a pointer on how to approach this problem?
Since $X$ is full column rank $X^TX$ is a $(k+1) \times (k+1)$ invertible matrix.
So $C^T = (X^TX)(X^TX)^{-1}C^T$. Define $M = C(X^TX)^{-1}X^T$, then $C^T = X^TM^T$, i.e., $C=MX$.
The first column of $C$ is $0$ and the first column of $MX$ is $M1$ from which $M1=0$ follows.