Assume $k$ is a field and $x$ is transcendental over $k$. If $p(x)$ and $q(x)$ be relatively prime polynomials of $k[x]$ then I want to find the minimal polynomial of $x$ over $k\left(\dfrac{p(x)}{q(x)}\right)$.
If one of them be a constant then $[k(x):k(\dfrac{p}{q})]$ is degree of the other one and the minimal polynomial is $p(T)-p(x)$, if $p(x)$ is the non-constant one, $q(T)-q(x)$ if $q(x)$ is the non-constant one.
Now what I was going to do was this;
$\big(p(x),q(x)\big)=1\Longrightarrow \exists r(x),s(x)\in k[x]\text{ s.t. }r(x)p(x)+s(x)q(x)=1$
Then $r(T)\dfrac{p}{q}+s(T)=\dfrac{1}{q}$
So $[k(x):k(\dfrac{p}{q},\dfrac{1}{q})]=\max(\deg(p),\deg(q))$ but I am looking for minimal polynomial of $x$ over $k(\dfrac{p}{q})$ and $[k(x):k(\frac{p}{q})]$. I know that this extenction degree should be $\max(\deg(p),\deg(q))$ but I don't know its proof, also I want the minimal polynomial explicitly so a proof mentioning this theorem and that theorem is not what I'm looking for.