For any integer $m>1$ evaluate the value of $P$:
$$P=\prod_{k=1}^{m-1} \cot{\dfrac{k\pi}{2m}}=\dfrac{\prod_{k=1}^{m-1} \cos{\dfrac{k\pi}{2m}}}{\prod_{k=1}^{m-1} \sin{\dfrac{k\pi}{2m}}}=?$$
I don't know how to proceed using complex number's basic properties (like $n$ roots of unity on polygon inscribed in unit circle) without contour integration or advance algebra… I'm class 12th student… I attempted the problem as follows:
My attempt:
we know that
$$\prod_{k=1}^{m-1} \sin{\dfrac{k\pi}{m}}=\dfrac{m}{2^{m-1}}$$
$$2^{m-1}\prod_{k=1}^{m-1} \sin{\dfrac{k\pi}{2m}} × \cos\dfrac{k\pi}{2m}=\dfrac{m}{2^{m-1}}$$
$$\prod_{k=1}^{m-1} \sin{\dfrac{k\pi}{2m}} × \cos\dfrac{k\pi}{2m}=\dfrac{m}{2^{2(m-1)}} $$ but after this step I got stuck because we want ratio of product of cosines and product of sines… and I got product of sines and cosines. I don't know how to relate further… I also tried telescoping series but it didn't work either… Any help will be appreciated, thank you…
Any other method is also welcome