Hi everyone, I was wondering if anyone can show me how these factorisations were carried out?

Any help would be much appreciated!

edit: is the imaginary unit, as always.

2nd edit: For anyone interested they arose while I was factorising this:

in order to evalute this:

using contour integration.

I have the solution, I just can't replicate those factorisations.