In geometry, the notion of a connection makes precise the idea of transporting local geometric objects, such as tangent vectors or tensors in the tangent space, along a curve or family of curves in a parallel and consistent manner. There are various kinds of connections in modern geometry, depending on what sort of data one wants to transport. For instance, an affine connection, the most elementary type of connection, gives a means for parallel transport of tangent vectors on a manifold from one point to another along a curve. An affine connection is typically given in the form of a covariant derivative, which gives a means for taking directional derivatives of vector fields, measuring the deviation of a vector field from being parallel in a given direction.
Connections are of central importance in modern geometry in large part because they allow a comparison between the local geometry at one point and the local geometry at another point. Differential geometry embraces several variations on the connection theme, which fall into two major groups: the infinitesimal and the local theory. The local theory concerns itself primarily with notions of parallel transport and holonomy. The infinitesimal theory concerns itself with the differentiation of geometric data. Thus a covariant derivative is a way of specifying a derivative of a vector field along another vector field on a manifold. A Cartan connection is a way of formulating some aspects of connection theory using differential forms and Lie groups. An Ehresmann connection is a connection in a fibre bundle or a principal bundle by specifying the allowed directions of motion of the field. A Koszul connection is a connection which defines directional derivative for sections of a vector bundle more general than the tangent bundle.
Connections also lead to convenient formulations of geometric invariants, such as the curvature (see also curvature tensor and curvature form), and torsion tensor.
Consider the following problem. Suppose that a tangent vector to the sphere S is given at the north pole, and we are to define a manner of consistently moving this vector to other points of the sphere: a means for parallel transport. Naively, this could be done using a particular coordinate system. However, unless proper care is applied, the parallel transport defined in one system of coordinates will not agree with that of another coordinate system. A more appropriate parallel transportation system exploits the symmetry of the sphere under rotation. Given a vector at the north pole, one can transport this vector along a curve by rotating the sphere in such a way that the north pole moves along the curve without axial rolling. This latter means of parallel transport is the LeviCivita connection on the sphere. If two different curves are given with the same initial and terminal point, and a vector v is rigidly moved along the first curve by a rotation, the resulting vector at the terminal point will be different from the vector resulting from rigidly moving v along the second curve. This phenomenon reflects the curvature of the sphere. A simple mechanical device that can be used to visualize parallel transport is the southpointing chariot.
For instance, suppose that S is a sphere given coordinates by the stereographic projection. Regard S as consisting of unit vectors in R^{3}. Then S carries a pair of coordinate patches corresponding to the projections from north pole and south pole. The mappings
cover a neighborhood U_{0} of the north pole and U_{1} of the south pole, respectively. Let X, Y, Z be the ambient coordinates in R^{3}. Then φ_{0} and φ_{1} have inverses
so that the coordinate transition function is inversion in the circle:
Let us now represent a vector field on S (an assignment of a tangent vector to each point in S) in local coordinates. If P is a point of U_{0} ⊂ S, then a vector field may be represented by the pushforward of a vector field v_{0} on R^{2} by :

(1) 
where denotes the Jacobian matrix of φ_{0} (), and v_{0} = v_{0}(x, y) is a vector field on R^{2} uniquely determined by v (since the pushforward of a local diffeomorphism at any point is invertible). Furthermore, on the overlap between the coordinate charts U_{0} ∩ U_{1}, it is possible to represent the same vector field with respect to the φ_{1} coordinates:

(2) 
To relate the components v_{0} and v_{1}, apply the chain rule to the identity φ_{1} = φ_{0} o φ_{01}:
Applying both sides of this matrix equation to the component vector v_{1}(φ_{1}^{−1}(P)) and invoking (1) and (2) yields

