MathLabs

Problem 2

Let P1(x)=x2−2P_1(x) = x^2 - 2 and Pj(x)=P1(Pj−1(x))P_j(x) = P_1(P_{j-1}(x)) for j=2,3,…j = 2, 3, \ldots. Prove that, for any positive integer nn, the roots of the equation Pn(x)=xP_n(x) = x are all real and distinct.
Step 5 of 6: Count distinct values of x=2cos⁡θx=2\cos\theta in [0,π][0,\pi]
In plain words

Counting solutions to a trigonometric equation always requires fixing a fundamental domain first; choosing [0,π][0,\pi] here matches exactly how cos⁡\cos behaves as a bijection, which is what makes an exact count possible.

2n−1+(2n−1+1)−1=2n2^{n-1} + \big(2^{n-1}+1\big) - 1 = 2^n
Detailed analysis

Since cos⁡θ\cos\theta takes each value exactly once for θ∈[0,π]\theta\in[0,\pi], restrict to this range to avoid double-counting: this gives 0≤k≤2n−1−120\le k\le 2^{n-1}-\tfrac12, i.e. 2n−12^{n-1} integer values of kk, and 0≤l≤2n−1+120\le l\le 2^{n-1}+\tfrac12, i.e. 2n−1+12^{n-1}+1 integer values of ll. The two families overlap only at θ=0\theta=0 (from k=0k=0 and l=0l=0), so the total number of distinct angles θ∈[0,π]\theta\in[0,\pi], and hence distinct values x=2cos⁡θx=2\cos\theta, is 2n−1+(2n−1+1)−1=2n2^{n-1}+(2^{n-1}+1)-1=2^n.