Canonical: https://knowlpedia.com/fiber-bundles/corollary-chernweil-characteristic-classes-are-invariants-of-the-principal-bundle/

# Chern–Weil classes are independent of the connection

Characteristic classes obtained from invariant polynomials in curvature do not depend on the chosen principal connection.

Let \(\pi:P\to M\) be a [principal \(G\)-bundle](https://knowlpedia.com/fiber-bundles/principal-g-bundle/), and let \(p\) be an [invariant polynomial](https://knowlpedia.com/fiber-bundles/invariant-polynomial-on-a-lie-algebra/) on the [Lie algebra](https://knowlpedia.com/lie-groups/lie-algebra/). Given a [principal connection](https://knowlpedia.com/fiber-bundles/principal-connection/) \(\omega\) with [curvature 2-form](https://knowlpedia.com/fiber-bundles/curvature-2-form-of-a-principal-connection/) \(\Omega\), the Chern–Weil construction produces a differential form on \(M\) by applying \(p\) to \(\Omega\) and using the fact that the resulting form is basic.

For each invariant polynomial \(p\) of degree \(k\), there is a canonically defined [de Rham cohomology class](https://knowlpedia.com/fiber-bundles/de-rham-cohomology-group/)
\[
\mathrm{cw}_p(P)\in H^{2k}_{\mathrm{dR}}(M)
\]
with the following property:

- For any principal connection \(\omega\) on \(P\), the [Chern–Weil form](https://knowlpedia.com/fiber-bundles/chernweil-form/) \(\mathrm{CW}_p(\omega)\in \Omega^{2k}(M)\) satisfies \(d\,\mathrm{CW}_p(\omega)=0\) (closedness, using [the exterior derivative](https://knowlpedia.com/fiber-bundles/exterior-derivative/)), and its class \([\mathrm{CW}_p(\omega)]\) depends only on \(P\), not on \(\omega\).

Equivalently, if \(\omega_0,\omega_1\) are two connections on \(P\), then
\[
\mathrm{CW}_p(\omega_1)-\mathrm{CW}_p(\omega_0)
\]
is an [exact](https://knowlpedia.com/fiber-bundles/exact-differential-form/) [differential form](https://knowlpedia.com/fiber-bundles/differential-k-form/) on \(M\). Thus Chern–Weil characteristic classes are invariants of the underlying principal bundle.

## Examples

A symmetric \(k\)-linear form on \(\mathfrak g\) invariant under the adjoint action is one source of an \(\mathrm{Ad}\)-invariant polynomial.
1. **First Chern class of a [line bundle](https://knowlpedia.com/fiber-bundles/line-bundle/).** For a principal \(U(1)\)-bundle (complex line bundle), choosing \(p(X)=\frac{i}{2\pi}X\) on \(\mathfrak u(1)\) gives a closed 2-form representing the first Chern class in real cohomology; changing the connection changes the representative by an exact form.
2. **Pontryagin classes.** For a principal \(SO(n)\)-bundle, invariant polynomials built from traces of powers of curvature produce the Pontryagin classes. For \(TM\), this shows Pontryagin classes are independent of the chosen Riemannian metric and its Levi–Civita connection.
3. **Second Chern class for \(SU(2)\).** For a principal \(SU(2)\)-bundle over a 4-manifold, the normalized invariant polynomial \(p(X,Y)=\frac{1}{8\pi^2}\mathrm{tr}(XY)\) yields a 4-form representing the second Chern class ([instanton number](https://knowlpedia.com/fiber-bundles/instanton-number/)), independent of the chosen connection.
