Let and define the roughness penalty matrix
For , the loss is the quadratic function
Its normal equations are
Whenever is positive definite, the unique minimizer is
For the usual choice , the penalty matrix is positive semidefinite, so full column rank of suffices. Since the question permits arbitrary real , a sufficiently negative value can make the quadratic form indefinite; then the loss is unbounded below and no minimizer exists. In the singular positive-semidefinite case, the Moore-Penrose inverse describes the minimum-norm solution whenever the normal equations are consistent.
Roughness penalty 2026-10-05
A roughness penalty penalizes variation of derivatives, such as . The second-derivative penalty vanishes precisely on affine functions and is represented in a chosen basis by a roughness penalty matrix.