my complex analysis is quite shaky, given in my undergrad I never have enough course slots to formally take it and I rely on my friends and lecture notes to learn most of the basis.
I also have a huge gap in topology because of that, which I planned to fill in this summer, because I need that to understand physics like GR, QFT, and also maths like real analysis, differential geometry
*meanwhile still solving that integral, and I presume your method does not involve converting sin x into the compelx exponential*