Preliminaries to Studying NonEuclidean Geometry
This article is an attempt to briefly introduce some of the most basic abstractions of differential geometry such as contravariant versus covariant representations of vectors and points, metric and metric tensor and affine connection. The goal is to provide the necessary vocabulary that would enable the reader to be better equipped for understanding continuum mechanics research that makes use of Riemannian geometry.
Here is a brief overview of the basic concepts described in later sections:
 Contravariant and covariant representations are different representations of a given vector or point in space with respect to a given set of basis vectors and a reciprocal set of basis vectors.
 The metric specifies how to compute distances between points in space. In general the metric can vary from one point in space to another. In Riemannian geometry, the metric is specified by the metric tensor. A metric is a choice that one can attribute to a mathematical space. Once that choice is made, it further gives rise to the definition of straight line (a.k.a. geodesic), the dot product of vectors and what it means for lines to be perpendicular.
 Affine connection defines how vectors at different points in space can be compared to each other. The term affine pertains to the ability to preserve parallel relationships. Whereas in Euclidean geometry a vector has only a length and direction, but no position, in Riemannian geometry, however, a vector cannot be disassociated from its position in space. So, before one can add, subtract or compute the inner products of an arbitrary set of vectors, there will need to be a way to specify an equivalent set of vectors that are all attached to the same point in space. This is the purpose of the affine connection.
Contents

Introduction
Continuum mechanics applies the tools of differential geometry to study stress and strain fields within a material by treating that material as an idealized continuum. In most cases, we assume Euclidean geometry for the continuum, but there are several situations when the assumptions of Euclidean geometry no longer apply.
One example is using the tools of continuum mechanics at astronomical lengthscale where the effects of gravity, i.e. the curvature of space, become nonnegligible, such as when studying neutron stars. ^{[1]} ^{[2]} Another example is when applying continuum mechanics at the mesoscale to study material defects such as dislocations, voids and disclinations. ^{[3]} ^{[4]} ^{[5]} Normally, the continuum idealization would have meant that we cannot model explicitly discontinuities in the material such as due to dislocations and disclinations, but as the aforementioned references show, this problem can be overcome by applying nonEuclidean geometry to the discontinuous material.
Here is an intuitive way to see how nonEuclidean geometry helps: Consider a wall map of the Earth and notice that any such map would have a one or more discontinuities, e.g. the line where eastwest hemispheres appear separated on the projection. A globe, however, does not manifest such discontinuity, because the globe's geometry is no longer Euclidean (flat) but spherical.
There are other potential future applications for why it maybe worth pursuing the generalization of continuum mechanics to nonEuclidean geometry. For example. nonEuclidean computational models could be more accurate as they will be able to naturally handle discontinuities and incompatibilities.
Nevertheless, understanding how the geometry of space should reflect in the equations of continuum mechanics is a challenging exercise, which is why perhaps it is not a part of the typical continuum mechanics curriculum. NonEuclidean geometry is often veiled in highly abstracted mathematical language (tangent bundles, vector fields, Lie groups and Lie algebra, differential forms, ... ). While some of these abstractedness is necessary to ensure that we are not overly limiting or overly extending the applicability of the math, it is often more helpful to first grasp the basic concepts intuitively and then grok the generalization.
Contravariant and Covariant Representation of Points, Reciprocal Basis
This section is based on lecture notes by Prof. Anna Vainchtein. ^{[7]}
Choice of Basis Vectors
Fundamental to a physical space is the ability to refer to points in space. In order to refer to points in space we need a set of basis vectors and a reference point a.k.a. the origin. For example let and be basis vectors in 2D space such that they are both attached at the origin but not overlapping each other. Each basis vector defines a coordinate axis and and a scale for that axis. That is, it also specifies a way to assign a numerical value to each point on the axis. Since and are not parallel to each other, we can reference any point in space by stating the numerical values of its projection points along the in the axes respectively. Thus,

(1.1) 
is a way to describe a point in terms of the given measuring sticks.
In summary:
 The choice of basis vectors and is arbitrary with the only limitatoin being that these two should not be parallel.
 The point exist independent of and does not change with the choice of basis vectors. However, the indices and are only meaningful in the context of the given basis vectors and would change with different choice of basis vectors.
Contravariant Representation of a Point
The coefficients and form the contravariant representation of point . The term "contravariant" signifies that these coefficients vary inversely with respect to the length of their respective basis vectors. In other words, if we were to choose longer basis vectors then the same point would be represented by smaller coefficients and vice versa.
To see this more intuitively, think of each basis vector as analogous to a unit of length, e.g. m, cm, etc. Then, notice for example that, is an illustration of how making the unit smaller requires a larger numerical value to represent the same length.
In short:
 A point in space is independent of the chosen basis, but its representation depends on the choice of basis.
 The term contravariant characterizes the point's representaiton and not the point itself and signifies how the representation changes with a change of basis.
