Lagrange function

44 Views Asked by At

Could you explain me the following step? I am supposed to mimimize $||Y-X\beta||^{2}$ subject to $K\beta=r $. The Lagrangian function is $L= (Y-X\beta)^{T}(Y-X\beta) + 2\lambda ^{T}(K\beta -r)$. I am confused why there is $2$ next to Lagrange multiplier?