That's pi. Phi is normally the "vertical" (not sure exactly what to call it) angle when you are in spherical coordinates.

To:

First step, as always, is to simplify:

Now it becomes fairly simple, just use the trig identity:

Where a = x and b = nx

Which simplifies to: