Tensors#
(Spivac, p. 75)
Definition 36 (Tensors)
Let \(V\) be a vector space, often \(V = \mathbb{R}^n\). A k-tensor \(T\) is a multilinear mapping from \(V^k\) to \(\mathbb{R}\):
The set of all tensors over \(V^k\) is called \(\mathcal{I}^k(V)\). This is again a vector space. The set \(\mathcal{I}^1(V)\) is just \(V^*\), the dual space of \(V\). A famous example of an n-tensor is the determinant \(\det \in \mathcal{I}^n(\mathbb{R}^n)\).
Definition 37 (Tensor Product)
For \(S \in \mathcal{I}^k(V)\) and \(T \in \mathcal{I}^l(V)\) we define the tensor product of two tensors \(S, T\) as:
Some formulae:
Theorem 44 (Basis for k-Tensors)
Let \(\{v_1, \ldots, v_n\}\) be a basis for \(V\) and \(\{\phi_1, \ldots, \phi_n\}\) a basis for \(V^*\), so:
Then, the set
is a basis for \(\mathcal{I}^l(V)\) and we have:
Proof. TODO
Each basis vector \(\phi_{i_1} \otimes \ldots \otimes \phi_{i_k}\) can be thought of as a k-dimensional matrix with exactly one entry equal to one at position \(i_1, \ldots, i_k\) and all others equal to zero. Every k-tensor \(T\) is a sum of these:
and we can think of \(T\) as a k-dimensional matrix:
This is, in terms of Pytorch or Numpy, a tensor of shape \((n, \ldots, n)\) (\(k\) times). For \(k = 1\) we get a vector and for \(k = 2\) a matrix. In Einstein notation, we can express \(T\) as:
For \(S \in \mathcal{I}^k(V)\) and \(T \in \mathcal{I}^l(V)\), we get:
Definition 38 (Dual Functions)
Let
be a linear mapping from \(V\) into some other vector space \(W\). Then the dual of f is a linear transformation \(f^*\) defined by:
where:
It holds that:
Definition 39 (Inner Product)
The inner product on a vector space \(V\) is a 2-tensor, denoted by \(\langle \cdot, \cdot \rangle\), required to be symmetric and positive-definite:
The matrix form of the inner product is simply the identity matrix:
Definition 40 (Alternating Tensors, Alt-Operator)
(a) A k-tensor \(\omega\) is called alternating, if the sign of \(\omega\) is changed by swapping any two variables.
The determinant \(\det\) is famously alternating, the inner product is not.
(b) For \(T \in \mathcal{I}^k(V)\), we define \(\text{Alt}(T) \in \mathcal{I}^k(V)\) through:
where \(S_k\) is the set of all permutations of the numbers \(1\) to \(k\).
(c) The set of all alternating tensors in \(\mathcal{I}^k(V)\) is denoted by \(\Lambda^k(V)\). It is a subspace of \(\mathcal{I}^k(V)\).
Theorem 45 (Properties of Alternating Tensors)
a) If \(\omega \in \Lambda^k(V)\), then \(\text{Alt}(\omega) = \omega\)
b) If \(T \in \mathcal{I}^k(V)\), then \(\text{Alt}(T) \in \Lambda^k(V)\)
c) If \(T \in \mathcal{I}^k(V)\), then \(\text{Alt}(T) = \text{Alt}(\text{Alt}(T))\)
Proof. TODO
Definition 41 (Wedge Product)
Let \(\omega \in \Lambda^k(V)\) and \(\eta \in \Lambda^l(V)\). Then, in general, \(\omega \otimes \eta \notin \Lambda^{k+l}(V)\). But the wedge product
is clearly alternating.
Theorem 46 (Properties of the Wedge Product)
Proof. TODO
Remark 13 (Wedge Product of 1-Forms)
Let \(\alpha, \beta \in \Lambda^1(V)\). Then \(\alpha \wedge \beta \in \Lambda^2(V)\) and:
so:
Theorem 47 (Basis for Alternating Tensors)
Let \(\{v_1, \ldots, v_n\}\) be a basis for \(V\) and \(\{\phi_1, \ldots, \phi_n\}\) a basis for \(V^*\), so:
Then, the set
is a basis for \(\Lambda^k(V)\) and we have:
In particular,
So, all alternating n-tensors on \(V\) are multiples of any non-zero one, e.g. \(\det\).
Proof. TODO
Theorem 48 (Basis Transformation)
Let \(\{v_1, \ldots, v_n\}\) be a basis for \(V\), \(\omega \in \Lambda^n(V)\), and \(A \in \text{GL}_n(\mathbb{R})\). Then:
Proof. TODO
Definition 42 (Basis Orientation)
Let \(\{v_1, \ldots, v_n\}\) be a basis for \(V\), \(A \in \text{GL}_n(\mathbb{R})\), and \(w_i = Av_i\). If \(\det A > 0\), \(v\) and \(w\) are said to have the same orientation, and we clearly have: