Ta có:
$- \sin\frac{\pi }{12} \tan\frac{\pi }{12}\tan\frac{\pi }{24}=-2\sin^2\frac{\pi}{24}\tan\frac{\pi }{12}=\left ( \cos\frac{\pi }{12}-1 \right )\tan\frac{\pi }{12}=\sin\frac{\pi }{12}-\tan\frac{\pi }{12}$
Do đó $M=\cot\frac{\pi }{12} - \sin\frac{\pi }{12}(1 + \tan\frac{\pi }{12}\tan\frac{\pi }{24})\\=\cot\frac{\pi }{12} - \sin\frac{\pi }{12}+\sin\frac{\pi }{12}-\tan\frac{\pi }{12}\\=\frac{1-\tan^2\frac{\pi }{12}}{\tan\frac{\pi }{12}}$
Nhớ lại công thức nhân đôi $\tan2a=\frac{2\tan a}{1-\tan^2a}$, áp dụng vào:
$\Rightarrow M=\frac{1-\tan^2\frac{\pi }{12}}{\tan\frac{\pi }{12}}=\frac{2}{\tan\frac{\pi}{6}}=2\sqrt3$