Could someone please explain why:
\begin{equation} \frac{\partial (Y-\beta^T X)^T (Y-\beta^T X)}{\partial \beta}=2X^T(Y-\beta^T X) \end{equation}
and why:
\begin{equation} \frac{\partial \lambda \beta^T \beta}{\beta}=2\lambda\beta \end{equation}
as for the latter equation, I just was not sure why we are left with: \begin{equation} 2\lambda\beta \end{equation} as opposed to \begin{equation} 2\lambda\beta^T \end{equation}
and was wondering if someone could explain with general rules how to take the derivatives of these, and any rules for the simplification would be greatly appreciated. I tried learning about certain properties of Matrix calculus, but I can't wrap my head around which properties are applied here. I would be equally content with a resource if you can point me toward one.
[self-study]
tag & read its wiki. $\endgroup$