Integration by Parts

How do I know what to choose for "u" and "v" when doing integration by parts ?

any tips or tricks ?