Finite elements/Choosing weight function