A graph of the left and right sides of the equation quickly reveals the solutions to be

x = {0, ±π/3, ±2π/3}

The curves both go to infinity at other values (±π/6, ±π/4, ±π/2), but the values cannot be considered to be equal at those points.

See also this solution.

Only the range 0..π/2 is shown here. The graph is odd-function symmetrical around 0 and π/2.

x = {0, ±π/3, ±2π/3}

The curves both go to infinity at other values (±π/6, ±π/4, ±π/2), but the values cannot be considered to be equal at those points.

See also this solution.

Only the range 0..π/2 is shown here. The graph is odd-function symmetrical around 0 and π/2.