Pdf Determination Of The Stresses In A Beam By Means Of The Principle Of Least Work