If you know x+1xx + \frac{1}{x}x+x1, every higher power follows from two identities: x2+1x2=(x+1x)2−2x^2 + \frac{1}{x^2} = \left(x + \frac{1}{x}\right)^2 - 2x2+x21=(x+x1)2−2 and x3+1x3=(x+1x)3−3(x+1x)x^3 + \frac{1}{x^3} = \left(x + \frac{1}{x}\right)^3 - 3\left(x + \frac{1}{x}\right)x3+x31=(x+x1)3−3(x+x1).
Cubing x+1xx + \frac{1}{x}x+x1 and forgetting to subtract 3(x+1x)3\left(x + \frac{1}{x}\right)3(x+x1)
Step down to t=x+1xt = x + \frac{1}{x}t=x+x1 first, then use x3+1x3=t(t2−3)x^3 + \frac{1}{x^3} = t(t^2 - 3)x3+x31=t(t2−3).