Toy Universes

Gravity inside our minds

Tensors in terms of components

with 2 comments

Based on what we have stated up to now concerning tensors, you must be eager to learn how to make the connection between the index-free and full-index languages.  This post aims to serve as a first connection between both languages. You may find out, however, that the connection will come in a very natural way: basically from the linearity property of tensors. For now, our present exposition will be as simple as possible.

We are working with tensors living in “simple” spaces, namely, Euclidean tensors. Recall from previous posts that we have extended the definition of tensors to include multilinear functionals. So the picture we have up to now is that a tensor is like a machine with a certain number of slots to be filled with input vectors, and that, after “processing” these input vectors, the machine retrieves another tensor of a given rank (0, 1, 2,…), depending on the nature of the tensor.

For example, recall the 3D Euclidean metric d(P_1,P_2), given by the Pythagorean formula:

d(P_1,P_2) = \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2 +(z_1-z_2)^2)}.

The situation above is that you have two points,P_1,P_2, in a space \mathbb{R}^3, with the metricd(P_1,P_2)attached to it, so that the metric function gives you a rule to calculate distances between these points. The coordinates (ordered triples)x,y,zof each point can be compactly written as a vector\vec{v}, that is, a geometrical object which, under the Cartesian coordinatization, has components(x,y,z). We agree that all such “position” vectors are “attached” to the origin(0,0,0) (their “tail” is at the origin, and their “head” is at the given point. This is just a useful image for vectors in Euclidean spaces. In general manifolds, we will have to give up on that vision occasionally).

Therefore, the metric is nothing but a linear machine with two slots that outputs a real number. It is a tensor of rank 2, because we have two input vectors and one output scalar, and a scalar counts as zero for the computation of the rank (as already noted in a previous post).

To emphazise our picture of tensors as machines, we shall temporarily use the following (unorthodox) notation for tensors: given a tensorTof rankp=n+m, it hasninput slots (operates onnvectors\vec{v}_1, \dots, \vec{v}_n) and outputs another tensor of rankm. We write the tensorTas:

T_{\xrightarrow{n,m}} (\vec{v}_1, \dots, \vec{v}_n) .

For example, the metric tensor (rank 2) is written as:

d(P_1,P_2) = T_{\xrightarrow{2,0}} (\vec{v}_1, \vec{v}_2) = s ,

wheres is a scalar.

Suppose now another tensor, also of rank 2, but now its nature is a bit different from the former:

T_{\xrightarrow{1,1}} (\vec{v}) = \vec{w}.

That tensor receives as input the vector\vec{v}and outputs another vector,\vec{w}. Let us examine the above expression carefully. You can change perspective and see that the vector\vec{w}is in fact a vector-valued function of the vector\vec{v}:

\vec{w} = T_{\xrightarrow{1,1}} (\vec{v}) .

But the vector\vec{v}can be written in terms of the three orthonormal basis vectors (i.e., mutually ortogonal and of unit length),\hat{e}_x,\hat{e}_y,\hat{e}_z:

v = v_x \hat{e}_x +v_ y \hat{e}_y + v_z \hat{e}_z,

where the triple of real numbers (v_x, v_ y, v_z) are the coordinates of the “head” of the vector\vec{v}(i.e., its components). Insert that into the previous equation, and you have:

\vec{w} = T_{\xrightarrow{1,1}} (\vec{v}) = T_{\xrightarrow{1,1}} (v_x \hat{e}_x +v_ y \hat{e}_y + v_z \hat{e}_z).

Because of the linearity property of tensors, the above equation is:

\vec{w} = T_{\xrightarrow{1,1}} (\vec{v}) = v_x T_{\xrightarrow{1,1}}  (\hat{e}_x) +v_ y T_{\xrightarrow{1,1}}(\hat{e}_y) + v_z T_{\xrightarrow{1,1}}(\hat{e}_z).

But each of the objectsT_{\xrightarrow{1,1}}  (\hat{e}_x), T_{\xrightarrow{1,1}}  (\hat{e}_y), T_{\xrightarrow{1,1}}  (\hat{e}_z)is a vector, right? That means you can also expand them in terms of basis vectors, as you did with\vec{v}. Let us write each expansion as (*):

T_{\xrightarrow{1,1}}  (\hat{e}_x) = T_{xx} \hat{e}_x + T_{yx}\hat{e}_y + T_{zx} \hat{e}_z,

T_{\xrightarrow{1,1}}  (\hat{e}_y) = T_{xy} \hat{e}_x +  T_{yy}\hat{e}_y + T_{zy} \hat{e}_z,

T_{\xrightarrow{1,1}}  (\hat{e}_z) = T_{xz} \hat{e}_x +  T_{yz}\hat{e}_y + T_{zz} \hat{e}_z.

