Solution
= Solution
Matching at $z=L$ first expresses the middle solution in terms of $A_T$. Propagating its value and derivative across the layer of thickness $2L$ uses the transfer matrix
$$
\begin{pmatrix}\cosh2α&k^{-1}\sinh2α\\k\sinh2α&\cosh2α\end{pmatrix},
\qquad α=kL.
$$
Matching this result to $A_I+A_R$ and $-imA_I+imA_R$ at $z=-L$, then eliminating $A_R$, gives
$$
\boxed{{A_T\over A_I}={2imk\over2imk\cosh2α+(k^2-m^2)\sinh2α}.}
$$