P42
Basic Concepts
1st-Order Derivatives
值是实数,变量是矢量
If f(x)∈R, then df=∂f∂xdx+∂f∂ydy+∂f∂zdz=[∂f∂x∂f∂y∂f∂z][dxdydz].
∂f∂x=[∂f∂x∂f∂y∂f∂z]
or
∇f(x)=[∂f∂x∂f∂y∂f∂z] gradient |
---|
✅ ∇f(x)=(∂f∂x)T, 重要!!!
Gradient is the steepest direction for increasing f. It’s perpendicular to the isosurface.
✅ isosurface:等高面
P43
值是矢量,变量是是矢量
If f(x)=[f(x)g(x)h(x)]∈R3,then:
✅ Divergence:散度,也是J(x)的 trace
✅ Curl:旋度。
怎么理解 curl?把微分算子∇看作是个向量,让它与 f 做叉乘、在流体模拟中常用。
P44
2nd-Order Derivatives
If f(x)∈R,then:
✅ 求导顺序不影响求导结果,因此 H 是对称的
H的trace称为Laplace
泰勒展开
①x∈R,f(x)∈R
f(x)=f(x0)+f′(x0)(x−x0)+12f″
②x\in R^n,f(x)\in R
f(x)=f(x_0)+\rhd {f}' (x_0)\cdot (x-x_0)+\frac{1}{2}(x-x_0)^TH(x-x_0)+\cdots
✅ 当\mathbf{H}正定时, f(\mathbf{x})满足一些特殊的性质
P45
Quiz:
\frac{∂||\mathbf{x}||}{∂\mathbf{x}} = ?
\frac{∂||\mathbf{x}||}{∂\mathbf{x} } = \frac{∂(\mathbf{\mathbf{x^Tx} } )^{1/2}}{∂\mathbf{x} }=\frac{1}{2}(\mathbf{x^{T}x} )^{−1/2} \frac{∂(\mathbf{x^Tx} )}{∂\mathbf{x} }=\frac{1}{2||\mathbf{x} ||}2\mathbf{x^T} =\frac{\mathbf{x^T} }{||\mathbf{x} ||}
\frac{∂(\mathbf{\mathbf{x^Tx} } )}{∂\mathbf{x} }=\frac{∂(x^2+y^2+z^2)}{∂\mathbf{x} }= \begin{bmatrix}2x& 2y &2z \end{bmatrix}= 2\mathbf{x^T} |
---|
✅ 向量梯度的物理意义:向量沿什么方向变化能最快地变短/长?答:沿它自己的当前方向。
P46
Spring Example
A Spring
🔍 Choi and Ko. 2002. Stable But Responive Cloth. TOG (SIGGRAPH)
✅ Energy:物理上的弹性势能
Force:物理上的力,是 Energy 的 gradient 的反方向;
公式后面有个 T,来源于前面的\nabla ,
直观解释,前面是力的大小,后面是力的方向,推荐论文为以\bot公式推导的详细过程
P47
A Spring with Two Ends
✅ \nabla_0 代表对\mathbf{x}_0的求导
本文出自CaterpillarStudyGroup,转载请注明出处。
https://caterpillarstudygroup.github.io/GAMES103_mdbook/