It's hard to tell why if you don't show all of your work!
How did you get from
[tex]\sqrt{3}cos x - sin x=1[/tex]
to
[tex]2 sin (x - \frac{\pi}{3})=1[/tex]?
I would have done this a completely different way:
From
[tex]\frac{sin x+1}{cos x}=\sqrt{3}[/tex]
[tex]sin x+ 1= \sqrt{3} cos x[/tex]
Now square both sides:
[tex](sin x+ 1)^2= sin^2 x+ 2sin x+ 1= 3 cos^2x= 3(1- sin^2 x)[/itex]<br />
so that<br />
[tex]4sin^2 x + 2sin x- 2=0[/tex]<br />
or<br />
[tex]2 sin^2 x+ sin x- 2= (2 sin x- 1)(sin x+ 1)= 0.<br />
That has the two roots sin x= 1/2 and sin x= -1.<br />
<br />
If sin x= 1/2, then [itex]x= \pi/6[/itex] or [itex]5\pi/6[/itex] and if sin x= -1, then [itex]x= 3\pi/2[/itex].<br />
<br />
Since we squared, we may have introduced a new solution so we had better check in the original equation. If [itex]x= \pi/6[/itex], then [itex]tan x= sin x/cos x= \sqrt{3}/3[/itex] and [itex]sec x= 1/cos x= 2\sqrt{3}/3. Yes, those add to [itex]\sqrt{3}! If [itex]x= 5\pi/6[/itex] then [itex]tan x= sin x/cos x= -\sqrt{3}{3}[/itex], [itex]sec x= 1/cos x= -2\sqrt{3}/3[/itex] and those add to [itex]-\sqrt{3}[/itex], not [itex]\sqrt{3}[/itex]. If [itex]x= 3\pi/2[/itex], cos x does not exist and neither tan x nor sec x exists. The ONLY solution to the equation between 0 and [itex]2\pi[/itex] is [itex]x= \pi/6[/itex].[/itex][/itex][/tex][/tex]