前言

上大学了, 终于有大段的时间来整理数学和物理学内容了.

本文有其思想上的参考: 3b1b: 发明新数学是怎样一种体验?

“最原始的"双线性二元运算

让我们来考虑矢量的运算吧!

假如我们需要在线性空间 $\mathbb{V}$ 上定义二元运算, 显然我们会希望这个运算至少是线性的, 否则为啥我们要在线性空间上搞呢. 同时如果一个二元运算是双线性的(就是说对于两个操作数而言它都是线性的), 那么我们只需要对 $\mathbb{V}$ 的基底定义此运算即可.

换句话说, 对于双线性运算 $\mathbf{a} \otimes \mathbf{b}$, 我们可以将其按基底展开:

$$ \begin{aligned} \mathbf{a} \otimes \mathbf{b} &= (\sum_{i=1}^n a_i \mathbf{e_i}) \otimes (\sum_{i=1}^n b_i \mathbf{e_i}) \\ &= \sum_{i=1}^n \sum_{j=1}^n a_i b_j (\mathbf{e_i} \otimes \mathbf{e_j}) \end{aligned} $$

那么, 我们只需要定义所有的 $\mathbf{e_i} \otimes \mathbf{e_j}$ (一共 $n^2$ 个) 即可.

等等, 这都啥跟啥啊????

抽象的开始: $\mathbb{R}^2$

下面我们来举一个具体点的例子. 考虑 $\mathbb{R}^2$ 上的正交归一基 $\mathbf{i}, \mathbf{j}$, 上面的式子化成:

$$ \begin{aligned} \mathbf{a} \otimes \mathbf{b} &= (a_1 \mathbf{i} + a_2 \mathbf{j}) \otimes (b_1 \mathbf{i} + b_2 \mathbf{j}) \\ &= a_1 b_1 (\mathbf{i} \otimes \mathbf{i}) + a_1 b_2 (\mathbf{i} \otimes \mathbf{j}) \\ &+ a_2 b_1 (\mathbf{j} \otimes \mathbf{i}) + a_2 b_2 (\mathbf{j} \otimes \mathbf{j}) \end{aligned} $$

注意我们并没有要求 $\otimes$ 是交换的, 故一般来讲 $\mathbf{i} \otimes \mathbf{j} \neq \mathbf{j} \otimes \mathbf{i}$.

现在我们可以来定义我们的 “运算” 了.

内积

我们先来一个最简单的, 我们如下定义基底之间的 $\otimes$:

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} = 1 &\mathbf{i} \otimes \mathbf{j} = 0\\ & \mathbf{j} \otimes \mathbf{i} = 0 &\mathbf{j} \otimes \mathbf{j} = 1 \end{aligned} $$

代入上面的式子, 我们就得到了内积(inner product), 又叫数量积, 点积:

$$ \begin{aligned} \mathbf{a} \otimes \mathbf{b} = a_1 b_1 + a_2 b_2 \end{aligned} $$

这个运算有其专有的符号, 我们记作 $\mathbb{a} \cdot \mathbb{b}$.

同时, 由我们的定义可以看出, 点积具有交换律

高中叉乘 (二维有向面积)

相信大家在高中的解析几何的结论里都记过矢量叉乘求三角形面积的结论吧. 现在我们来定义一个叉乘.

不严谨警告: 叉乘严格来说只在三维空间有定义(原因下文会讲), 所以这里定义出的两个二维矢量的"叉乘"应该是两个三维矢量$(a_1, a_2, 0)$, $(a_1, a_2, 0)$之间叉乘的结果的模.

如下定义基底之间的 $\otimes$:

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} = 0 &\mathbf{i} \otimes \mathbf{j} = 1\\ & \mathbf{j} \otimes \mathbf{i} = -1 &\mathbf{j} \otimes \mathbf{j} = 0 \end{aligned} $$

代入上面的式子, 我们有:

$$ \begin{aligned} \mathbf{a} \otimes \mathbf{b} = a_1 b_2 - a_2 b_1 \end{aligned} $$

这个就是我们的二维假叉乘. 它同时也跟行列式有关, 事实上:

$$ \mathbf{a} \otimes \mathbf{b} = \begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix} = a_1 b_2 - a_2 b_1 $$

原因等讲完外代数就有了.

真的叉乘

不知道叉乘的快去学

我们先暂时来到 $\mathbb{R}^3$ 来看看真的叉乘. (现在我们的基底是 $\mathbf{i},\ \mathbf{j},\ \mathbf{k}$ 了)

首先我们要玩大一点, 为啥我们的$\otimes$出来的结果一定得是是一个数呢? 假如我们塞其他的对象进去会怎么样?

如下定义基底之间的 $\otimes$:

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} = \mathbf{0} \quad & \mathbf{i} \otimes \mathbf{j} = \mathbf{k} \quad & \mathbf{i} \otimes \mathbf{k} = \mathbf{j} \\ & \mathbf{j} \otimes \mathbf{i} = -\mathbf{k} \quad & \mathbf{j} \otimes \mathbf{j} = \mathbf{0} \quad & \mathbf{j} \otimes \mathbf{k} = \mathbf{i} \\ & \mathbf{k} \otimes \mathbf{i} = -\mathbf{j} \quad & \mathbf{k} \otimes \mathbf{j} = -\mathbf{i} \quad & \mathbf{k} \otimes \mathbf{k} = \mathbf{0} \\ \end{aligned} $$

也就是说, 我们进行一个基底的轮换, 那么我们就会有三维的叉积:

$$ \begin{aligned} \mathbf{a} \otimes \mathbf{b} = & -a_1 b_1\mathbf{0} + a_1 b_2\mathbf{k} - a_1 b_3\mathbf{j} \\ & -a_2 b_1\mathbf{k} - a_2 b_2\mathbf{0} + a_2 b_3\mathbf{i} \\ & +a_3 b_1\mathbf{j} - a_3 b_2\mathbf{i} - a_3 b_3\mathbf{0} \\ = &(a_2 b_3-a_3 b_2)\mathbf{i} + (a_3 b_1-a_1 b_3)\mathbf{j} + (a_1 b_2-a_2 b_1)\mathbf{k} \\ \end{aligned} $$

叉积有其专有的符号: $\mathbf{a} \times \mathbf{b}$, 并且有一个非常重要的性质: 反交换律:

$$ \mathbf{a} \times \mathbf{b} = - \mathbf{b} \times \mathbf{a} $$

(交换后符号取反)

好的, 现在我们回到 $\mathbf{R}^2$

张量积

我们可以偷懒一点: 为什么一定要算呢?

我们干脆就承认下面这些:

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} &\mathbf{i} \otimes \mathbf{j}\\ & \mathbf{j} \otimes \mathbf{i} &\mathbf{j} \otimes \mathbf{j} \end{aligned} $$

是独立的对象好了. 就好像 $\Delta x$ 是一块的一样, 上面的四个东西也分别是四个一块的对象.

现在我们会发现, 所有 $\mathbf{a} \otimes \mathbf{b}$ 都是上面的四个东西的线性组合, 也就是说我们去到了一个新的空间, 这个空间是一个四维的线性空间.

外积/楔积 (wedge product)

我们如下定义:

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} = 0 & \mathbf{i} \otimes \mathbf{j} = \mathbf{i} \otimes \mathbf{j} \\ & \mathbf{j} \otimes \mathbf{i} = -\mathbf{i} \otimes \mathbf{j} & \mathbf{j} \otimes \mathbf{j} = 0 \end{aligned} $$

换句话讲, 我们构建一个新的由不同基底组成的对象, 并且让它 对基底的顺序敏感, 在基底顺序为自然排列的时候就是正的, 每换一下相邻两个基底的顺序就是负的.

这种运算有其独有的名字, 外积/楔积 (wedge product), 记作 $\mathbf{i} \wedge \mathbf{j}$. 像这种具有反交换律且有双线性的性质被称为交替双线性.

楔积可以用来定义行列式.

对称积(我自己起的名字, 一种具有对称双线性的运算)

$$ \begin{aligned} & \mathbf{i} \otimes \mathbf{i} = 0 & \mathbf{i} \otimes \mathbf{j} = \mathbf{i} \otimes \mathbf{j} \\ & \mathbf{j} \otimes \mathbf{i} = \mathbf{i} \otimes \mathbf{j} & \mathbf{j} \otimes \mathbf{j} = 0 \end{aligned} $$

同上构建新的由不同基底组成的对象, 并且让其对基底的顺序 敏感, 也就是说让其具有交换性.

这种运算暂时还没有名字, 但是其具有的交换律并且有双线性的性质被称为对称双线性.

这种运算可以拿来定义积和式. 维基百科: 积和式