I’m interested in pairs of rational numbers $a, b$ in the interval $(0,\frac12)$ such that $$\cos(a\pi) = \cos^2(b\pi)$$
Certainly $a=\frac13$, $b=\frac14$ is a solution. I suspect that this is the only solution – as a sanity check, I verified this numerically for denominators less than 200 – but I can’t currently see how to prove it.
I have the feeling there’s a simple proof that I’m not quite seeing, maybe involving expressing the cosines in terms of roots of unity? They’re all algebraic numbers, of course.
Not quite simple, but this approach works here. Let $a=2u/w$ and $b=v/w$ with positive integers $u,v,w$.
Denoting $\zeta=e^{2\pi i/w}$, we have $2(\zeta^u+\zeta^{-u})=2+\zeta^v+\zeta^{-v}$. This is a polynomial equation w.r.t. $\zeta$, hence $$2(\zeta^{au}+\zeta^{-au})=2+\zeta^{av}+\zeta^{-av},\qquad 1\leqslant a\leqslant w,\ \gcd(a,w)=1$$ by the same "cyclotomic argument" as in the linked answer. Likewise, we sum over $a$ and use $$\frac{1}{\varphi(w)}\sum_{\substack{1\leqslant a\leqslant w\\\gcd(a,w)=1}}\zeta^{an}=\rho(d):=\frac{\mu(d)}{\varphi(d)},\qquad d=\frac{w}{\gcd(n,w)};$$ so, denoting $x=w/\gcd(u,w)$ and $y=w/\gcd(v,w)$, we get $\color{blue}{2\rho(x)=1+\rho(y)}$.
Examining the range of $\rho$, we see that this is possible only in the following cases: