I'd like to know if someone could derive the below wolfram alpha output for me.
I was interested in the following system of equations:
\begin{align} &\cos(\omega_1t)-\cos(\omega_2t)=0\\ &\sin(\omega_1t)-\sin(\omega_2t)=0 \end{align}
, where $\omega_1$ and $\omega_2$ are constants. The physical interpretation of this is two vectors in $\mathbb R^2$ that, at time $t=0$, are pointing to the location $(1,0)$ and rotating about the origin. I would like to know, given the different frequencies, at what times $t$ do the vectors lay directly on top of one another.
The output generated by wolfram alpha is:
$$t=\frac{2\pi n}{\omega_1-\omega_2} \text{ and $\omega_1 \neq \omega_2$ and $n \in \mathbb Z$}$$
I was able to derive this formula myself, but the method I used was not really computational, per say.
I reasoned that $t\omega_1-t\omega_2$ effectively tracks the difference in radians (starting at a phase of $0$) about the unit circle...and any time this difference equals an integer multiple of $2\pi$, we necessarily have that the vectors are laying on top of one another. Obviously, this is equivalent to wolfram alpha's output. However, my rationale for this solution is more of a visualization than a formal derivation. Could someone offer an explicit derivation?