Fix a differential commutative ring $(A, d_A)$, and a multiplicative set $S$ in $A$. Suppose that $C_A = \{a \in A \mid d_A(a) = 0\}$.
Let $B = S^{-1}A$ and transfer the derivation $d_A$ to $B$, namely by $d_B$ (first define formally, on $A\times S$, $\tilde{d}(a,q):=(d_A(a).q-a.d_A(q),q^2)$ and pass to the quotients to get $d_B$). Denote $C_B = \{b \in B \mid d_B(b) = 0\}$.
For example, $A = \mathbb{Q}[x, y]$ and $d_A = \dfrac{d}{dx}$. Then $C_A = \mathbb{Q}[y]$. Nextly, we take $S = \mathbb{Q}[x, y] \setminus \{0\}$ then $B = Frac(A) = \mathbb{Q}(x,y)$. Moreover, $C_B = \mathbb{Q}(y) = Frac(\mathbb{Q}[y])$.
I'd like to know the way to determinate $C_B$ in the general case. Is it $Frac(C_A)$ as in the above example ?
And if it is not true, then when is this right ? Thank you so much for your hints.