plot (2-max(0, w))^2