Please help me to solve this question
$$(\cos x-\sin x)\left(2 \tan x+\frac{1}{\cos x}\right)+2=0$$
I tried to open the whole LHS expression and the tried to bring it in square format. Something like this $$\left(\cos x +\frac32\right)^2 - \left(\sin x+\frac12\right)^2-(\sin x-\cos x)^2 =2$$ But after this I am not able to proceed forward.