I'm trying to understand AES encryption-decryption in detail. I have a working level knowledge of all parts of it, except mix columns step. i.e how does decryption is inverse operation of encryption.
Mathematical question, ignoring cryptography:
$$ \begin{bmatrix} 5d\\ e0\\ 70\\ bb \end{bmatrix} = \begin{bmatrix} 2& 3& 1& 1\\ 1& 2& 3& 1\\ 1& 1& 2& 3\\ 3& 1& 1& 2 \end{bmatrix} \begin{bmatrix} 63\\ 47\\ a2\\ f0 \end{bmatrix} $$ $$ \begin{bmatrix} 63\\ 47\\ a2\\ f0 \end{bmatrix} = \begin{bmatrix} e& b& d& 9\\ 9& e& b& d\\ d& 9& e& b\\ b& d& 9& e \end{bmatrix} \begin{bmatrix} 5d\\ e0\\ 70\\ bb \end{bmatrix} $$
In these matrix operations on hex numbers, addition is xor(i.e characteristic is 2) and multiplication is in GF(2^8) so reduced by $x^8 + x^4 + x^3 + x + 1$
Ex: $e * 5d = (x^3 + x^2 + x) * (x^6 + x^4 + x^3 + x^2 + 1) = x^3 + x + 1 = 0b$
Wikipedia explains that those square matrices are based on below polynomials
a(x) = $3x^3 + x^2 + x + 2$ modulo $x^4 + 1$
$ \mathrm{a}^{-1}(x) = 11x^3 + 13x^2 + 9x + 14 $
But how is the $ \mathrm{a}^{-1}(x)$ derived?
What I tried
Rijndael pdf doesn't derive that inverse but mentions that even though $x^4 + 1$ is not irreducible polynomial but since $3x^3 + x^2 + x + 2$ is coprime with it, inverse exists and gives that result.
They mention that mix columns operation is linear transformation in modulo $x^4 +1$ and then each coefficient is in GF(2^8) field. So I'm assuming that you don't need to rely on GF(2^8) i.e. $x^8 + x^4 + x^3 + x + 1$ to calculate that inverse vector function above.
When I tried to find inverse using Extended Euclidean algorithm & polynomial division, I got $$-\frac{4}{135}x^3 - \frac{4}{135}x^2 - \frac{12}{135}x + \frac{8}{135}$$ When you normalize it and consider negative as positive since they mention use of xor in modulo $x^4 + 1$ too, we get $x^3 + x^2 + 3x + 2$, which doesn't work when used in corresponding inverse matrix.
How is that inverse function derived?
PS: I'm guessing my confusion is in interaction between modulo $x^4 + 1$ and regular GF(2^8) in this step of AES.