I was solving an apparently simple equation but then it turned out I missed one of the solutions that somebody else find using another method.
$\cos x=\sin x$ was the problem.
I tried the associated angle method, so $\sin(x)=\cos\left(\frac{\pi}{2} - x\right)$. Performing the substitution I could equal the argument of Cos and solve the equation in $x$. It turned out I missed $5\pi/4 $ and I cannot understand why. Can somebody explain me the right way to use this method?
So, we have $\dfrac\pi2-x=2n\pi\pm x$ where $n$ is any integer