x+x^(-1)=a
{x+x^(-1)}^2=a^2
x^2+x^(-2)+2=a^2
x^2+x^(-2)=a^2-2
(x^2+x^(-2)}^2=(a^2-2)^2
x^4+x^(-4)+2=a^4-4a^2+4
x^4+x^(-4)=a^4-4a^2+2
x+x^(-1)=a
{x+x^(-1)}^2=a^2
x^2+x^(-2)+2=a^2
x^2+x^(-2)=a^2-2
(x^2+x^(-2)}^2=(a^2-2)^2
x^4+x^(-4)+2=a^4-4a^2+4
x^4+x^(-4)=a^4-4a^2+2