Let π:P→M\pi:P\to M be a with connection form ω∈Ω1(P;g)\omega\in \Omega^1(P;\mathfrak{g}) as in .

Fix an open set U⊂MU\subset M and a local section s:U→Ps:U\to P. The local connection form on UU is

A≔s∗ω∈Ω1(U;g).A \coloneqq s^*\omega \in \Omega^1(U;\mathfrak{g}).

A gauge transformation on UU is a g:U→Gg:U\to G. It determines a new local section s′:U→Ps':U\to P by

s′(x)≔s(x)⋅g(x).s'(x)\coloneqq s(x)\cdot g(x).

The corresponding local connection form A′=(s′)∗ωA'=(s')^*\omega is related to AA by the gauge transformation rule

A′  =  Ad(g−1)A  +  g−1dg,A' \;=\; \mathrm{Ad}(g^{-1})A \;+\; g^{-1}dg,

where g−1dg∈Ω1(U;g)g^{-1}dg\in \Omega^1(U;\mathfrak{g}) is the pullback of the left Maurer–Cartan form on GG along gg, and Ad(g−1)\mathrm{Ad}(g^{-1}) acts pointwise on g\mathfrak{g}.

This formula is the local manifestation of the global equivariance condition Rh∗ω=Ad(h−1)ωR_h^*\omega=\mathrm{Ad}(h^{-1})\omega.

Examples
  1. Abelian case U(1)U(1). For G=U(1)G=U(1), Ad\mathrm{Ad} is trivial, so A′=A+g−1dgA'=A+g^{-1}dg. Writing g=eifg=e^{if} locally gives g−1dg=i dfg^{-1}dg=i\,df, hence A′=A+i dfA'=A+i\,df.
  1. Matrix group GL(n)GL(n). For G=GL(n)⊂End(Rn)G=GL(n)\subset \mathrm{End}(\mathbb{R}^n), the adjoint action is conjugation, and the rule becomes
    A′=g−1Ag+g−1dg,A' = g^{-1}Ag + g^{-1}dg,
    where AA is a matrix-valued 1-form.
  1. Constant gauge transformations. If gg is constant on UU, then dg=0dg=0 and A′=Ad(g−1)AA'=\mathrm{Ad}(g^{-1})A; i.e. only the g\mathfrak{g}-basis changes.