Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/21Manifold_Connection.ipynb
Views: 326
21. Connection
This notebook is part of the Introduction to manifolds in SageMath by Andrzej Chrzeszczyk (Jan Kochanowski University of Kielce, Poland).
Roughly speaking, connection on a smooth manifold , is a rule to calculate the directional derivatives of the vector fields on . If and are two vector fields, denotes the vector field whose value at each point is equal to the directional derivative of in the direction of .
Euclidean connection in
Let be an open subset and define Cartesian coordinates on . For define by
Thus, each component of the vector field is the usual directional derivative in of in the direction of .
The map
is -linear with respect to since
It is -linear in since
It satisfies the Leibniz rule since
Affine connection in a manifold
The above observations motivate the following definition.
Let be a smooth manifold. A connection on assigns to each an operator from into itself, such that for all and ,
ParseError: KaTeX parse error: Multiple \tagis called the covariant derivative of with respect to .
If is a coordinate system in some neighborhood of , and then from (21.3),(21.4) it follows
From (21.1),(21.2) we have
Thus (21.1)-(21.4) give us
Since is a smooth vector field, it is a linear combination of the vector fields , so there is a set of smooth functions on , such that
Functions which are called Christoffel symbols define the connection in the coordinate system since
Comparing (21.6) with the definition of the Euclidean connection we see that all Christoffel symbols for the Euclidean connection vanish.
Observe that if in the definition of the Euclidean connection, we put and , then the components of in Cartesian coordinates are ( on -th position) and
Example 21.1
Consider the two-dimensional half-plane with connection coefficients defined by and
As we can see, only nonzero Christoffel symbols are displayed.
We can force displaying all symbols using only_nonzero=False
switch.
The coordinate_labels=False
switch prevents using coordinate labels instead of indices.
Covariant derivative along a curve
If is a smooth curve in a smooth manifold and is a smooth vector field defined on the image of , then the covariant derivative of along is the vector field on defined by
( denotes the tangent vector to at , defined in (7.6))
Recall that in local coordinates the tangent vector can be represented by (cf. (8.10))
furthermore and consequently
Vector field parallel along a curve
A vector field is parallel along the curve if
is parallel along if and only if its components with respect to the basis satisfy the system of linear (with respect to ) differential equations
Often we use a simplified form
where all functions are restricted to the image of .
For example if we obtain
The map , defined by
where is parallel along and , is called parallel transport along of from to .
If is endowed with the connection for , then the system (21.9b) takes the form i.e., the vector field is parallel along iff is constant.
Example 21.2
Consider (again) the connection on the upper halfplane with Christoffel symbols
Let us check that along the curve , the vector field is parallel.
The system (21.9b) reduces to
Since we obtain
If we put then both equations are fulfilled.
Example 21.3
Use Sympy to prove that the vector field from the previous example is parallel along the curve from that example.
Example 21.4
Solve the system (21.9d) with respect to with initial conditions
Example 21.5
Let us show graphically that the vector field from the previous example realizes the parallel transport of the vector with components at to the vector with the same components at along the curve
Example 21.6
Now take the same on the upper halfplane but consider the vertical curve and the vector field
First let us check that is parallel along .
System (21.9c) takes the form
Now solve the system (21.9e) (we have restarted the Kernel).
Example 21.7
Show graphically the vector field from the previous example along the curve
Example 21.8
Consider the plane with Christoffel symbols and the remaining symbols equal to 0.
Assume that the curve is defined by .
System (21.9b) takes the form
and can be solved with Sympy (with initial conditions ).
Example 21.9
Using the data from the previous example show the parallel transport of the tangent vector at with components along the curve
Remark. In many examples, the exact solutions to ODE systems are not accessible.
Fortunately, the same figure as in previous example can be obtained, solving the system numerically.
Example 21.10
Use numerical tools to obtain the figure from the previous example.
First we check that the connection coefficients from the previous example correspond to an elliptic paraboloid.
Now we can use the method
eparaboloid.parallel_translation_numerical(curve, t, v0, tinterval)
.
In the above command
curve
=[x(t),y(t)] can be replaced for example by [s,s],
t
by s,
v0
by [1.0,1.0],
and tinterval
=[t_0,t_1,number_of_subintervals] by [0.0, 1.0, 9].
Use the command eparaboloid.parallel_translation_numerical?
to obtain more information.
Let us note that the values of the compositions in the above calculations are cached, and can be used for example in symbolic computations:
Remark. In previous examples we have used linear functions to define . If the numerical approach is used we can try more complicated curves.
Example 21.11
Let us investigate the parallel transport from the previous example but along the curve .
Remark. This time the symbols are more complicated:
Example 21.12
Show how the equations (21.9b) of the parallel vector field along a curve can be obtained in SageMath Manifolds for a concrete parametric surface in and concrete curve.
If the equations (21.9b) of the parallel transport system are written in the form
then the right hand sides can be obtained as follows (we use the symmetry of connection coefficients for parametrized surfaces in ).
Thus the right hand sides of equations for parallel transport on the surface along the curve are:
Example 21.13
Make a three-dimensional illustration for parallel transport on the surface along the curves and
Since the connection from the last example corresponds to the parametrized surface we are able to make a 3d illustration of the parallel transport.
First the case of the curve :
and next the case of the curve
Geodesics
Recall that in (7.6) we have defined the tangent vector to a curve as
In a manifold with a connection geodesics can be defined as follows.
The smooth curve is geodesic if
To obtain the equation in local coordinates we have to replace in (21.9) the components of the vector field by :
Usually we shall use the shorthand
In the case , the system takes the form
For the standard connection of , defined by 0 in the basis induced by the natural coordinates of , the geodesic equations (21.11) are of the form , which means that the geodesics are straight lines.
Example 21.14
Consider again the plane with Christoffel symbols and the remaining symbols equal to 0.
The system (21.12) has the form
The exact solutions for such systems are not easy to obtain, but fortunately we can use SageMath
geodesics_numerical(p0, v0, tinterval)
method,
where p0
is the list of coordinates of the initial point, v0
is the list of components of the initial tangent vector and tinterval
is of the form , with denoting the number of subintervals in the interval .
The output is a list of expressions of the form:
[t, [u1(t), u2(t)], [v1(t), v2(t)], [x1(t), x2(t), x3(t)]]
,
where t denote the ends of subintervals of
[u1(t), u2(t)]
are the intrinsic coordinates of the geodesic points,
[v1(t), v2(t)]
are the intrinsic coordinates of the tangent vectors to the geodesic,
[x1(t), x2(t), x3(t)]
are the coordinates of the geodesic points in the three-dimensional space.
Use
to obtain more information.
In the following code we compute numerically the geodesic with initial tangent vector at , with components In the computations, the time interval is divided into 200 subintervals:
Example 21.15
Show three examples of geodesics on the sphere in .
Define the sphere as the parametric surface
and compute numerically sets of 101 points on three geodesics, each starting at point and having initial tangent vectors with components respectively:
As we can see, one can suspect, that the geodesics are the great circles (but the graphics is not the proof!).
In the next notebook we will show how to compute numerically geodesics on Riemannian manifolds.
Torsion
The torsion, of the connection is the map from into given by
From (21.13) we see that is antisymmetric, .
From the properties of the connection and the Lie bracket (notebook 12) it follows that for
Note that takes values in so it does not satisfy the definition of a tensor field but it is equivalent to tensor field defined by
Remark. In SageMath Manifolds by the torsion
we mean the tensor field .
Symmetric or torsion free connections
A connection is symmetric, or torsion-free if its torsion tensor is zero.
if and are smooth vector fields, then Using (2.13) we obtain
If the components of are defined by we have consequently is symmetric if and only if
Remark. In all previous examples of connections, the torsion tensor is zero.
Example 21.16
Consider again the two-dimensional half-plane with connection coefficients defined by and
Example 21.17
Compute the torsion in coordinates for two-dimensional manifold with nonzero Christoffel symbols
Covariant derivative of covariant tensor fields
The covariant derivative of a tensor field with respect to a vector field , denoted by , is defined by
for
To check that let us note that for
(we have used the equality for .
Covariant derivative of functions
The definition of covariant derivative can be extended to functions by the formula
Properties of covariant derivatives for covariant tensor fields
Let us check that a version of (21.2) holds for covariant tensor fields :
i.e.,
Now let us check a counterpart of (21.1)
i.e.,
Covariant derivative of tensor product
If and , then
i.e.,
Components of tensor field in local coordinates
We have
Consequently
Example 21.18
Use (21.17) to explicitly express in a general two-dimensional manifold with connection vector field and tensor field .
First define the tensor field:
and next the vector field:
We want to use symbolic Christoffel symbols,
and connection with these symbols.
can be computed as nab(t).contract(X)
(contraction was defined in notebook 19):
then in the formula (2.17) takes the form
and for example if we have
so the repeated terms on the right give coefficients 2 in the final result.
What's next?
Take a look at the notebook Riemannian and pseudo-Riemannian manifolds.