This question was asked in Example 1 (i)

How to integrate integral

Praveen Pattar's image