How far have you gotten?
1) Remember that arccot(x) produces an ANGLE, usually on .
2) Do you have half-angle formulas? You will need them.
3) There are some right triangles in your future.
4) Don't forget what Quadrant you are in. (Actually, you tell me if this matters. Maybe symmetry will bail you out.)