my aim is to show that the $n$-Torus $T^n = S^1 \times \ldots \times S^1$ can be embedded into $\mathbb{R}^{n+1}$ by giving a function $f: \mathbb{R}^{n+1} \rightarrow \mathbb{R}$ such that the Torus is described by all points satisfying $\ f(x_1,\ldots,x_n)=0$. This is quite simple in the two dimensional case with the equation $(\sqrt{x^2+y^2}-R)^2+z^2=r^2$. Trying to find a similar equation for higher dimensions i was starting with a parametric description of $T^3$ and then tried to eliminate the parameters in order to get a implicit description. But already in this case it got extremely messy with a lot of case distinctions (since $\sin$ and $\cos$ can't be inverted at once for the whole interval of the parameters $(0,2\pi)$).
So does anybody know a more elegant way to achieve an implicit description of $T^3$ and eventually $T^n$ or is there just none?