for a linear transformation :
$$x'=ax+by$$ $$y'=cx+dy$$
is this the direct transformation matrix or the inverse transformation matrix?
$$T = \begin{bmatrix} a&b\\ c&d\\ \end{bmatrix} \tag{1}\label{1}$$
if its direct, I'm having confusion with contravariant components of a vector... a curvilinear transformation can be considered linear in the vicinity of a point and hence (if (1) is true) the direct transformation matrix would be :
$$T = \begin{bmatrix} \frac{\partial {x_1}'}{\partial x_1} &\frac{\partial {x_1}'}{\partial x_2} \\ \frac{\partial {x_2}'}{\partial x_1}&\frac{\partial {x_2}'}{\partial x_2}\\ \end{bmatrix} \tag{2}$$
3Blue1Brown series on linear algebra taught me that $\begin{bmatrix}a \\ c \\ \end{bmatrix}$ in (1) and $\begin{bmatrix}\frac{\partial {x_1}'}{\partial x_1} \\ \frac{\partial {x_2}'}{\partial x_1} \\ \end{bmatrix}$ in (2) represent the covariant basis vectors of new (primed) coordinate system.
So the covariant basis vectors are transforming following the direct matrix and that means the contravariant components of a vector would transform following the inverse transformation matrix:
$$g = \begin{bmatrix} \frac{\partial {x_1}}{\partial {x_1}'} &\frac{\partial {x_1}}{\partial {x_2}'} \\ \frac{\partial {x_2}}{\partial {x_1}'}&\frac{\partial {x_2}}{\partial {x_2}'}\\ \end{bmatrix} \tag{3}$$
Thus, (from (3)), in Index notation, contravariant components of a vector transforms like :
$$A'^{i}= \frac{\partial {x_j}}{\partial x_i}A^{j} $$
this is contrary to the definition of contravariance : $$A'^{i}= \frac{\partial {x_i}'}{\partial x_j}A^{j} $$
please clarify where I'm wrong