Covariant Representation of a Point
One might ask how can one determine the contravariant coefficients and given the point and the basis vectors and . If the given basis vectors formed a Cartesian orthonormal basis, then the coefficients would be simply the orthogonal projections of the point onto the respective basis vectors, which would be the same as computing the dot product (a.k.a inner product) between and the respective basis vector. However, for a general set of basis vectors that are not orthonormal this is not the case.
Nevertheless, it turns out that we can choose a reciprocal set of basis vectors and such that

(2) 
With the help of these reciprocal basis vectors we can compute each contravariant coefficient as the dot product between the given point and the respective resiprocal basis vector. For example,

(3) 
and likewise for .
Since and themselves form another basis, the given point has a representation in that basis as follows,

(4) 
The coefficients and form the covariant representation of point . The term "covariant" signifies that these coefficients would increase or decrease when the original set of basis vectors and increase or decrease respectively. That is, the covariant coefficients vary in the same way as the original basis vectors.
Metric and Metric Tensor
Definition
A metric specifies how we compute distances between points in space given a set of basis vectors.
For exmaple, let and be the basis vectors and let and be two points in space. If the line through and happened to be along one of the basis vectors, then we could use that basis vector as the measuring stick to count off the distance between the two points. However, for general positions of points and we have no apriori mechanism for determining distance between them. That is because we only know apriori how to use each basis vector as a measuring stick in the direction of that basis vector. For an arbitrary direction, we would have to apply a combination of all measuring sticks and how exactly to do that is something that needs to be specified in addition to the basis vectors. The metric tensor provides this additional information.
Let be the vector between points and so that
and 
(5) 
We will define the length of the segment connecting points and as follows:

(6) 
In the above equation, the coefficients are called the metric. It is possible to show that these coefficients obey tensor transformation rules under change of basis and thus show that they are the components of a tensor known as the metric tensor. Being a tensor means that represents a quantity that is independent of the choice of basis and that only the particular representation of depends on the basis.
Indeed, we can write the equation above in a basisindependent way as follows:

(7) 
Therefore it is the tensor alone, independent from the choice of basis, that is responsible for defining distnaces between points in space.
In general, may vary from point to point in space, i.e. is a tensor field. Therefore, the metric equation above is only valid within a small region in space for which we can treat as approximately constant. To signify that, we typically write the metric equation in terms of the infinitesimal distance like so:

(8) 
Relationship to the Inner Product (Dot Product) of Vectors
Once we have specified the notition of distance, we can derive other notions such as perpendicularity, straight line and dot product. So, we should expect that the metric tensor, which defines how to measure distances, will also be used in defining the dot product between two vectors.
Let us start by defining the square of the line segment distance as the dot product of the the vector with itself. By expanding the dot product in terms of the contravariant representation we get:

(9) 
The last equality above follows from the definition of the metric coefficients in terms of their use in computing the square of the line segment . (cf. equation 6.)
From the last equality we derive an expression for the metric coefficients in terms of the basis vectors:

(10) 
Now consider the dot product of any arbitrary two vectors and as follows:

(11) 
In other words, the metric tensor is the dotproduct operator. While for Cartesian in Euclidean space we could have just used in the general case we need to use the metric tensor to compute the dot product as per equation (11) above.
Relationship to the Contravariant and Covariant Representaiton. Raising and Lowering of Indices
Consider the following expression for one of the covariant components of an arbitrary point . By rerepresenting the given point using both its covariant and contravariant representation we can derive the following:

(12) 
In other words, we conclude that the metric tensor coefficients can be used to convert between contravariant and covarient representation. In general we can conclude that:

(13) 
In the above equation the coefficients are the coefficients of the metric tensor in terms of the reciprocal basis vectors. These constitute the contravariant representation of while the coefficients make up the covariant representation.
The conversion from contravariant to covariant representation and vice versa are known as lowering and raising of indices respectively. So, the metric tensor's covariant or contravariant representation is used used in the operation of lowering or raising of indices respectively.
Examples
Cartesian Coordinates
In Cartesian coordinates the metric is just
and so, the metric tensor is simply the identity tensor:
Skewed Cartesian Coordinates
Consider a set of unit basis vectors and that subtend some arbitrary angle with each other. We can use simple trigonometry as shown on the diagram to compute the length of an arbitrary line segment as follows,
Therefore the metric tensor's representation for the given basis vectors is as follows:
Notice that although just as with the previous example of Cartesian coordinates, the current example is also for flat (Euclidean) space and yet the metric tensor's representation is no longer one and the same as the identity tensor. That is because the metric tensor's representation depends on the choice of basis vectors.
Despite the apparent differences between the metric tensor computed for the skewed Cartesian coordinates and the orthonormal Cartesian coordinates in the previous section, one can see that they are both similar in that is constant for all points in space because both as well as the basis vector lengths remain the same throughout space.
Spherical Coordinates
In spherical coordinates, the great circles serve as coordinate axes and as we can see from the diagram in this section, the square length of an infinitesimal line segment can be computed as follows:
Where is the radius of the sphere, is the angle subtended with the vertical axes and is the azimuth angle measured from a reference longitude line.
Based on the above equation we conclude that the metric tensor for spherical coordinates has the following form:
Notice that unlike the previous examples, which were all for Euclidean space, in this case the metric tensor would vary from point to point on the sphere because its value depends on , which is one of the coordinates.
Poincaré Disk
The Poincaré disk has the following curious property: from an observer outside of the disk, it would appear that objects within the disk shrink inversely proportionally to their distance to the edge. From the perspective of an inhabitant of the disk, the disk would appear to be of infinite space since the inhabitant would never be able to reach the edge of the disk.
To the outside observer, the disk would appear as a finite 2D disk of radius , but with a nonEuclidean metric. Using a standard Cartesian basis as our reference basis, whose origin is at the center of the disk, we can define the metric as follows:
Consequently, the metric tensor is as follows:
As with the previous example, the resulting metric is not constant but varies throughout space, which is what gives rise to the nonEuclidean geometry.
This example illustrates that it is the metric that induces the curvature of space (i.e. whether it is nonEuclidean or Euclidean) rather than space having curvature apart from the metric. In other words, from a mathematical perspective, the choice of metric is independent from the choice of space.
In this case, for example, we had a 2D disk, which looked like any ordinary flat disk until we applied a hyperbolic metric to it which induced Hyperbolic (nonEuclidean) geometry on the disk. When it comes to physical space, however, the choice of metric is less arbitrary and is typically associated with the choice of some physical "meter stick".
Affine Connection and Covariant Derivative
A connection specifies how vectors located in different points in space can be compared to one another. This is needed in order to be able to compute the differential of a vector with respect to space, that is how a given vector changes from one point in space to another. Such differential is known as the covariant derivative of the vector.
To compute such a derivative requires finding the difference between vectors in two distinct points in space. In Euclidean geometry, this is a simple matter of computing the difference of the respective vector components. That is because in Euclidean geometry vector quantities are fully determined by their vector components and irrespective of spatial location, for example vector is fully determined by its components and . In nonEuclidean geometry, however, vectors quantities are specified for specific points in space, so without any additional information it would not be meaningful to compute differences between vectors located at different points in space. This additional information is the connection and just as with the metric a connection is not inherent within a given space but must be separately specified.
So before we can compute differences between vectors located at different points in space, one of the vectors must be first brought to the same location as the other vector. This must be done without altering the value of the vector that is being transported. In Euclidean space, this is analogous to translating a vector while keeping it parallel to itself, which is known as parallel transport. In nonEuclidean space, however, parallel transport depends on the path and is not unique as can be seen by the illustration here. This is why we need additional information to uniquely define parallel transport.
One way in which such additional information is specified is by specifying how the contravariant components of vectors should change under parallel transport.
References
 ↑ Gerard A Maugin, Magnetized deformable media in
general relativity, Annales de l'I.H.P., section A, tome 15,
 4(1971), p.275302
 ↑ G.A.Maugin, On the covariant equaitons of the relativistic electrodynamics of continua. I. General equations, Universite de Paris VI, Laboratoire de Mecanique Theorique associe au C.N.R.S., tour 66, 75230 Paris, Cedex 05, France
 ↑ Kazuo Kondo, ON THE ANALYTICAL AND PHYSICAL FOUNDATIONS OF THE THEORY OF DISLOCATIONS AND YIELDING BY THE DIFFERENTIAL GEOMETRY OF CONTINUA, International Journal of Engineering Science, Vol. 2, pp. 219251, Pergamon Press 1964
 ↑ John D. Clayton, Douglas J. Bammann, and David L. McDowell, A Geometric Framework for the Kinematics of Crystals With Defects, Philosophical Magazine, vol 85, nos. 3335, pp. 39834010, February 2005
 ↑ J.D. Clayton, D.L. McDowell, D.J. Bammann, Modeling dislocations and disclinations with finite micropolar elastoplasticity, International Journal of Plasticity, 22 (2006) 210256
 ↑ http://commons.wikimedia.org/wiki/File%3AGoode_homolosine_projection_SW.jpg, By Strebe (Own work) [CC BYSA 3.0 (http://creativecommons.org/licenses/bysa/3.0)], via Wikimedia Commons
 ↑ Anna Vainchtein, Change of basis, reciprocal basis, covariant and contravariant components of a vector and metric tensor, Math 1550 Lecture Notes, http://physastromsci.tripod.com/webonmediacontents/notes1.pdf
 ↑ http://commons.wikimedia.org/wiki/File%3ABasis.svg, By Original diagram (File:Basis.gif) due to Hernlund, redrawn by Maschen. (Own work) [Public domain], via Wikimedia Commons
 ↑ Wolfram MathWorld, Poincaré Hyperbolic Disk, http://mathworld.wolfram.com/PoincareHyperbolicDisk.html
 ↑ http://commons.wikimedia.org/wiki/File%3AHyperboloidProjection.png, By Selfstudier (Own work) [CC0], via Wikimedia Commons
 ↑ http://commons.wikimedia.org/wiki/File%3AParallel_Transport.svg, By Fred the Oyster [CC BYSA 4.0 (http://creativecommons.org/licenses/bysa/4.0)], via Wikimedia Commons