If we consider the multiple linear regression with intercept:
$$y = \alpha + \beta_1x_1 + \cdots + \beta_nx_n,$$
it is the well-know formula of solution:
$$\theta = (M^TM)^{-1}M^Ty.$$
Here
$\theta = (\alpha, \beta^T)^T,$ $\alpha$ is intercept; $\beta = (\beta_1,\cdots,\beta_n).$
$$M=\begin{pmatrix} 1 & x_{12} & \cdots & x_{1m}\\ 1 & x_{22} & \cdots & x_{2m}\\ \vdots & \vdots & \vdots & \vdots\\ 1 & x_{N2} & \cdots & x_{Nm} \end{pmatrix}=(e,X),$$ is the extended sample matrix.
Now I want to expand $\hat{\theta}$ to get the closed form of $\beta.$ Compared with simple simple linear regression, I guess the formula of $\beta$ is just the solution of linear regression without intercept under the centralized sample $y_c,X_c:$
$$\beta = (X_c^TX_c)X_c^Ty_c.$$
$X_c,y_c$ is centralized sample matrix of $X,y.$
Is there any easy way to proof it? Since it is related to the inverse of block matrix, which seems a little bit complicate.