Given the quadratic form of an ellipse, $f(x,y) = ax^2 + bxy + cy^2 +dx + fy + g = 0$, with known coefficients. What is the relationship between $f(x,y)$ and a $2\times 3$ transformation matrix $T$ such that a point on the unit circle $(x_C,y_C)$ can be transformed to a point on the ellipse $(x_e,y_e)$ as
$$ \begin{bmatrix} x_e \\ y_e \\ \end{bmatrix} = T\begin{bmatrix} x_C \\ y_C \\ 1\\ \end{bmatrix}$$
The 3rd column of $T$, $t_{13}$ and $t_{23}$, is the coordinate of the ellipse center $(x_0,y_0)$. The entry $t_{12}$ appears to always equal to zero.
If there is no rotation to the ellipse, then $t_{11} = $ length of semi-major axis and $t_{22}$ = length of semi-minor axis and $t_{21}=0$. No issues in this scenario.
My issue is when there is rotation to the ellipse. In this case, I am unable to see the direct relationship between $t_{11}, t_{2,1}$ and $t_{22}$. Is there a way to compute each of the entries of $T$ directly from $f(x,y)$?
There is an infinite number of affine transformations that map the unit circle to a given ellipse, each corresponding to a choice of conjugate half-diameters.
Let $\mathbf c$ be the ellipse’s center and $\mathbf c+\mathbf u$ and $\mathbf c+\mathbf v$ be the endpoints of a pair of conjugate half-diameters of the ellipse. Then, per the Wikipedia article on ellipses, the ellipse can be parameterized as $$\mathbf c+\mathbf u\cos t+\mathbf v\sin t.$$ This is the image of the unit circle under the affine map given by $2\times3$ matrix $$T = \begin{bmatrix}\mathbf u & \mathbf v & \mathbf c\end{bmatrix}.$$
To illustrate, let’s assume w.l.o.g. that the ellipse is centered at the origin and the constant term in its equation is $-1$. We can then focus on the linear part of $T$, $M=\begin{bmatrix}\mathbf u&\mathbf v\end{bmatrix}$. For $\mathbf u$, we’ll take the positive $x$-intercept of the ellipse, $\left(1/\sqrt a,0\right)^T$. The conjugate diameter to the $x$-axis is parallel to the tangent at this point, so we compute an intersection of the ellipse with the line $2ax+by=0$, choosing $$\mathbf v=\left(-{b \over\sqrt{a(4ac-b^2)}}, {2\sqrt{a}\over\sqrt{4ac-b^2}}\right),$$ from which $$M = \begin{bmatrix}\frac1{\sqrt a} & -{b\over\sqrt{a(4ac-b^2)}} \\ 0 & {2\sqrt a\over\sqrt{4ac-b^2}} \end{bmatrix}.$$ By symmetry, we can multiply either or both $\mathbf u$ and $\mathbf v$ by $-1$ to obtain another three affine transformations that produce the same ellipse, while reversing the roles of $\mathbf u$ and $\mathbf v$ generates another four. Note, by the way, that the only time that $t_{12}=0$ with this choice of $\mathbf u$ is when the ellipse is already axis-aligned, in which case $T$ represents a simple scaling operation.
If you choose $\mathbf u$ parallel to the ellipse’s major axis, $\mathbf v$ will be orthogonal to it, and so parallel to the minor axis. You can think of this as the “canonical” transformation $M$ that generates the ellipse: a scaling in the direction of the coordinate axes followed by a rotation. Any orthogonal transformation $U$ maps the unit circle to itself, so $MU$ also maps the circle to the ellipse. In fact, this is another way to generate all such transformations.