I'm trying to solve $\cos(\theta) = -\sin(-\theta)$ on the interval $[0, 2\pi)$, but having trouble identifying what I'm doing wrong
$$\cos(\theta) = -\sin(-\theta)$$
By even-odd identities: $$\sin(-\theta)=-\sin(\theta)$$
$$\cos(\theta)= -(-\sin(\theta))$$
$$\cos(\theta)=\sin(\theta)$$
Square both sides
$$\cos^2(\theta)=\sin^2(\theta)$$
By Pythagorean identities: $\sin^2(\theta)=1-\cos^2(\theta)$
$$\cos^2(\theta)=1-\cos^2(\theta)$$
$$2\cos^2(\theta)=1$$
$$\cos^2(\theta)=\frac{1}{2}$$
$$\cos(\theta)=\frac{1}{\sqrt2}$$
$$\theta = \frac{\pi}{4}, \frac{7\pi}{4}$$
I know the correct solutions are $\dfrac{\pi}{4}, \dfrac{5\pi}{4}$. Why am I missing $\dfrac{5\pi}{4}$ and in its place have $\dfrac{7\pi}{4}$ instead?