(3) 
We come now to the main question of defining how to transport a vector field parallelly along a curve. Suppose that P(t) is a curve in S. Naïvely, one may consider a vector field parallel if the coordinate components of the vector field are constant along the curve. However, an immediate ambiguity arises: in which coordinate system should these components be constant?
For instance, suppose that v(P(t)) has constant components in the U_{1} coordinate system. That is, the functions v_{1}(φ_{1}^{−1}(P(t))) are constant. However, applying the product rule to (3) and using the fact that dv_{1}/dt = 0 gives
But is always a nonsingular matrix (provided that the curve P(t) is not stationary), so v_{1} and v_{0} cannot ever be simultaneously constant along the curve.
The problem observed above is that the usual directional derivative of vector calculus does not behave well under changes in the coordinate system when applied to the components of vector fields. This makes it quite difficult to describe how to translate vector fields in a parallel manner, if indeed such a notion makes any sense at all. There are two fundamentally different ways of resolving this problem.
The first approach is to examine what is required for a generalization of the directional derivative to "behave well" under coordinate transitions. This is the tactic taken by the covariant derivative approach to connections: good behavior is equated with covariance. Here one considers a modification of the directional derivative by a certain linear operator, whose components are called the Christoffel symbols, which involves no derivatives on the vector field itself. The directional derivative D_{u}v of the components of a vector v in a coordinate system φ in the direction u are replaced by a covariant derivative:
where Γ depends on the coordinate system φ and is bilinear in u and v. In particular, Γ does not involve any derivatives on u or v. In this approach, Γ must transform in a prescribed manner when the coordinate system φ is changed to a different coordinate system. This transformation is not tensorial, since it involves not only the first derivative of the coordinate transition, but also its second derivative. Specifying the transformation law of Γ is not sufficient to determine Γ uniquely. Some other normalization conditions must be imposed, usually depending on the type of geometry under consideration. In Riemannian geometry, the LeviCivita connection requires compatibility of the Christoffel symbols with the metric (as well as a certain symmetry condition). With these normalizations, the connection is uniquely defined.
The second approach is to use Lie groups to attempt to capture some vestige of symmetry on the space. This is the approach of Cartan connections. The example above using rotations to specify the parallel transport of vectors on the sphere is very much in this vein.
Historically, connections were studied from an infinitesimal perspective in Riemannian geometry. The infinitesimal study of connections began to some extent with Elwin Christoffel. This was later taken up more thoroughly by Gregorio RicciCurbastro and Tullio LeviCivita (LeviCivita & Ricci 1900) who observed in part that a connection in the infinitesimal sense of Christoffel also allowed for a notion of parallel transport.
The work of LeviCivita focused exclusively on regarding connections as a kind of differential operator whose parallel displacements were then the solutions of differential equations. As the twentieth century progressed, Élie Cartan developed a new notion of connection. He sought to apply the techniques of Pfaffian systems to the geometries of Felix Klein's Erlangen program. In these investigations, he found that a certain infinitesimal notion of connection (a Cartan connection) could be applied to these geometries and more: his connection concept allowed for the presence of curvature which would otherwise be absent in a classical Klein geometry. (See, for example, (Cartan 1926) and (Cartan 1983).) Furthermore, using the dynamics of Gaston Darboux, Cartan was able to generalize the notion of parallel transport for his class of infinitesimal connections. This established another major thread in the theory of connections: that a connection is a certain kind of differential form.
The two threads in connection theory have persisted through the present day: a connection as a differential operator, and a connection as a differential form. In 1950, JeanLouis Koszul (Koszul 1950) gave an algebraic framework for regarding a connection as a differential operator by means of the Koszul connection. The Koszul connection was both more general than that of LeviCivita, and was easier to work with because it finally was able to eliminate (or at least to hide) the awkward Christoffel symbols from the connection formalism. The attendant parallel displacement operations also had natural algebraic interpretations in terms of the connection. Koszul's definition was subsequently adopted by most of the differential geometry community, since it effectively converted the analytic correspondence between covariant differentiation and parallel translation to an algebraic one.
In that same year, Charles Ehresmann (Ehresmann 1950), a student of Cartan's, presented a variation on the connection as a differential form view in the context of principal bundles and, more generally, fibre bundles. Ehresmann connections were, strictly speaking, not a generalization of Cartan connections. Cartan connections were quite rigidly tied to the underlying differential topology of the manifold because of their relationship with Cartan's equivalence method. Ehresmann connections were rather a solid framework for viewing the foundational work of other geometers of the time, such as ShiingShen Chern, who had already begun moving away from Cartan connections to study what might be called gauge connections. In Ehresmann's point of view, a connection in a principal bundle consists of a specification of horizontal and vertical vector fields on the total space of the bundle. A parallel translation is then a lifting of a curve from the base to a curve in the principal bundle which is horizontal. This viewpoint has proven especially valuable in the study of holonomy.