X + X's negative power = a find the value of X's second power + X's negative power I'm in a hurry

X + X's negative power = a find the value of X's second power + X's negative power I'm in a hurry

x+1/x=a,
x^2+1/x^2
=(x^2+2+1/x^2)-2
=(x+1/x)^2-2
=a^2-2