Suppose $Q_{1}$ is an $n\times p $ matrix (derived from the $QR$ Decomposition of $X$) whose columns provide an orthonormal basis for the subspace ${\chi}$ of $\mathbb R^{n}$ spanned by the columns of an $n\times p$ matrix $X = (x_1,...,x_p)$. The hat matrix $H = Q_{1}Q_{1}^{T}$ projects vectors orthogonally onto $X$.
Suppose the first two rows of $X$ are the same. Explain why the first two rows of $H$ are the same.
If the first two rows of $X$ are equal, then the first two rows of $Q_1$ are equal: the columns of $Q_1$ are obtained by applying Gram-Schmidt to the columns of $X$. So each row of $Q$ is obtained by doing the same operations to the corresponding row of $X$.
As for $H$, its first row is obtained by doing "row times colum" with the first row of $Q_1$ and all the other rows (because of the transpose). If the second row of $Q_1$ is the same, the same numbers will appear. Thus the first two rows of $H$ will be equal.