Difference between revisions of "Tensor index notation"
(Put the expert stuff in sidebars. Trying to describe an expert subject in a way that is understandable to non-experts.) |
(Put out-of-sidebar material back into "familiar" notation.) |
||
| Line 13: | Line 13: | ||
</div> | </div> | ||
|} | |} | ||
| − | More concisely, we could write <math> | + | More concisely, we could write <math>x_i</math> for the components of the vector, where <math>i=1,2,3</math>. To motivate this notation, we will consider the equation <math>Ax=b</math> for some matrix <math>A</math> and vectors <math>\vec{\boldsymbol{x}}</math> and <math>\vec{\boldsymbol{b}}</math>. We will use the convention that if <math>A</math> is a matrix, then <math>(A)_{ij}=a_{ij}</math> is the element of that matrix in the ith row and jth column. One way of thinking of vector equations is as a shorthand for a set of simultaneous equations - each component of the vectors gives an equation. Explicitly, consider the set of three equations for the three unknowns <math>x_1, x_2, x_3</math>: |
:<math> | :<math> | ||
| − | a_{11} | + | a_{11} x_1+a_{12} x_2+a_{13} x_3 = b_1 |
</math> | </math> | ||
:<math> | :<math> | ||
| − | a_{21} | + | a_{21}x_1+a_{22}x_2+a_{23}x_3 = b_2 |
</math> | </math> | ||
:<math> | :<math> | ||
| − | a_{31} | + | a_{31}x_1+a_{32}x_2+a_{33}x_3 = b_3 |
</math> | </math> | ||
Revision as of 17:26, August 4, 2018
Tensor index notation is a method of notation which is of use when dealing with tensors.[1] Particular examples of tensors include vectors and matrices, and index notation can greatly simplify algebraic manipulations involving these types of mathematical object.
The components of a vector (with respect to some co-ordinate system) might be written .
- REALLY CORRECT TENSOR INDEX NOTATION
While elementary treatments of linear algebra and matrix algebra are normally done with subscripts everywhere, proper tensor index notation involves subscripts and superscripts placed very carefully. While the exact reasons for this are beyond the scope of these articles, the articles will show what correct placement looks like. Proper index notation is actually simpler once one gets used to it and understands it. For now, the fundamental principle, is that:
- Indices of vectors are written as superscripts.
Get used to seeing things written that way.
So, the components of the above vector could be written .
More concisely, we could write for the components of the vector, where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle i=1,2,3} . To motivate this notation, we will consider the equation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Ax=b} for some matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A} and vectors and . We will use the convention that if Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A} is a matrix, then is the element of that matrix in the ith row and jth column. One way of thinking of vector equations is as a shorthand for a set of simultaneous equations - each component of the vectors gives an equation. Explicitly, consider the set of three equations for the three unknowns :
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{21}x_1+a_{22}x_2+a_{23}x_3 = b_2 }
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{31}x_1+a_{32}x_2+a_{33}x_3 = b_3 }
This can be rewritten in a matrix/vector form as equation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Ax=b}
:
Comparison of these two forms should convince you that the "go along the column and down the rows" rule for multiplying a matrix and a vector is sensible. We can also write the above system of equations more succinctly in index notation. We notice that in any of the three equations, the first index on the elements is fixed whilst the second varies from 1 to 3. Thus:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sum_{j=1}^3 a_{1j}x_j = b_1 }
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sum_{j=1}^3 a_{3j}x_j = b_3 }
Even more succinctly, we can write this as the single expression
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sum_{j=1}^3 a_{ij}x_j=b_i }
When you see such an equation, remember that it is a shorthand notation for writing three equations at once, for (in 3D). The major advantage with index notation is that objects such as as scalars and therefore commute (ab=ba). Tensors themselves however can represent objects such as matrices and do not in general commute.
Einstein Summation Convention
Index notation greatly simplifies the manipulation of tensors. A commonly used convention when dealing with tensors is the so called "Einstein summation convention." Any index that is repeated exactly twice is assumed to be summed over and the sum symbols are not written.[2] In the example above, the sum:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sum_{j=1}^3 a_{ij}x_j=b_i }
can be written simply as . There are three rules when using this convention:
- Any repeated index is implicitly summed over, as above.
- Each index cannot appear more than twice in any term, so Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{ij}=b_{ik}c_{kl}d_{lj}} is valid but is not as it has more than two k's.
- Each term must contain the same non-repeated indices, so Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{ij}x_j + b_{ij}x_j} is valid but Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{ij}x_j + b_{lj}x_j} is not as the first term does not have the index l.
In general, the indices may subscript or superscript depending on whether the tensors are covariant or contravariant, respectively.