Let us integrate the function , where on a circular sector in the first quadrant, centered at the origin and of radius R, with angle which satisfies , and therefore . Let this sector be called . Since our integrand is obviously holomorphic on the whole plane we get: Breaking it into its three pieces we obtain: Now let's call and , then: and by solving: This method relies only on the resource of contour integration as you asked!
First,you may use the definition of Lapace transform to get it or integration by parts twice.
For complex numbers your integrand is the real part of . Use this function to evaluate the unbounded integral then evaluate the bounded one