Science, Numerical Analysis, Ritz.
impose the actual boundary conditions of the problem. At this point we require the weight function w to vanish at boundary points where the essential boundary conditions are specified. The reason for this is in weak formulation, the weight function has the meaning of a virtual change (or variation)