1. Draw a graph of the left-hand side against w and the right-had side against w to see where they intersect (perhaps multiply both sides by cos(w) first so that you don't get any divide by zeros).
2. Use a numerical technique like Newton-Raphson (though it's still a good idea to draw a graph first).