1 + cos²θ = 3 sinθ . cosθ Dividing both sides by sin²θ
sin2θ1+sin2θcos2θ=sin2θ3sinθcosθ ⇒cosec2θ+cot2θ=3cotθ ⇒1+cot2θ+cot2θ=3cotθ ⇒2cot2θ−3cotθ+1=0 ⇒2cot2θ−2cotθ−cotθ+1=0 ⇒2cot2θ(cotθ−1)−1(cotθ−1)=0 ⇒(2cotθ−1)(cotθ−1)=0 ⇒cotθ=21 or 1

Alternative:
Let θ=45∘
⇒1+cos2θ=3sinθcosθ
1+(21)2=3×21×21
23=23 (Satisfies)
Now, cotθ=cot45′=1