The task is: if $x+ \frac{1}{x}= 1$ find $x^5 + \frac{1}{x^5} $.
I used the binomial formula and proved that $x^5 + \frac{1}{x^5} = 1$, but I have a question about following method, I am not sure if it's correct. If I take square of the the first equality, I get: $x^2 +2 + \frac{1}{x^2} = 1$ so $x^2 +\frac{1}{x^2} = -1$. Now, the sum of 2 squares is nonnegative and the right side is negative, so when I come to this part does it mean that this method is wrong?
In general, when proving such equalities, when are we allowed to take square (and we don't know if one side of equality is positive as in this task)? Thanks in advance.