Using BY PART METHOD. Using the superiority list as ILATE (Inverse Logarithm Algebra Trigonometric Exponential). Taking the first function to the one which comes first in the list.
Here x is the first function, and cos x is the second function.
Using Integration by part