From the above expansions, you can see clearly that you need all these 9 numbers,T_{xx}, \dots, T_{zz}, in order to express the set of objectsT_{\xrightarrow{1,1}}  (\hat{e}_x), T_{\xrightarrow{1,1}}   (\hat{e}_y), T_{\xrightarrow{1,1}}  (\hat{e}_z)in terms of the basis\hat{e}_x,\hat{e}_y,\hat{e}_z. In fact, you can see now that the tensor T, if to be seen in component form under a given basis, needs a specification of 9 numbers, or its 9 components. That happens because you must specify how the tensor T acts on each basis vector. You must also realize that these 9 numbers do depend on the chosen basis. Also, it is evident that in a 2D space, you would need 4 of such numbers (2 \times 2); in a n-dimensional space, n^2numbers.

Now, let us go back to the expression:

\vec{w} = T_{\xrightarrow{1,1}} (\vec{v}) .

Clearly, it is also true that you can write the vector\vec{w}as:

w = w_x \hat{e}_x +w_ y \hat{e}_y + w_z \hat{e}_z.

So, we have:

w_x \hat{e}_x +w_ y \hat{e}_y + w_z \hat{e}_z = T_{\xrightarrow{1,1}} (\vec{v}) .

But we have already deduced above that:

w_x \hat{e}_x +w_ y \hat{e}_y + w_z \hat{e}_z = T_{\xrightarrow{1,1}} (\vec{v}) = v_x T_{\xrightarrow{1,1}}  (\hat{e}_x)  +v_ y T_{\xrightarrow{1,1}}(\hat{e}_y) + v_z  T_{\xrightarrow{1,1}}(\hat{e}_z) .

Or:

w_x \hat{e}_x +w_ y \hat{e}_y + w_z \hat{e}_z =

=  v_x (T_{xx} \hat{e}_x + T_{yx}\hat{e}_y + T_{zx} \hat{e}_z )  +v_ y ( T_{xy} \hat{e}_x +  T_{yy}\hat{e}_y + T_{zy} \hat{e}_z ) + v_z  ( T_{xz} \hat{e}_x +  T_{yz}\hat{e}_y + T_{zz} \hat{e}_z ) .

Rearrange that in the following way:

w_x \hat{e}_x +w_ y \hat{e}_y + w_z \hat{e}_z =

= (T_{xx} v_{x} + T_{xy} v_{y} + T_{xz} v_{z}) \hat{e}_x + (T_{yx} v_{x} + T_{yy} v_{y} + T_{yz} v_{z}) \hat{e}_y + (T_{zx} v_{x} + T_{zy} v_{y} + T_{zz} v_{z}) \hat{e}_z.

Equate each component of \vec{w} at the left side with the corresponding expression in parenthesis in the left side. You get:

w_x = T_{xx} v_{x} + T_{xy} v_{y} + T_{xz} v_{z},

w_y = T_{yx} v_{x} + T_{yy} v_{y} + T_{yz} v_{z},

w_z = T_{zx} v_{x} + T_{zy} v_{y} + T_{zz} v_{z}.

Evidently, you can write that system of equations compactly by collecting the components of T as a matrix operating on the given vector:

\left ( \begin{array}{c} w_x  \\ w_y  \\ w_z \end{array} \right ) = \left ( \begin{array}{ccc} T_{xx} & T_{xy} & T_{xz} \\ T_{yx} & T_{yy} & T_{yz} \\ T_{zx} & T_{zy} & T_{zz}  \end{array} \right ) \left ( \begin{array}{c} v_x  \\ v_y  \\ v_z \end{array} \right ) .

Now, let us change notation in order to avoid cumbersome writting. Just letx, y, zbe labeled as numbers,1, 2, 3. So it is easy to see that the system of equations above can be written compactly as:

w_i = \sum_{j=1}^{3} T_{ij} v_{j},

with indicesi, jrunning from 1 to 3. We shall often use the Einstein’s summation convention (see Notation page on the side bar). So that can be written simply as:

w_i = T_{ij} v_{j}.

In summary, we see thatT_{\xrightarrow{1,1}}  ({\vec{v}})gets as input the vector\vec{v}and outputs vector\vec{w}. In the chosen basis\hat{e}_i,the components of these vectors are related by the equation above.

It is left to you to show (see a little bit above, (*)) that:

T_{\xrightarrow{1,1}}  (\hat{e}_i) = T_{ji} \hat{e}_j.

But that is simply an expression for a new transformed basis\hat{g}_i:

\hat{g}_i = T_{ji} \hat{e}_j.

We have above precisely a law for the transformation of the basis vectors by the action of the tensor. See the inversion now: T_{ji}for the transformation of the basis instead ofT_{ij}for the transformation of vectors.

You may be wondering how all that came out right. Well, we simply made the right choice of notation when writing the components of T — see (*) above — because we wanted all to be consistent at the end.

Ref.: [Nea10], [MTW73]

Written by Christine

January 6, 2011 at 10:00 PM

Posted in Mathematics, Matrix, Tensors

Tagged with

2 Responses

Subscribe to comments with RSS.

  1. [...] our previous post, we arrived at the conclusion that, in a 3D Euclidean space, we need a set of 9 real numbers to [...]

  2. [...] a set ofquantities, which transform [...]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.