How to write $x^m+x^{-m}$ as a polynomial in $x+x^{-1}$. I did find this question Proving that $x^m+x^{-m}$ is a polynomial in $x+x^{-1}$ of degree $m$. but it only shows by induction that this is possible, not the actual form of the solution. How, for example, would you write $x^2+x^{-2}$ in a polynomial of $x+x^{-1}$?

The inductive argument does tell you how to do this - and, it's worthwhile to see that induction very often gives you the answers you are after, especially since the fact that inductive proofs can be unrolled is often overlooked.
In the linked answer, it is noted that
$$x^{k+1}+x^{-k-1} = (x^k +x^{-k})(x+x^{-1}) - (x^{k-1} + x^{-k+1}).$$
and an inductive argument is built from this, but remember that the inductive hypothesis is just that, for each $k$, there exists some polynomial $P_k$ such that $P_k(x+x^{-1})= x^k+x^{-k}$. If we fill out the proof more completely, the implication here is that
$$x^{k+1}+x^{-k-1} = P_k(x+x^{-1})\cdot (x+x^{-1}) - P_{k-1}(x+x^{-1}).$$
And then we see that the left hand side is a polynomial in $x+x^{-1}$ as well - but we can be more explicit: Let
$$P_{k+1}(z)=zP_k(z)-P_{k-1}(z)$$
where we start the sequence as $P_0(z)=2$ and $P_1(z)=z$. Then, we have
$$P_k(x+x^{-1})=x^k+x^{-k}$$
due to the inductive argument. Note that this sequence is very easy to compute incrementally:
$$P_2(z)=z\cdot P_1(z) - P_0(z) = z^2 - 2$$
$$P_3(z)=z\cdot P_2(z) - P_1(z) = z^3 - 3z$$
$$P_4(z)=z\cdot P_3(z) - P_2(z) = z^4 - 4z^2 + 2$$
and so on.

As pointed out in the comments, it is possible to write these terms in a general form, although it's a bit surprising that the form you get is actually a polynomial. I won't go into details, since I'm using the usual tools for solving linear homogenous recurrences:
$$P_k(z) = \frac{\left(z - \sqrt{z^2-4}\right)^k + \left(z + \sqrt{z^2-4}\right)^k}{2^k}$$
Note that the $\sqrt{z^2-4}$ terms cancel out due to the symmetry of the sum and this does always leave a polynomial.
(I also think this sequence has a name, but I don't know what it is)
