I am trying to solve the following exercise:
Show that the signal $x_n = A\cos(\omega n)$ can be fully predicted by a system with two weights $w_1,w_2$ (i.e. $x_n = w_1 x_{n-1} + w_2 x_{n-2}$). Find $w_1,w_2$.
Some ideas came up but, even if they are right, I can't seem to order them in the right direction:
I can see that $x'' = -\omega^2x$. Does it connected somehow to what is asked?
I guess it has something to do with stationary signals. If yes, how can I prove that this signal is stationary? (Also, somehow I can't find in the internet a clear definition of "stationary signal". Just vage ideas like "not depended on time". What does this mean mathematically for a signal to be "not depended on time"?)
Maybe it is concerned with some trigonometry of this form: $$ x_{n+2} = A\cos((n+2)\omega) = A\cos(n\omega + 2\omega) = A\cos(n\omega)\cos(2\omega) - A\sin(n\omega)\sin(2\omega) = B\cos(n\omega) + C\sin(n\omega)$$ I could go on with this development but I am realy not sure what am I looking for..
Any help? Thanks!
It's a linear system, and you can calculate all the $x_i$, so
$$ \left[ \begin{array}{cc} x_{n-1} & x_{n-2} \\ x_{n-2} & x_{n-3} \end{array} \right] \left[ \begin{array}{c} w_{1} \\ w_{2} \end{array} \right] = \left[ \begin{array}{c} x_{n} \\ x_{n-1} \end{array} \right]. $$
To be robust, I'd try to show that the matrix is always full-rank and, thus, $w_1$ and $w_2$ can always be found. To that, all you have to do is show that the determinant is not zero, thus
$$ x_{n-1} x_{n-3} - x_{n-2} x_{n-2} \neq 0. \\ \Rightarrow \cos(\omega(n-1)) \cos(\omega(n-3)) - \cos^2( \omega(n-2)) \neq 0 $$
After simplifying, I get the condition that $\cos(2\omega) - 1 \neq 0$, which means only when $\omega = k\pi$, $k\in\mathbb{Z}$ will the determinant be zero. You can handle this case separately with induction.