Just tinkering
There is another method that involves complex analysis, and it is the way I was hoping someone would do this.
We know that and thus , in particular the real an imaginary parts of that integral must equal zero. Do a little work with trig identities and you will get our integral is the imaginary part of it.