More Questions from Mathematical Analysis by Apostol I was solving the exercise questions of the book "Mathematical Analysis - 2nd Edition" by Tom Apostol and I came across the questions mentioned below. While I was able to solve a few questions, the others I did not even get any hint of!
1.
(a) By equating imaginary parts in DeMoivre's Formula prove that
$$\sin {n\theta} = \sin^n\theta \left\lbrace \binom{n}{1} \cot^{n - 1}\theta - \binom{n}{3} \cot^{n - 3}\theta + \binom{n}{5} \cot^{n - 5}\theta - + \cdots \right\rbrace$$
(b) If $0 < \theta < \dfrac{\pi}{2}$, prove that
$$\sin{\left( 2m + 1 \right)\theta} = \sin^{2m+1}\theta . P_m\left( \cot^2 \theta \right)$$
where $P_m$ is the polynomial of degree $m$ given by
$$P_m(x) = \binom{2m + 1}{1} x^m - \binom{2m + 1}{3} x^{m - 1} + \binom{2m + 1}{5} x^{m - 2} - + \cdots$$
Use this to show that $P_m$ has zeros at $m$ distinct points $x_k = \cot^2 \left( \dfrac{k\pi}{2m + 1} \right)$ for $k = 1, 2, \dots, m$.
(c) Show that the sum of zeros of $P_m$ is given by
$$\sum\limits_{k = 1}^{m} \cot^2 \dfrac{k\pi}{2m + 1} = \dfrac{m \left( 2m - 1 \right)}{3}$$
and that the sum of there squares is given by
$$\sum\limits_{k = 1}^{m} \cot^4 \dfrac{k\pi}{2m + 1} = \dfrac{m\left( 2m - 1 \right) \left( 4m^2 + 10m - 9 \right)}{45}$$


*Prove that $z^n - 1 = \prod\limits_{k = 1}^{n} \left( z - e^{\dfrac{2ki\pi}{n}} \right)$ for all complex $z$. Use this to derive the formula
$$\prod\limits_{k = 1}^{n - 1} \sin \dfrac{k\pi}{n} = \dfrac{n}{2^{n - 1}}$$


As far as the solutions are concerned, I am through with the 1st part of 1st question and even half of the second part. But, in the second question, proving the zeros and their sum (and the sum of their squares) is getting really difficult. I am not getting any sort of hint as to how to prove it further.
And for the second question, I could do the first half part since it was essentially finding the $n$ roots of unity. But for the second part, I have nearly proved everything but what was asked. Many times I came to the conclusion that $$\prod\limits_{k = 1}^{n} \sin \dfrac{k\pi}{n} = 0$$ which is obvious because at $k = n$, we have a term of $\sin \pi$ which is equal to $0$. I am not getting how to remove that last term from the product using the result we just proved above!
Help will be appreciated!
 A: With the 2nd question, 2nd part, you are asked to
$$z^n - 1 = \prod\limits_{k = 1}^{n} \left( z - e^{\dfrac{2ki\pi}{n}} \right) \Rightarrow \prod\limits_{k = 1}^{n - 1} \sin \dfrac{k\pi}{n} = \dfrac{n}{2^{n - 1}}$$
Note that when $k=n$ 
$$e^{\frac{2ki\pi}{n}}=e^{2i\pi}=1$$
also
$$z^n-1=(z-1)(z^{n-1}+z^{n-2}+z^{n-3}+...+z^2+z+1)$$
altogether
$$\color{red}{(z-1)}(z^{n-1}+z^{n-2}+z^{n-3}+...+z^2+z+1)=\color{red}{(z-1)}\prod\limits_{k = 1}^{n-1} \left( z - e^{\frac{2ki\pi}{n}} \right)$$
which is
$$z^{n-1}+z^{n-2}+z^{n-3}+...+z^2+z+1=\prod\limits_{k = 1}^{n-1} \left( z - e^{\frac{2ki\pi}{n}} \right)$$
and substituting $z=1$
$$n=\prod\limits_{k = 1}^{n-1} \left( 1 - e^{\frac{2ki\pi}{n}} \right)=
\prod\limits_{k = 1}^{n-1} e^{\frac{ki\pi}{n}} \left( e^{-\frac{ki\pi}{n}} - e^{\frac{ki\pi}{n}} \right)=\\
(2i)^{n-1} (-1)^{n-1} \cdot \prod\limits_{k = 1}^{n-1} e^{\frac{ki\pi}{n}} \left(\frac{ e^{\frac{ki\pi}{n}} - e^{-\frac{ki\pi}{n}}}{2i} \right)=\\
2^{n-1} (-i)^{n-1} \cdot \prod\limits_{k = 1}^{n-1} e^{\frac{ki\pi}{n}} \sin{\left(\frac{k\pi}{n}\right)}=\\
2^{n-1} (-i)^{n-1} e^{\sum\limits_{k=1}^{n-1}\frac{ki\pi}{n}} \cdot \prod\limits_{k = 1}^{n-1} \sin{\left(\frac{k\pi}{n}\right)}=\\
2^{n-1} (-i)^{n-1} e^{\frac{i\pi}{n}\frac{n(n-1)}{2}} \cdot \prod\limits_{k = 1}^{n-1} \sin{\left(\frac{k\pi}{n}\right)}=\\
2^{n-1} (-i)^{n-1} i^{n-1} \cdot \prod\limits_{k = 1}^{n-1} \sin{\left(\frac{k\pi}{n}\right)}=2^{n-1} \cdot \prod\limits_{k = 1}^{n-1} \sin{\left(\frac{k\pi}{n}\right)}$$
A: Way late, but here are hints for the 1st question:
1(b) Having proved that
$$\sin{\left( 2m + 1 \right)\theta} = \sin^{2m+1}(\theta) P_m\left( \cot^2 \theta \right),$$
we observe that the LHS is zero for $\theta_k:=\frac{k\pi}{2m+1}$, $k=1\ldots m$. Check that these $\theta$'s take $m$  distinct values, and lie between $0$ and $\frac\pi2$, so $\sin(\theta_k)>0$ for all $k$, hence $x_k:=\cot^2(\theta_k)$, $k=1,\ldots m$, are points where the polynomial $P_m$ is zero. Since $\cot^2$ is one-to-one on the interval $(0,\frac\pi2)$, conclude the $x_k$ are distinct and therefore they are the $m$ zeros of $P_m$.
1(c) If you've determined that the roots of the $m$th degree polynomial
$$f(x):=a_m x^m + a_{m-1} x^{m-1} +\cdots+a_2 x^2 + a_1x + a_0$$
are $r_1, r_2,\ldots, r_m$, then you have the equality
$$
a_m(x-r_1)(x-r_2)\cdots (x-r_1)=f(x).
$$
Expand out the LHS and match coefficients on $x^{m-1}$ to deduce
$$
r_1 + r_2 +\cdots+r_m = -\frac{a_{m-1}}{a_m}.
$$
This is the first of Vieta's formulas. By matching coefficients on $x^{m-2}$, deduce the second Vieta formula, involving the sum of all products of the form $r_ir_j$ where $i\ne j$. How can you combine these two formulas to obtain $\sum r_i^2$? If you're not seeing it, try playing with these formulas for a few small values of $m$, say $m=3$ or $m=4$.
