Qiaochu Yuan's original answer was very helpful, but working through it left me with a question or two. I couldn't put the workings in a comment so I put them here. It turned out that there was a misunderstanding as to exactly what coefficients I wanted. Once that was resolved, his original answer sufficed. However, just in case someone else ponders this question, I'll leave my workings here to save them the effort.
Following the hint from Qiaochu, we start from

and integrate term-by-term to get

now we substitute in
to get

of which we then take the real part:

Excluding the case where t=0, we can use the standard branch of the logarithm and so use the identity
to deduce that we want the logarithm of the absolute value of
. Since squaring is easily taken care of, we are lead to consider:

and thus conclude that
