Two real sequences $\{x\}$ and $\{y\}$ satisfy $$x_{n+2}=x_nx_{n+1}-y_ny_{n+1},$$ $$y_{n+2}=x_ny_{n+1}+y_nx_{n+1}.$$ Given $x_1=y_1=1/\sqrt 2$ and $x_2=y_2=1$, find closed forms of $x_n$ and $y_n$.
Since the equations look like sine cosine addition formulas (and the given values are common trig values), I guessed $x_n=\cos f(n)$ and $y_n=\sin g(n)$ for functions $f,g$. To obey the equations, it must be that $f(n)=g(n)=F(n)$ where $F$ satisfies the Fibonacci recurrence (with some chosen base case). These clearly satisfy the equations, but the base cases don't match because $x_2=y_2=1\implies \cos t=\sin t=1$ for some $t$ which is impossible.
Can they have any non-trig expression? What am I missing?
let us try $$z_n = x_n + iy_n, \quad z_nz_{n+1} =x_nx_{n+1}-y_ny_{n+1}+i(x_ny_{n+1} + x_{n+1}y_n) = z_{n+2} .$$ so we have the recurrence relation $$z_{n+2} = z_nz_{n+1}, z_0= e^{i\pi/4}, z_1 = \sqrt 2e^{i\pi/4}$$ the sequence of $z_n$ is $$e^{i\pi/4}, \sqrt2e^{i\pi/4}, \sqrt 2e^{i\pi/2}, 2e^{3i\pi/4}, 2\sqrt 2e^{5i\pi/4}, 4\sqrt 2, 16e^{5i\pi/4}, 64\sqrt 2e^{5i\pi/4}, \cdots $$
$\bf p. s.$ on the suggestion of michael galuza, you get an easier fibonacci recurrence relation for the sequence $u_n = \ln(z_n).$ we have $$u_{n+2} = u_n+u_{n+1}, u_0 = i\pi/4, u_1 = \ln(2)/2+i\pi/2. $$ therefore the sequence $u_n$ is $$ i\pi/4, \ln(2)/2+i\pi/2, 3i\pi/4+\ln(2)/2, \ln(2) + 5i\pi/4, 3\ln(2)/2, \cdots$$