Prove that $$\cos\left(\frac{\pi z}{4}\right)-\sin\left(\frac{\pi z}{4}\right)=\prod_{n=1}^\infty\left(1+\frac{(-1)^nz}{2n-1}\right)$$
My try: $$\cos\left(\frac{\pi z}{4}\right)-\sin\left(\frac{\pi z}{4}\right)=\cos\left(\frac{\pi z}{4}\right)-\cos\left(\frac{\pi}{2}-\frac{\pi z}{4}\right)=-\sqrt{2}\sin\left(\frac{\pi z-\pi}{4}\right) $$ Now, substitute the expression of the $\sin(\pi z)$ and get $$\cos\left(\frac{\pi z}{4}\right)-\sin\left(\frac{\pi z}{4}\right)=-\sqrt{2}\pi\left(\frac{z-1}{4}\right)\prod_{n=1}^\infty\left(1-\frac{(z-1)^2}{16n^2}\right).$$ How should I proceed now?