Show that the recurrence relation $$x_n=2x_{n-1}+x_{n-2}$$ has a general solution of the form $$x_n=A\lambda^n+B\mu^n.$$ Is the recurrence relation a good way to compute $x_n$ from arbitrary initial values $x_0$ and $x_1$?
Proof: Suppose we are given the following recurrence relation $$x_n=2x_{n-1}+x_{n-2}.$$ We want to show that this relation has a general solution of the form $$x_n=A\lambda^n+B\mu^n.$$
The corresponding characteristic polynomial to the recurrence relation is $$p(\lambda)=\lambda^2-2\lambda-1=0 \iff p(\lambda)=\left(\lambda-(1+\sqrt{2})\right)\left(\lambda-(1-\sqrt{2})\right)=0.$$ Hence the roots of the characteristic polynomial are $\lambda=1+\sqrt{2}$ and $\lambda=1-\sqrt{2}$. Hence the general solution for the relation is $$x_n=A(1+\sqrt{2})^n+B(1-\sqrt{2})^n,$$ where $\lambda=1+\sqrt{2}$ and $\mu=1-\sqrt{2}$.
Where I am stuck is determine whether or not this recurrence relation is a "good" way to compute $x_n$?