Find the principal and general solutions of the following equation: tan x = √3