this one seems to be tricky? can some1 figure out what the book did between these two steps?>?

{integral} 2 cscx dx

= 2 ln( cscx + cotx)

can anybody see what they did?> is it the clever use of 1? i m not exactly sure what went on there. any help appreciated.