向量几何、投影与定向面积
引入| English | 释义 | 拼音 |
|---|---|---|
| projection/prəˈdʒekʃn/ | 投影 | tóu yǐng |
| cross product/krɒs ˈprɒdʌkt/ | 叉积 | chā jī |
| normal/ˈnɔːml/ | 法向量 | fǎ xiàng liàng |
沿路径多远,以及距离多远?
- 无人机的位移可能部分沿飞行路径方向,部分偏离该路径。向量投影将这些分量分离;点积衡量对齐程度,而叉积在三维空间中衡量定向面积。
- 我们将关联角度、最近点、三角形面积、平面和体积。请记录每个答案的类型:标量、向量、长度或方程。
点积与非零方向
- 在欧几里得坐标系中,$\mathbf u\cdot\mathbf v=\sum_i u_i v_i$ 是标量。对于非零向量,它等于 $|\mathbf u||\mathbf v|\cos\theta$,其中包含 $0\leq\theta\leq\pi$。零向量没有方向且无定义的角度。
- 正数、零和负数乘积分别对应 $\theta<90^\circ$、$\theta=90^\circ$ 和 $\theta>90^\circ$。锐角和钝角排除端点:同向向量夹角为 $0^\circ$,反向向量夹角为 $180^\circ$。
The zero vector makes a right angle with every nonzero vector because their dot product is zero.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The zero vector has no direction and no defined angle. The angle formula requires both lengths to be nonzero.
处理符号与角度
- 对于 $\mathbf u=(1,2,-1)$ 和 $\mathbf v=(3,-1,1)$,乘积为 $3-2-1=0$。两向量均非零,故它们互相垂直。零乘积并不意味着任一向量必须为零。
- 对于 $(1,1,0)$ 和 $(1,0,1)$,乘积为 1 且两者模长均为 $\sqrt2$。因此 $\cos\theta=1/2$ 和 $\theta=\pi/3$。除以两者的模长以求出具体角度,而不仅仅是判断其类型。
定义了哪种角度类型?
利用非零条件和点积符号。
$(1, 2, -1)$ and $(3, -1, 1)$ are perpendicular.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Both vectors are nonzero and their dot product is 3-2-1=0, so they are perpendicular.
推导向量投影
- 将 $\mathbf v$ 投影到由非零向量 $\mathbf u$ 确定的直线上。投影后的向量形式为 $\mathbf p=\lambda\mathbf u$。要求余向量 $\mathbf r=\mathbf v-\mathbf p$ 满足条件 $\mathbf r\cdot\mathbf u=0$。
- 解得 $\lambda=(\mathbf v\cdot\mathbf u)/(\mathbf u\cdot\mathbf u)$,进而得到 $\mathbf p=\dfrac{\mathbf v\cdot\mathbf u}{\mathbf u\cdot\mathbf u}\mathbf u$。分母为正,因为 $\mathbf u\ne\mathbf0$。
向量、带符号分量与长度
- 对于 $\mathbf v=(2,3)$ 到 $\mathbf u=(1,1)$ 的投影,$\lambda=5/2$,因此 $\mathbf p=(5/2,5/2)$ 和 $\mathbf r=(-1/2,1/2)$。验证 $\mathbf r\cdot\mathbf u=0$:余向量垂直于目标直线。
- 带符号标量分量为 $(\mathbf v\cdot\mathbf u)/|\mathbf u|=5/\sqrt2$;投影的长度为其绝对值。对于 $\mathbf v=(-2,1)$ 到 $(1,0)$ 的投影,这些值分别为 $-2$ 和 2,而向量投影为 $(-2,0)$。
The vector projection of $(2, 3)$ onto $(1, 1)$ is(是)
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The coefficient is (2+3)/(1+1)=5/2. Multiply the target vector (1,1) by it to obtain (5/2,5/2); the remainder (-1/2,1/2) is perpendicular to (1,1).
Find the signed scalar component of $(-2,1)$ in the direction $(1,0)$.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Divide the dot product -2 by the target length 1. The signed component is -2; its absolute value 2 is the projection length.
投影法求最近点
- 原 $\mathbf w=(3,4)$ 投影到 $(1,0)$ 得到 $\mathbf p=(3,0)$ 及余数 $\mathbf r=(0,4)$。目标线上每一点 $\mathbf p+s\mathbf u$ 到 $\mathbf w$ 的平方距离均为 $|\mathbf r|^2+s^2|\mathbf u|^2$,因为交叉项为零。最小值为 $|\mathbf r|$,位于 $s=0$ 处。
- 对于偏移直线 $L=\{\mathbf a+t\mathbf u\}$,先对位移 $\mathbf q-\mathbf a$ 进行投影,再加回 $\mathbf a$。用任意非零倍数替换 $\mathbf u$ 不会改变投影向量及最近点的位置。
Find the nearest point to $(4,3)$ on the line $(1,1)+t(1,1)$.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Project displacement (3,2) onto (1,1): coefficient 5/2. Add (1,1) back to obtain (7/2,7/2). The residual (1/2,-1/2) is perpendicular to the line.
Project $\mathbf v=(4,1)$ onto $\mathbf u=(1,2)$. Give the vector projection, perpendicular remainder, signed scalar component and distance from $\mathbf v$ to the line spanned by $\mathbf u$.
将你的数量、非零条件及校验结果与模型进行比较。
计算三维叉积
- 对于$\mathbf u,\mathbf v\in\mathbb R^3$,写出$\mathbf u\times\mathbf v=(c_1,c_2,c_3)$,其中$c_1=u_2v_3-u_3v_2$、$c_2=u_3v_1-u_1v_3$和$c_3=u_1v_2-u_2v_1$。请仔细检查中间分量的符号。
- 结果是一个向量,同时垂直于两个输入向量。若输入非零,其长度为$|\mathbf u||\mathbf v|\sin\theta$。零叉积意味着线性相关;对于两个非零向量,这意味着它们方向相同或相反。
顺序决定了垂直方向
- 在右手坐标系中,$\mathbf e_1\times\mathbf e_2=\mathbf e_3$。将右手指从第一个向量向第二个向量沿较小角度弯曲;当叉积非零时,拇指指向即为叉积方向。
- 交换输入会反转向量:$\mathbf v\times\mathbf u=-\mathbf u\times\mathbf v$。其长度保持不变。非零叉积选定一个方向;若输入平行则给出零向量,因此该乘积未选定任何垂直方向。
If $\mathbf u\times\mathbf v=(2,-1,4)$, what is $\mathbf v\times\mathbf u$?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Swapping the order reverses every component of the vector; its length stays the same.
从平行四边形到三角形
- 由$\mathbf u,\mathbf v$张成的平行四边形面积为$|\mathbf u\times\mathbf v|$。顶点为$A,B,C$的三角形面积为其一半,使用来自同一顶点的两条边,例如$B-A$和$C-A$。
- 对于$(0,0,0)$、$(2,0,0)$和$(0,3,0)$,边向量的叉积为$(0,0,6)$,三角形面积为3。原图还显示了四个轴方向:它们的点积将在后面用到。
面积与位置或顺序无关
- 对于原始顶点$A=(0,0,0)$、$B=(1,2,0)$和$C=(3,1,0)$,边向量的叉积为$(0,0,-5)$。面积为$5/2$,绝不可能是$-5/2$。
- 将所有顶点平移相同的向量不会改变边向量之差。交换$B,C$会反转叉积但保持其长度。三个共线顶点给出零面积。
Find the area of the triangle with vertices $(0,0,0)$, $(1,2,0)$ and $(3,1,0)$.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Use edges (1,2,0) and (3,1,0) from the origin. Their cross product is (0,0,-5); its length is 5, so the triangle area is 5/2.
支持 $A=(1,1,1)$, $B=(2,3,1)$ and $C=(4,2,1)$, find an oriented normal using $(B-A)\times(C-A)$ and the triangle area. What changes if you swap $B,C$?
将你的数量、非零条件及校验结果与模型进行比较。
平面需要非零法向量
- 平面的法向量是一个非零向量,垂直于该平面内的所有方向。过$\mathbf a$且法向量为$\mathbf n$的平面方程为$\mathbf n\cdot(\mathbf x-\mathbf a)=0$。
- 等价地,$\mathbf n\cdot\mathbf x=d$配合$d=\mathbf n\cdot\mathbf a$。两边同乘同一个非零标量描述的是同一个平面。若$\mathbf n=\mathbf0$,当$d=0$时方程表示整个空间,当$d\ne0$时无解。
方程 $0x+0y+0z=0$ describes one plane with normal $(0,0,0)$.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Every point in space satisfies this equation. A plane equation needs a nonzero normal.
点到平面距离及垂足
- $\mathbf q-\mathbf a$ 沿 $\mathbf n$ 方向的有符号分量为 $(\mathbf n\cdot\mathbf q-d)/|\mathbf n|$。其绝对值即为距离。最近点为 $\mathbf q-\dfrac{\mathbf n\cdot\mathbf q-d}{|\mathbf n|^2}\mathbf n$;它位于平面上,且连接向量垂直于该平面。
- 对于$2x-y+2z=6$,法向量长度为3,故原点距离为2。对于$(1,1,1)$和$x+2y+2z=14$,有符号分子为$-9$,距离为3,最近点为$(2,3,3)$。
Find the distance from $(1, 1, 1)$ to the plane $x + 2y + 2z = 14$.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
The nonzero normal is (1,2,2), of length 3. The signed numerator is 1+2+2-14=-9; take its absolute value and divide by 3. The nearest point is (2,3,3).
由三个点构建平面
- Take $A=(1,0,0)$, $B=(2,1,0)$ and $C=(1,1,1)$. The edges $(1,1,0)$ and $(0,1,1)$ have cross product $(1,-1,1)$. Thus the plane is $x-y+z=1$; substitute all three points to check it.
- 三个不共线的点给出非零法向量及唯一平面。若三点共线,则边向量线性相关且叉积为零;它们位于无数个平面中,因此无法通过此构造确定唯一的平面。
For the plane $x-y+z=1$ and point $Q=(2,0,2)$, find the distance and nearest point. Show that multiplying the plane equation by $-2$ changes neither answer.
将你的数量、非零条件及校验结果与模型进行比较。
混合积:高乘底面积
- 标量三重积$S=\mathbf u\cdot(\mathbf v\times\mathbf w)$是一个标量。叉积给出法向量且长度等于底面积;与$\mathbf u$的点积乘以有符号高度。平行六面体体积为$|S|$。
- $S=0$当且仅当$\mathbb R^3$中的三个向量线性相关,包括含零向量的情况。它们的张成空间位于过原点的某个平面内,可能是直线或单个点。
支持 $\mathbf u,\mathbf v,\mathbf w\in\mathbb R^3$, if $\mathbf u\cdot(\mathbf v\times\mathbf w)=0$, the three vectors are linearly ____.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The scalar triple product is the determinant of the three vectors. It vanishes exactly when they are linearly dependent; the spanned parallelepiped has zero volume.
有向体积与普通体积
- 对于$\mathbf u=(1,0,0)$,$\mathbf v=(0,2,0)$和$\mathbf w=(1,1,3)$,$\mathbf v\times\mathbf w=(6,0,-2)$,因此$S=6$。体积为6。交换两个输入使$S=-6$变号,但体积6不变。
- A cyclic move preserves $S$: both $\mathbf v\cdot(\mathbf w\times\mathbf u)$ and $\mathbf w\cdot(\mathbf u\times\mathbf v)$ equal $S$. For a tetrahedron with the three edge vectors from one vertex, volume is $|S|/6$; in this example it is 1.
这是什么类型的结果?
区分向量结果与带符号及非负标量。
A tetrahedron has three edges $(1,0,0)$, $(0,2,0)$ and $(1,1,3)$ from one vertex. Find its volume.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
The scalar triple product is 6. A tetrahedron has one sixth of the corresponding parallelepiped volume, so its volume is |6|/6=1.
三对钝角方向可以共存
- In a plane, $(2,0)$, $(-1,2)$ and $(-1,-2)$ have pairwise dot products $-2,-2,-3$. Thus all three smaller angles are obtuse. The directions have cyclic gaps about $117^\circ,127^\circ,117^\circ$, summing to $360^\circ$ before rounding.
- 考虑角度时,先将每个非零向量归一化为单位方向向量:正数缩放会改变点积的大小,但不改变其符号。下文限制条件针对的是共面向量,而非三维空间中任意向量。
为何四对负积方向无法共存
- 假设四个非零平面向量的每对乘积均为负数。它们的方向互不相同;按圆周顺序排列。每个连续循环间隔$g$都包含$\cos g<0$,因此$90^\circ<g<270^\circ$。所有四个间隔均超过$90^\circ$,与其总和$360^\circ$矛盾。
- 严格负性很重要。原始的$\mathbf e_1,-\mathbf e_1,\mathbf e_2,-\mathbf e_2$有两个乘积$-1$和四个零,因此每个乘积都是非正的。它们满足较弱的条件,但不满足严格负性的要求。
Four nonzero vectors in a common plane can have all six pairwise dot products strictly negative.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Order the four distinct directions around a circle. Every successive gap would exceed 90 degrees, so the four gaps would sum to more than 360 degrees.
Give three nonzero planar vectors with all pairwise dot products negative, and explain why four cannot exist in a common plane. Do four vectors in $\mathbb R^3$ obey the same restriction?
将你的数量、非零条件及校验结果与模型进行比较。
回顾:选择合适的计算量
- 求夹角或投影前先检查方向是否非零。最近点问题使用垂直余量,三角形面积用边差向量,平面用非零法向量,体积用三重积的绝对值。
- 投影:向量沿指定非零方向的分量。
- 叉积:在三维空间中,结果向量同时垂直于两个输入向量,其模长等于以二者为邻边的平行四边形面积,方向由输入顺序决定。
- 法向量:垂直于平面或规则曲面上某点切平面的非零向量。