A penalty function proof of a Lagrange multiplier theorem with application to linear delay systems