Text this: The Ritz Method for Boundary Problems with Essential Conditions as Constraints