Change tan x to  sin x
                           cos x

Multiply both sides by cos x.

Factor.

Set each factor equal to 0.

Solve for x.