I was playing with series with Wolfram Alpha online calculator when I've considered the plot of the function $$f(x)=\frac{(\sin x)^{\cos x}}{(\cos x)^{\sin x}},\tag{1}$$ over real numbers in $[0,\frac{\pi}{4}]$. And after I wondered next question.
Question. What about the asymptotic behaviour of $$\sum_{1\leq n\leq x}\frac{(\sin \left(\frac{\pi}{4n}\right))^{\cos \left(\frac{\pi}{4n}\right)}}{(\cos \left(\frac{\pi}{4n}\right))^{\sin \left(\frac{\pi}{4n}\right)}}\tag{2}$$ as $x\to\infty$? I am looking (as curiosity) a big/little oh statement, or well an asymptotic equivalence $\sim$ as $x\to\infty$. Since my series seems tedious and artificious only is required, if you want, that you explain a good strategy to get such asymptotic behaviour. Many thanks.
I know the Taylor series for the sine and cosine functions, and the Euler–Maclaurin formula, see this Wikipedia, but even this seems complicated to get. Finally one can write our sequence as
$$\sum_{1\leq n\leq x}\frac{\operatorname{exp}\left(\cos \left(\frac{\pi}{4n}\right)\log(\sin \left(\frac{\pi}{4n}\right))\right)}{\operatorname{exp}\left(\sin \left(\frac{\pi}{4n}\right)\log (\cos \left(\frac{\pi}{4n}\right))\right)}.\tag{3}$$