This is exercise 4.2.1 of Smith's "Algebraic Geometry" - I have tried to look for a previous question, but cannot find any (probably because it is very easy, yet I am stuck on what I think is the final step).
The setup: $X$ is an affine variety, $f$ a function in $\mathbb{C}[X]$ such that $f \not \equiv 0$ on $X$. We want $f$ to be invertible in $\mathbb{C}[X]$.
What I have so far is that the distinguished open subset $D(f)$ defined to be $X\setminus V(f)$ is equal to $X$ itself. If we let $X = V(F_1, \cdots, F_r)$, then we have $X \cong V(F_1, \cdots, F_r, zf-1) \subseteq \mathbb{A}^{n+1}$ where $z$ denotes the $n+1$-th coordinate.
Hence we can express $zf-1$ as some combination of the $F_1, \cdots, F_r$, i.e. $zf-1 = 0$ in the quotient ring $\mathbb{C}[X]$, and so $f$ is invertible. My only concern is that $z$ is not itself a polynomial in $x_1, \cdots, x_n$, so I don't think this final statement actually makes any sense. On the other hand, I believe this is the correct direction to be working in.
The 'easy' way out is to note that $\mathbb{C}[X] \cong \mathbb{C}[X][\frac{1}{f}]$ in this setup, after which it is clear that $1/f \in \mathbb{C}[X]$. But I want something preferably a bit more explicit, though I'm not sure if such an answer even exists.