If you have 2sin(θ)cos(θ) = 0 and you divide both sides by cos(θ), you lose the solutions where cos(θ) = 0. Instead, factor: 2sin(θ)cos(θ) = 0 → either sin(θ) = 0 OR cos(θ) = 0. Both possibilities give solutions. Dividing by a trig function is illegal because that function might equal zero at your solution — you'd be dividing by zero and losing answers.
✗ Never divide by sin(θ), cos(θ), or tan(θ) — always factor instead