$\textbf{Question:}$ Prove that $$\frac{1}{2}+\cos\frac{2\pi}{11}+\cos\frac{4\pi}{11}=\frac{1}{4\sin\frac{\pi}{22}}$$
$\textbf{My Attempt:}$
Let $z= e^{\frac{i\pi}{22}}$ then the given relation will simplify out to $$z^{18}-z^{16}+z^{14}-z^{12}+z^{10}-z^9-z^{8}+z^{6}-z^4=0$$ $$z^{14}-z^{12}+z^{10}-z^{8}+z^{6}-z^5-z^{4}+z^{2}-1=0$$ Now I am not getting how to proceed further by this approach so I switched to another approach i.e. multiply out the whole expression and then open it using product of trigonometric ratio rules as follows:
$$2\sin\frac{\pi}{22}+2\left(\sin\frac{5\pi}{22}-\sin\frac{3\pi}{22}\right)+2\left(\sin\frac{9\pi}{22}-\sin\frac{7\pi}{22}\right)=1$$ which also seems like a dead end to me, so if anyone has insights on how to proceed further please help me out...
Let $z = e^{i\pi/22}$, then following your first approach,
$$\begin{align*} &&\frac 12 + \cos \frac{2\pi}{11} + \cos \frac{4\pi}{11} &= \frac{1}{4\sin \frac\pi{22}}\\ &\iff &\frac12\left(z^0 + z^4 + z^{-4} + z^8 + z^{-8}\right) &= \frac{2i}{4\left(z-z^{-1}\right)}\\ &\iff &\left(z^{-7} + z^{-3} + z^1 + z^5+ z^9\right)-\left(z^{-9} + z^{-5} + z^{-1} + z^3+ z^7\right) - i &= 0\\ &\iff &-z^{-9}\cdot\frac{1-\left(-z^{2}\right)^{11}}{1-\left(-z^{2}\right)} &= 0\\ &\iff &-z^{-9}\cdot\frac{1+z^{22}}{1+z^{2}} &= 0\\ &\iff &-z^{-9}\cdot\frac{0}{1+z^{2}} &= 0\\ \end{align*}$$
Similar to your first approach, by converting the left-hand side to a geometric sum,
$$\begin{align*} LHS &= \frac 12 + \cos \frac{2\pi}{11} + \cos \frac{4\pi}{11}\\ &= \frac12\left(z^0 + z^4 + z^{-4} + z^8 + z^{-8}\right)\\ &= \frac{z^{-8}}2\cdot\frac{\left(z^4\right)^5-1}{z^4-1}\\ &= \frac{1}2\cdot\frac{z^{12}-z^{-8}}{\left(z^{2}-1\right)\left(z^2+1\right)}\\ &= \frac{1}2\cdot\frac{z^{11}-z^{-11}z^2}{\left(z-z^{-1}\right)\left(z^2+1\right)}\\ &= \frac{1}2\cdot\frac{i}{z-z^{-1}}\\ &= \frac{1}{2\cdot2\sin\frac{\pi}{22}}\\ &= RHS \end{align*}$$