Suppose we are given a quadratic number field $\mathbb{Q}(\sqrt{d})$, for some integer $d$ which is not a perfect square. I wish to study when is an element $\alpha \in \mathbb{Q}(\sqrt{d})$ a perfect square, i.e. $\alpha = \beta^2$ for some $\beta \in \mathbb{Q}(\sqrt{d})$. Similarly, how to test whether an element $\alpha \in \mathbb{Q}(\sqrt{d})$ is a perfect cube, i.e. $\alpha = \beta^3$ for some $\beta \in \mathbb{Q}(\sqrt{d})$. I know the above questions reduce to solving appropriate quadratic/cubic equations over rationals but I am looking for a direct test similar to quadratic/cubic residuacity tests that we have for finite fields.
I have little to zero knowledge of algebraic number theory but I am willing to do the hard work. I am looking for books or resources (preferably beginner friendly) which deal with these two questions in detail. My gratitude in advance if anyone can point me in the right direction.
Since every algebraic number is the quotient of an algebraic integer and an ordinary integer, we can write every element as a quotient of an algebraic integer and a square number. This reduced the problem to elements of ${\mathbb Z}[\sqrt{m}]$.
A necessary condition for $\alpha$ to be a square is that its norm is a square; assume therefore that $N\alpha = \alpha \alpha' = m^2$ for an integer $n$.
Now we recall the ancient Babylonians' idea that you can compute two unknowns from their sum and their difference: \begin{align*} (\sqrt{\alpha} + \sqrt{\alpha'}\,)^2 & = \alpha + \alpha' + 2n, \\ (\sqrt{\alpha} - \sqrt{\alpha'}\,)^2 & = \alpha + \alpha' - 2n, \end{align*} Thus with $r = \sqrt{\alpha + \alpha' + 2n}$ and $s = \sqrt{\frac{\alpha + \alpha' - 2n}m}$ (if $s$ is not an integer, $\alpha$ is not a square) we have $$ \sqrt{\alpha} = \frac{r + s \sqrt{m}}2. $$
Example: Compute $\sqrt{\alpha}$ for $\alpha = 37 + 20 \sqrt{3}$. Here $N\alpha = 169 = 13^2$, and we find $r = \sqrt{74 + 2 \cdot 13} = 10$, $s = \sqrt{\frac{74 - 2\cdot 13}3} = 4$, hence $\sqrt{\alpha} = 5 + 2 \sqrt{3}$.
Of course you can test whether elements are squares by testing whether they are squares modulo suitably chosen ideals; if you choose to do so, this is best done without using any reciprocity law.
A necessary condition for $\alpha = r + s \sqrt{m}$ to be a cube is that its norm $\alpha \alpha' = n^3$ is the cube of an integer. In this case $$ (\sqrt[3]{\alpha} + \sqrt[3]{\alpha'})^3 = \alpha + \alpha' + 3n (\sqrt[3]{\alpha} + \sqrt[3]{\alpha'}). $$ For $\alpha$ to be a cube, this equation must have an integral root $2r$, which can be easily checked in a finite number of steps.
Next consider $\omega = \frac{\sqrt[3]{\alpha} - \sqrt[3]{\alpha'}}{\sqrt{m}}$; here $$ \omega^3 = \frac{\alpha - \alpha'}{m \sqrt{m}} + \frac{3n}{m} \omega, $$ and if $\alpha$ is a cube, this cubic must have an integral root $2s$.
Example: Let $\alpha = 100 + 51 \sqrt{3}$. Then $N\alpha = \alpha \alpha' = 13^3$, and $2r$ must be an integral root of $$ X^3 - 39X -200 = 0. $$ Since $X = 8$ is the only real root, we must have $2r = 8$, hence $r = 4$. Similarly, $2s$ is a root of $$ X^3 + 13X - 34 = 0, $$ and since $X = 2$ is the only real root we conclude that $s = 1$. In fact, $\sqrt[3]{100 + 51\sqrt{3}} = 4 + \sqrt{3}$.