Work first on , and let . Put . Since ,
Also , so
The Poincare-Wirtinger inequality now bounds the last integral by . Here is a direct proof on the ball. For smooth , the variance identity and the fundamental theorem along line segments give
For , fix and change variables . Convexity keeps inside , and the inverse Jacobian is at most . Thus the double integral of this gradient term is at most . For , fix instead and obtain the same bound. Integration over proves . Density of smooth functions in passes the estimate to all Sobolev functions.
For a ball centered at with radius , set . Its zero set has at least the same volume fraction , while and . Therefore
This establishes the Poincare inequality with a positive-measure zero set, with an explicit admissible constant. If , the function is already zero almost everywhere.