Note 

This way of viewing tensors, called tensor analysis, was used by Einstein and is generally preferred by physicists. It is, very grossly, a generalization of the concept of vectors, matrices, and linear transformations, and allows the writing of equations independently of any given coordinate system.
Tensor quantities may be categorized by considering the number of indices inherent in their description. The scalar quantities are those that can be represented by a single number (indices are not needed) —speed, mass, temperature, for example. There are also vectorlike quantities such as force that require a list of numbers for their description (one index is required so that direction can be accounted for). Finally, quantities such as quadratic forms naturally require a multiplyindexed array for their representation. These latter quantities can only be conceived of as tensors. Some well known examples of tensors in geometry are quadratic forms, and the curvature tensor. Examples of physical tensors are the energymomentum tensor and the polarization tensor.
Actually, the tensor notion is quite general and applies to all of the above examples; scalars and vectors are special kinds of tensors. The feature that distinguishes a scalar from a vector, and distinguishes both of those from a more general tensor quantity is the number of indices in the representing array. This number is called the rank (or the order) of a tensor. Thus, scalars are rank zero tensors (with no indices at all) and vectors are rank one tensors.
It should be noted that the arrayofnumbers representation of a tensor is not the same thing as the tensor. An image and the object represented by the image are not the same thing. The mass of a stone is not a number. Rather, the mass can be described by a number relative to some specified unit mass. Similarly, a given numerical representation of a tensor only makes sense in a particular coordinate system.
It is also necessary to distinguish between two types of indices, depending on whether the corresponding numbers transform covariantly or contravariantly relative to a change in the frame of reference. Contravariant indices are written as superscripts, while the covariant indices are written as subscripts. The type (or valence) of a tensor is the pair $(p,q)$, where $p$ is the number of contravariant and $q$ the number of covariant indices, respectively. Note that a tensor of type $(p,q)$ has a rank of p + q. It is customary to represent the actual tensor, as a standalone entity, by a boldface symbol such as $mathbf\{T\}$. The corresponding array of numbers for a type $(p,q)$ tensor is denoted by the symbol $T^\{i\_1ldots\; i\_p\}\_\{j\_1ldots\; j\_q\},$ where the superscripts and subscripts are indices that vary from $1$ to $n$. The number $n$, the range of the indices, is called the dimension of the tensor; the total number of degrees of freedom required for the specification of a particular tensor is the dimension of the tensor raised to the power of the tensor's rank.
Again, it must be emphasized that the tensor $mathbf\{T\}$ and the representing array $T^\{i\_1ldots\; i\_q\}\_\{j\_1ldots\; j\_p\}$ are not the same thing. The values of the representing array are given relative to some frame of reference, and undergo a linear transformation when the frame is changed.
Finally, it must be mentioned that most physical and geometric applications are concerned with tensor fields, that is to say tensor valued functions, rather than tensors themselves. Some care is required, because it is common to see a tensor field called simply a tensor. There is a difference, however; the entries of a tensor array $T^\{i\_1ldots\; i\_q\}\_\{j\_1ldots\; j\_p\}$ are numbers, whereas the entries of a tensor field are functions. The present entry treats the purely algebraic aspect of tensors. Tensor field concepts, which typically involve derivatives of some kind, are discussed elsewhere.
In order to represent a tensor by a concrete array of numbers, we require a frame of reference, which is essentially a basis of $mathcal\{U\}$, say $mathbf\{e\}\_1,ldots,mathbf\{e\}\_n\; in\; mathcal\{U\}.$ Every vector in $mathcal\{U\}$ can be "measured" relative to this basis, meaning that for every $mathbf\{v\}inmathcal\{U\}$ there exist unique scalars $v^i$, such that (note the use of the Einstein notation)
These scalars are called the components of $mathbf\{v\}$ relative to the frame in question.
Let $varepsilon^1,ldots,varepsilon^ninmathcal\{U\}^*$ be the corresponding dual basis, i.e.,
More generally, every tensor $mathbf\{T\}inmathcal\{U\}^\{p,q\}$ has a unique representation in terms of components. That is to say, there exists a unique array of scalars $T^\{i\_1ldots\; i\_p\}\_\{j\_1ldots\; j\_q\}$ such that
Let $mathbf\{v\}inmathcal\{U\}$ be a vector, and let $v^i$ and $hat\{v\}^i$ denote the corresponding component arrays relative to the two frames. From
where $B^i\; \{\}\_j$ is the matrix inverse of $A^i\; \{\}\_j$, i.e.,
To establish the transformation rule for covectors, we note that the transformation rule for the dual basis takes the form
The transformation rule for covector components is covariant. Let $mathbf\{alpha\}in\; mathcal\{U\}^*$ be a given covector, and let $alpha\_i$ and $hat\{alpha\}\_i$ be the corresponding component arrays. Then
In light of the above discussion, we see that the transformation rule for a general type $(p,q)$ tensor takes the form