As long as
, we have

From here, you can pull out one factor of
:

Then either
or
.
In the first case,
whenever
, or every odd multiple of
. We denote this by
for
(
is any integer).
In the second case,
whenever
, or every even multiple of
. We write this as
for
.
I'm not sure what you mean by "principal values", but I'd guess it refers to any solutions to the equation for
. In that case, you'd have only 3 solutions,
.
However, we have to throw out the solution
, because that makes the left hand side of the original equation undefined. So the general solution is actually
for
and
for
(all non-zero integers).