[step:Extend to general rational functions $r$ without poles in $U$]
Let $r = p/q$ with $p, q \in \mathbb{C}[z]$, $q$ having no zeros in $U$. We must show $\Theta_x(r) = r(x)$, where $r(x) := p(x)\, q(x)^{-1}$.
**Defining $r(x)$.** Since $q$ has no zeros in $U$ and $\sigma_A(x) \subset U$, $q(\sigma_A(x))$ does not contain $0$. By the [Spectral Mapping Theorem for Polynomials](/theorems/2671) applied to the polynomial $q$ and the element $x \in A$, $\sigma_A(q(x)) = q(\sigma_A(x))$. Hence $0 \notin \sigma_A(q(x))$, so $q(x) \in A$ is invertible, and $r(x) := p(x)\, q(x)^{-1}$ is a well-defined element of $A$. The hypothesis required by theorem 2671 — that $q$ is a polynomial in a single variable with complex coefficients and $x \in A$ — is satisfied.
**Polynomial identity.** Consider the bivariate polynomial
\begin{align*}
P(z, w) := p(z)\, q(w) - p(w)\, q(z) \in \mathbb{C}[z, w].
\end{align*}
For each fixed $w$, the polynomial $z \mapsto P(z, w)$ vanishes at $z = w$ (since $P(w, w) = 0$), so $z - w$ divides $P(z, w)$ as polynomials in $z$ over $\mathbb{C}[w]$. Therefore there exists a polynomial $S \in \mathbb{C}[z, w]$ with
\begin{align*}
p(z)\, q(w) - p(w)\, q(z) = (z - w)\, S(z, w).
\end{align*}
Setting $w = x$ (substituting the algebra element into the polynomial $S$, which is well-defined since $A$ is a commutative algebra and $S$ is a polynomial in two commuting variables), we obtain in $A$
\begin{align*}
p(z)\, q(x) - p(x)\, q(z) = (z\cdot 1 - x)\, S(z, x). \tag{$\ddagger$}
\end{align*}
Multiply both sides of ($\ddagger$) on the left by $q(z)^{-1} q(x)^{-1}$ (valid because $q(z) \ne 0$ for $z \in [\Gamma] \subset U$ and $q(x)$ is invertible):
\begin{align*}
\frac{p(z)}{q(z)} - \frac{p(x)q(x)^{-1}}{1}\cdot \frac{q(z)}{q(z)}\cdot \frac{q(x)^{-1}}{q(x)^{-1}} \cdot q(x) = (z \cdot 1 - x)\, S(z, x)\, q(z)^{-1}\, q(x)^{-1}.
\end{align*}
Cleaning up (using commutativity of $A$ and $q(x)^{-1}q(x) = 1_A$), this simplifies to
\begin{align*}
r(z)\cdot 1_A - r(x) = (z \cdot 1 - x)\, S(z, x)\, q(z)^{-1}\, q(x)^{-1}. \tag{$\sharp$}
\end{align*}
**Compute $\Theta_x(r)$ via ($\sharp$).** Multiply ($\sharp$) on the right by $(z \cdot 1 - x)^{-1}$:
\begin{align*}
r(z)\, (z \cdot 1 - x)^{-1} - r(x)\, (z \cdot 1 - x)^{-1} = S(z, x)\, q(z)^{-1}\, q(x)^{-1}.
\end{align*}
Integrate around $\Gamma$ and divide by $2\pi i$:
\begin{align*}
\Theta_x(r) - r(x)\, \Theta_x(\mathbb{1}_U) = \frac{1}{2\pi i}\int_\Gamma S(z, x)\, q(z)^{-1}\, q(x)^{-1}\, dz.
\end{align*}
The right-hand side is the $A$-valued contour integral of an $A$-valued function $G(z) := S(z, x)\, q(z)^{-1}\, q(x)^{-1}$, which is analytic on $U$: $z \mapsto S(z, x)$ is a polynomial in $z$ with $A$-coefficients (analytic on all of $\mathbb{C}$), $z \mapsto q(z)^{-1}$ is a scalar holomorphic function on $U$ (since $q$ has no zeros in $U$), and $q(x)^{-1} \in A$ is a constant. Hence $G : U \to A$ is analytic. Apply the [Vector-Valued Cauchy Theorem](/theorems/2683) to $G$ on $U$ with the cycle $\Gamma$. Theorem 2683 requires (a) $U$ open (given), (b) $G : U \to A$ analytic (just verified), and (c) $n(\Gamma, \omega) = 0$ for $\omega \notin U$ (given by hypothesis on $\Gamma$). It yields
\begin{align*}
\int_\Gamma G(z)\, dz = 0_A.
\end{align*}
Combined with the previous step ($\Theta_x(\mathbb{1}_U) = 1_A$),
\begin{align*}
\Theta_x(r) - r(x) \cdot 1_A = 0_A, \qquad \text{i.e.\ } \Theta_x(r) = r(x).
\end{align*}
[/step]