Choose $u$ and $dv$ effectively (#562)