[step:Build one collar trivialization across the glued boundary]By the compatible-collar hypothesis, choose $\varepsilon>0$ and collar maps $\kappa_A:C\times[0,\varepsilon)\to A$ and $\kappa_B:C\times[0,\varepsilon)\to B$ such that the induced neighbourhood $U_C\subset X$ of $C$ is identified with $C\times(-\varepsilon,\varepsilon)$ by sending $\kappa_A(x,s)$ to $(x,-s)$ and $\kappa_B(x,s)$ to $(x,s)$. We use the given collar trivializations $\tau_A:E_A|_{\kappa_A(C\times[0,\varepsilon))}\to \kappa_A(C\times[0,\varepsilon))\times\mathbb R^k$ and $\tau_B:E_B|_{\kappa_B(C\times[0,\varepsilon))}\to \kappa_B(C\times[0,\varepsilon))\times\mathbb R^k$.
Define the map $\Theta_C:E|_{U_C}\to U_C\times\mathbb R^k$ as follows. If $e_A\in E_A$ lies over $\kappa_A(x,s)$ with $s\in[0,\varepsilon)$ and
\begin{align*}
\tau_A(e_A)=(\kappa_A(x,s),v),
\end{align*}
set
\begin{align*}
\Theta_C(q(e_A))=((x,-s),v).
\end{align*}
If $e_B\in E_B$ lies over $\kappa_B(x,s)$ with $s\in[0,\varepsilon)$ and
\begin{align*}
\tau_B(e_B)=(\kappa_B(x,s),w),
\end{align*}
set
\begin{align*}
\Theta_C(q(e_B))=((x,s),g(x)^{-1}w).
\end{align*}
This definition is compatible with the quotient relation over $C$. Indeed, if $e_A\in (E_A)_x$ and $\tau_A(e_A)=(x,v)$, then
\begin{align*}
\tau_B(\varphi(e_A))=(x,g(x)v),
\end{align*}
so the $B$-side formula gives
\begin{align*}
\Theta_C(q(\varphi(e_A)))=((x,0),g(x)^{-1}g(x)v)=((x,0),v)=\Theta_C(q(e_A)).
\end{align*}
Thus $\Theta_C$ is well-defined.
It is fibrewise linear by construction. It is bijective because, over $t<0$, its inverse is obtained from $\tau_A^{-1}$, over $t>0$, its inverse is obtained from $\tau_B^{-1}$ after multiplying the fibre coordinate by $g(x)$, and over $t=0$ either side gives the same quotient point.
We first prove that $\Theta_C$ is a homeomorphism in the topological category. Let $W_A\subset E_A$ be the preimage of $\kappa_A(C\times[0,\varepsilon))$ under $\pi_A$, and let $W_B\subset E_B$ be the preimage of $\kappa_B(C\times[0,\varepsilon))$ under $\pi_B$. The collar images are open neighbourhoods of $C$ in the relative topologies of $A$ and $B$, so $W_A\sqcup W_B$ is open in $E_A\sqcup E_B$. It is also saturated for the quotient relation, because the only identifications occur over $C$ and both collar preimages contain the fibres over $C$. Hence the restriction
\begin{align*}
q_C:W_A\sqcup W_B\to q(W_A\sqcup W_B)=E|_{U_C}
\end{align*}
is a quotient map: if $O\subset E|_{U_C}$ and $q_C^{-1}(O)$ is open in $W_A\sqcup W_B$, then $q_C^{-1}(O)=(W_A\sqcup W_B)\cap G$ for some open $G\subset E_A\sqcup E_B$, and the saturated set
\begin{align*}
G\cup ((E_A\sqcup E_B)\setminus (W_A\sqcup W_B))
\end{align*}
has quotient image whose intersection with $E|_{U_C}$ is $O$.
Define a map
\begin{align*}
\widetilde{\Theta}_C:W_A\sqcup W_B\to U_C\times\mathbb R^k
\end{align*}
by the same two formulas used for $\Theta_C$. On $W_A$ it is the composition of $\tau_A$ with the continuous collar-coordinate map $(\kappa_A(x,s),v)\mapsto ((x,-s),v)$. On $W_B$ it is the composition of $\tau_B$ with the continuous map $(\kappa_B(x,s),w)\mapsto ((x,s),g(x)^{-1}w)$. The inversion map $GL(k,\mathbb R)\to GL(k,\mathbb R)$ and matrix-vector multiplication are continuous, so the $B$-side formula is continuous. The compatibility computation above shows that $\widetilde{\Theta}_C$ is constant on the equivalence classes defining $E|_{U_C}$. Therefore, by the universal property of quotient maps applied to the quotient map $q_C$, the induced map $\Theta_C:E|_{U_C}\to U_C\times\mathbb R^k$ is continuous.
To justify continuity of the inverse in the topological category, define $\Psi_C:U_C\times\mathbb R^k\to E|_{U_C}$ by using $q\circ\tau_A^{-1}$ on
\begin{align*}
P_A=C\times(-\varepsilon,0]\times\mathbb R^k
\end{align*}
with $s=-t$, and by using $q\circ\tau_B^{-1}$ after replacing the fibre coordinate $u$ by $g(x)u$ on
\begin{align*}
P_B=C\times[0,\varepsilon)\times\mathbb R^k
\end{align*}
with $s=t$. These are subsets of $U_C\times\mathbb R^k=C\times(-\varepsilon,\varepsilon)\times\mathbb R^k$. The interval $(-\varepsilon,0]$ is closed in $(-\varepsilon,\varepsilon)$ because it is $(-\varepsilon,\varepsilon)\cap(-\infty,0]$, and $[0,\varepsilon)$ is closed in $(-\varepsilon,\varepsilon)$ because it is $(-\varepsilon,\varepsilon)\cap[0,\infty)$. Therefore $P_A$ and $P_B$ are closed in $U_C\times\mathbb R^k$, and they cover $U_C\times\mathbb R^k$. Each restriction is continuous because it is a composition of continuous maps, and the two restrictions agree on $P_A\cap P_B=C\times\{0\}\times\mathbb R^k$ because $\tau_B(\varphi(e_A))=(x,g(x)v)$ whenever $\tau_A(e_A)=(x,v)$. By the [Gluing Lemma](/theorems/1871) for maps defined on closed subsets, $\Psi_C$ is continuous. The displayed formulas show $\Psi_C\circ\Theta_C=\operatorname{id}_{E|_{U_C}}$ and $\Theta_C\circ\Psi_C=\operatorname{id}_{U_C\times\mathbb R^k}$, so $\Theta_C$ is a homeomorphism in the topological category.
In the smooth category, we use this already established homeomorphism to define the local smooth structure on the same quotient topological space $E|_{U_C}$ by transporting the product smooth structure through $\Theta_C$. Since the topology transported by $\Theta_C$ is exactly the quotient [subspace topology](/page/Subspace%20Topology) just proved, this does not change the underlying topological space. Thus $\Theta_C$ is a diffeomorphism by definition of this local smooth chart; the next step verifies that this chart is smoothly compatible with the inherited bundle charts from $E_A$ and $E_B$. No conclusion about smoothness is being drawn merely from agreement of the two inverse formulas at $t=0$.[/step]