WOW heureka, you gave yourself something to chew on there! 
My answer is no where near as impressive. 
sinx=cosx When cosx=0, sinx ≠0 so cosx ≠ 0 therefore I can divide by it.
$$\\\frac{sinx}{cosx}=1\\\\
tanx=1\\\\
$tan is pos in the 1st an 3rd quad$\\\\
x=\frac{\pi}{4},\;\;\frac{5\pi}{4}\;\;etc\\\\
x=n\pi+\frac{\pi}{4}\qquad n\in Z\qquad$ (n is an integer)$$
.