Given that $v$ is a non-archimedean valuation on $K$, we can extend it to $|\cdot|:K[x]\to\mathbb{R}$ by $|a_0 + a_1x + \cdots +a_nx^n|=\max\left\{|a_1|,\ldots,|a_n|\right\}$. My question is how can we extend $|\cdot|$ to a valuations on $K(x)$?
My guess is that we can extend it to $\|\cdot\|$ given by $$ \left\| \frac{a_0 + a_1x + \cdots +a_nx^n}{b_0 + b_1x + \cdots +b_mx^m} \right\| = \max\left\{|a_1|,\ldots,|a_n|\right\}-\max\left\{|b_1|,\ldots,|b_m|\right\}$$ but I'm not sure if this is true, nor do I know how to show that $\|\cdot\|$ extends $|\cdot|$. Any help would be appreciated.