Given a polynomial series $\{p_n(x)\}_{n=1}^{\infty}$ in $\mathbb{R}[X]$ with initial value $p_1(x)=x^2-2$. And $p_k(x)=p_1(p_{k-1}(x))=p_{k-1}(x)^2-2,\;k=2,3,\cdots$.
Prove that for each integer $n$, all roots of $p_n(x)-x$ are real and distinct.
This is an problem in my linear algebra textbook. I tried to figure out the relation of the roots between adjacent polynomial, but I couldn't find any useful result. Also I thought if it could be solved by induction, but it seems impracticable.
Hint:
Observe that $-2 \le P_1(x) \le 2$ for all $-2\le x\le 2$ and both its roots lie in the same interval. This property becomes obvious by substitution $x=2\cos t$ which maps interval $t\in[0,\pi]$ onto $x\in[-2,2]$.
We have: $$ P_1(2\cos t)=(2\cos t)^2-2=4\frac{1+\cos 2t}{2}-2=2\cos 2t. $$
Similarly by induction: $$ P_n(2\cos t)=2\cos 2^n t. $$
Thus the polynomial $P_n(x)$ has exactly $2^{n}$ roots on the interval $(-2,2)$: $$ \xi_k=2\cos\frac{2k-1}{2^{n+1}}\pi,\quad k=1\dots 2^n. $$ Besides the polynomial has alternating $2^{n-1}+1$ maxima $P(\xi_k^\text{max})=2$ at $$ \xi_k^\text{max}=2\cos\frac{2k}{2^n}\pi,\quad k=0\dots 2^{n-1} $$ and $2^{n-1}$ minima $P(\xi_k^\text{min})=-2$ at $$ \xi_k^\text{min}=2\cos\frac{2k-1}{2^n}\pi,\quad k=1\dots 2^{n-1}. $$ Note that the maxima at $x=-2$ and $x=2$ are not necessary the extreme points of the polynomial $P_n(x)$, they are just its values at the boundaries of the interval $[-2,2]$.
Note also that as the order of the polynomial $P_n(x)$ is $2^n$ we have found all the roots of the polynomial.
What remains is to prove that the function $Q(x)=x$ intersects the curve described above in exactly $2^n$ points. For this observe that on the interval $(-2,2)$ the graph of $P_n(x)$ consists of $2^n$ parts connecting adjacent maxima and minima. (Note that in fact $Q(x)$ can be any polynomial of order less than $2^n$ such that $-2<Q(x)<2$ for any $-2<x<2$.)