Consider two numbers, one is $a + b \zeta_8 + ci + d(\zeta_8)^3$, the other is $\alpha + \beta \zeta_8 + \gamma i + \delta(\zeta_8)^3 \neq 0$. How do I compute $$\frac{a + b \zeta_8 + ci + d(\zeta_8)^3}{\alpha + \beta \zeta_8 + \gamma i + \delta(\zeta_8)^3}?$$ I know that $$\frac{a + bi}{c + di} = \frac{ac + bd}{c^2 + d^2} + \frac{bc - ad}{c^2 + d^2}i.$$
I tried to work out a similar formula for the division in $\textbf Q(\zeta_8)$ but wound up in a hopeless mess that I won't bother to type here. It's no problem for me to calculate a numerical approximation, but how do I get an algebraic expression $$\frac{a + b \zeta_8 + ci + d(\zeta_8)^3}{\alpha + \beta \zeta_8 + \gamma i + \delta(\zeta_8)^3} = \epsilon + \eta \zeta_8 + \theta i + \kappa(\zeta_8)^3$$ such that $\epsilon, \eta, \theta, \kappa \in \textbf Q$?
The equation $N(z) = z \bar{z}$ with $N: \mathbf{Q}(i) \to \mathbf{Q}$ which implies $$\frac{1}{z} = \frac{\bar{z}}{N(z)}$$ generalizes to Galois extensions $L/K$: there is a field norm $$N_{L/K}(z) = \prod_{\sigma\in\operatorname{Gal}(L/K)} \sigma(z)\qquad \text{ with } \quad N_{L/K} : L \to K,$$ which implies $$\frac{1}{z} = \frac{w}{N_{L/K}(z)} \qquad \text{ where } \quad w = \prod_{\operatorname{id}\neq\sigma\in\operatorname{Gal}(L/K)} \sigma(z)\bigg.$$
In this case we have $L=\mathbf{Q}(\zeta_8)$, $K=\mathbf{Q}$, the minimum polynomial of $\zeta_8$ is $X^4 + 1$, and $$\operatorname{Gal}(L/K) = \{\zeta_8\mapsto\zeta_8,\ \ \zeta_8\mapsto\zeta_8^3,\ \ \zeta_8\mapsto\zeta_8^5 = -\zeta_8,\ \ \zeta_8\mapsto\zeta_8^{7} = -\zeta_8^3\}.$$
So for $z= \alpha+\beta\zeta_8+\gamma\zeta_8^2+\delta\zeta_8^3$ you have the pleasure of doing this calculation.
To save time we can do the calculation in SageMath:
From the values of
w_vectandNwe see $$w = (a^3 - b^2c + ac^2 + 2abd + cd^2) + (-a^2b + bc^2 - b^2d - 2acd - d^3)\zeta_8 + (ab^2 - a^2c - c^3 + 2bcd - ad^2)\zeta_8^2 + (-b^3 + 2abc - a^2d + c^2d - bd^2)\zeta_8^3$$ and $N_{\mathbf{Q}(\zeta_8)/\mathbf{Q}}(z) = a^4 + b^4 - 4ab^2c + 2a^2c^2 + c^4 + 4a^2bd - 4bc^2d + 2b^2d^2 + 4acd^2 + d^4.$Let's check to be sure:
An example, as requested by Mr. Brooks: to calculate $\frac{\zeta_8-\zeta_8^3}{\zeta_8+\zeta_8^3}$ we put $z = \zeta_8+\zeta_8^3$ and compute $$\begin{align*}w &= (\zeta_8^3+\zeta_8^9)(-\zeta_8-\zeta_8^3)(-\zeta_8^3-\zeta_8^9)\\ &= (\zeta_8+\zeta_8^3)^3\\&=\zeta_8^3 + 3\zeta_8^2\zeta_8^3 + 3\zeta_8\zeta_8^6 + \zeta_8^9\\&= \zeta_8^3 - 3\zeta_8 - 3\zeta_8^3 + \zeta_8\\ &= -2(\zeta_8 + \zeta_8^3)\end{align*}$$ and $$N_{L/K}(z) = wz = -2(\zeta_8 + \zeta_8^3)^2 = -2(\zeta_8^2 + 2\zeta_8\zeta_8^3 + \zeta_8^6) = -2(\zeta_8^2 - 2 - \zeta_8^2) = 4$$ so $$\frac{1}{z} = \frac{w}{N_{L/K}(z)} = -\frac{1}{2}(\zeta_8+\zeta_8^3).$$ (This is the same as putting $(a,b,c,d) = (0,1,0,1)$ in the formulae above.)
Finally: $$\frac{\zeta_8-\zeta_8^3}{\zeta_8+\zeta_8^3} = (\zeta_8-\zeta_8^3)\cdot\frac{1}{z} = -\frac{1}{2}(\zeta_8-\zeta_8^3)(\zeta_8+\zeta_8^3) = -\frac{1}{2}(\zeta_8^2 - \zeta_8^6) = -\zeta_8^2.$$
All the above holds in an abstract number field $L= \mathbf{Q}(\zeta_8)$ where $\zeta_8$ is a root of $X^4+1$. If you choose the embedding $L\to\mathbb{C}$ given by $\zeta_8 \mapsto \exp(2\pi i/8)$ then e.g. the example computes $$\frac{\sqrt{2}}{\sqrt{-2}} = -i.$$