If I have understood correctly your question, for any linear function , (not all ) we have no critical points in . On the other hand, is compact so, being continuous on we have absolute maximum and minimum on . Necessarily this must occur on the boundary of : .