I am looking for whether there is an easy way to define $y=\sqrt{-1}$ in $A_v$, where $A_v$ is the local ring with $A$ is the polynomial ring $\mathbb{F}_q[x]$ and $v$ is a prime ideal generated by a irreducible polynomial $x^2+1 = 0$ in $\mathbb{F}_q[x]$. That is $y^2 = q-1 + (q-1)(x^2+1) + (q-1)(x^2+1)^2 + (q-1)(x^2+1)^2 +\cdots$. Then I would like to expand other power series in $\mathbb{F}_q[[x]]$ or just polynomial in $\mathbb{F}_q[x]$ in terms of a power series in $x - y$, i.e. $f(x) = a_0 + a_1(x-y) +a_2(x-y)^2+\cdots$, where $a_i\in\mathbb{F}_q[x]$ with degree less than $2$.
Moreover, is there an direct way to express $y$ in terms of $x$?
It is not entirely clear to me what you want to do. This is too long to be a comment, so an answer it is. Please comment, and may be we can locate the question you really wanted to ask.