I clarified it with a really good teacher today.
He basically said that in the HSC it is clear when the 'm' terms cancel out or not.
If it does cancel out then you get a nice ln function, if not then some inverse tan function I believe in most cases.
I mentioned this a while back, it seems...