I'm getting an extra solution to $sin(x) + \sqrt{3}cos(x)$ = 1 (which is $\frac{7\pi}{6}$) that doesn't show up in the graph or is wrong. Where am I going wrong with my thinking? I'm also trying to understand this intuitively.
So I start with $sin(x) + \sqrt{3}cos(x) = 1$.
I know that I can define $\sin(x)$ in terms of $\cos(x)$. So I get $\sin(x) = 1 - \sqrt{3}\cos(x)$.
I also know that I can get a true value for $\cos(x)$ by using the Pythagorean theorem with all terms defined in some form of $\cos(x)$. So we have $\cos^2(x)+(1-\sqrt{3}\cos(x))^2=1$
which becomes $4\cos^2(x)-2\sqrt{3}\cos(x) = 0$
Now I factor out $2\cos(x)$ and get $2\cos(x)(2\cos(x)-\sqrt{3}) = 0$
We then have two values for $\cos(x)$ which are $\cos(x) = 0$ and $\cos(x) = \frac{\sqrt{3}}{2}$
We plug these values back into our original equation of $\sin(x) + \sqrt{3}\cos(x)$ and get the following:
$\sin(x) + \sqrt{3}(0)=1$ and $\sin(x) + \sqrt{3}(\frac{\sqrt{3}}{2})=1$
This becomes $\sin(x) = 1$ and $\sin(x) = \frac{-1}{2}$.
When $\sin(x) = 1$, $x = \frac{\pi}{2}$ and when $\sin(x) = \frac{-1}{2}$, $x = \frac{7\pi}{6} + 2\pi k$ (which does not show up on the graph) and $x = \frac{11\pi}{6} + 2\pi k$ which does show up on the graph. Why am I getting this extra answer?