Consider the function $f: \mathbb{R} \to [-1, 1]$ defined as
$$f(x) = \cos(\alpha x + \cos(x))$$
What conditions must be placed on $\alpha \in \mathbb{R}$ such that the function $f$ is periodic?
First of all, I tried plotting some values on Wolfram|Alpha, and for all the values of $\alpha$ that I tested, it seems that any $\alpha$ works... But I couldn't prove it.
My attempt:
We want to study $\alpha$ such that the following statement is true:
$$\exists \,\, T > 0 \quad \forall \,x \in \mathbb{R} \quad \cos(\alpha (x + T) + \cos(x + T)) = \cos(\alpha x + \cos(x))$$
I was able to show, with some trigonometric substitutions, that this statement is equivalent to the following statement:
$$\exists \,\, T > 0 \quad \forall \,x \in \mathbb{R} \quad \exists \,\, K \in \mathbb{Z} \quad \text{such that}$$ $$\sin(x + T) = \dfrac{\alpha T - K\pi}{\sin (T)} \quad \text{or} \quad \cos(x + T) = \dfrac{K\pi - \alpha(x + T)}{\cos (T)}$$
I couldn't make any progress after that, though.
EDIT:
Inspired by a quick comment by @ZainPatel, I was actually able to show that all $\alpha \in \mathbb{Q}$ works! It's quite simple, I am surprised I didn't try this before.
Let $\alpha \in \mathbb{Q}$, $\alpha = \dfrac{p}{q}$. Then $T = 2q\pi$ works, since
$$f(x + 2q\pi) = \cos(\alpha (x + 2q\pi) + \cos(x + 2q\pi)) = \cos(\alpha x + 2p\pi + \cos(x)) = f(x)$$
The matter is still open for irrationals though!