Tensor - Calculation

Last Update:May 18, 2024 am

Unless otherwise specified, we only consider the Euclidean space $\mathbb{R}^n$ with orthonormal basis and its dual space. The tensor is in bold and the scalar is in standard Roman font.

The elements in $\mathbb{R}^m$ are column vectors $\mathbf{a}^i=[a^1,a^2,\cdots,a^m]^T$. The elements in are row vectors $ \mathbf{b}_j=[b_1,b_2,\cdots,b_n]$. The orthonormal basis of $\mathbb{R}^m$ can be written as $\boldsymbol{ \delta } ^1,\cdots \boldsymbol{ \delta } ^m $, where the $i$-th component of $\boldsymbol{ \delta } ^i$ is $ 1 $ while other components equal $0$. The orthonormal basis of $(\mathbb{R}^n)^*$ can be written as row vectors $\boldsymbol{ \delta }_1,\cdots, \boldsymbol{ \delta }_n$, where the $i$-th component of $ \boldsymbol{ \delta }_j$ is $1$ while other components equal $0$.

Tensor Product

Define that $(\mathbb{R}^n)^*\otimes \mathbb{R}^m $ is a free vector space with basis $\boldsymbol{ \delta }_j \otimes \boldsymbol{ \delta } ^i$. It is easy to check

is a bilinear mapping. That is to say,

According to the isomorphism $\mathcal{L}(\mathbb{R}^n, \mathbb{R}^m )\cong \mathrm{M}_{m\times n}( \mathbb{R} )$, a linear map $f:\mathbb{R}^n\to\mathbb{R}^m\in\mathcal{L}(\mathbb{R}^n, \mathbb{R}^m ) $ can be represented by a matrix

We can verify that the mapping

is a linear isomorphism. Therefore, we have the following isomorphic relationship,

and the elements in $ (\mathbb{R}^n)^*\otimes \mathbb{R}^m $ can be written as matrices. A simple example is

Tensor

Let $V=\mathbb{R}^n$. In differential geometry, we often consider the tensor product between a vector space $V$ and its dual space $V^*$. The tensor product

has elements

called $(r,s)$ type mixed tensors, or simply $(r,s)$ tensors. Denote

then we have

If we introduce the shorthand notation , , the above equation can be further simplified to

Tensor Operations

Tensors have two operations: multiplication and contraction. The multiplication of an $(r_1,s_1)$ tensor with an $(r_2,s_2)$ tensor is simply the tensor product

The trace is defined as the following mapping,

It is easy to verify that this is a linear map. From this, we can define the contraction operation. Let $1 \le p \le r$, $1 \le q \le s$, the contraction of an $(r,s)$ tensor is defined as

where the indices marked with ${}^\widehat{\hspace{0.8em}}$ have been omitted.


Copyright Notice: All articles in this blog are licensed under CC BY-SA 4.0 unless declaring additionally.