附录 B · Appendix B · 数学回顾 Math Review
数学回顾 Math Review
本附录为本课程所需的数学工具速查表。术语首次出现给出英文对照;公式块可直接背诵。This appendix is a cheat-sheet of the mathematical tools needed in this course. English terms are given on first mention; the formula blocks are worth memorizing.
1. 微积分基础 Calculus
1.1 导数 The Derivative
导数 (derivative) 描述函数的瞬时变化率。几何上是切线 (tangent line) 的斜率;物理上,位移对时间的导数是速度,速度的导数是加速度。
1.2 求导法则 Rules of Differentiation
1.3 常用导数 Common Derivatives
| 函数 \(f(x)\) | 导数 \(f'(x)\) | 备注 Note |
|---|---|---|
| \(c\) (常数 constant) | \(0\) | — |
| \(x^{n}\) | \(n\,x^{\,n-1}\) | 幂法则 power rule, \(n\in\mathbb{R}\) |
| \(\sin x\) | \(\cos x\) | — |
| \(\cos x\) | \(-\sin x\) | 注意负号 mind the sign |
| \(\tan x\) | \(\sec^{2} x\) | \(\sec x=1/\cos x\) |
| \(e^{x}\) | \(e^{x}\) | 自身不变 invariant |
| \(a^{x}\) | \(a^{x}\ln a\) | — |
| \(\ln x\) | \(1/x\) | \(x>0\) |
| \(\log_{a} x\) | \(\dfrac{1}{x\ln a}\) | 换底 change of base |
| \(\arctan x\) | \(\dfrac{1}{1+x^{2}}\) | — |
1.4 积分 The Integral
不定积分 (indefinite integral) 是导数的逆运算:求 \(F\) 使 \(F'=f\)。定积分 (definite integral) 是黎曼和 (Riemann sum) 的极限,几何上表示曲线下方的有向面积 (signed area)。
1.5 微积分基本定理 Fundamental Theorem of Calculus
基本定理把微分与积分联系起来 (links differentiation and integration):
1.6 常用积分 Common Integrals
以下均省略任意常数 \(C\)。换元法 (substitution) 与分部积分 (integration by parts, \(\int u\,dv=uv-\int v\,du\)) 是计算的两大利器。
2. 泰勒级数 Taylor Series
泰勒级数 (Taylor series) 把一个充分光滑的函数在某点 \(a\) 附近展开为幂级数 (power series)。它是物理中做线性化 / 小量近似的核心工具。
\(a=0\) 时称为麦克劳林级数 (Maclaurin series)。下面是最常用的若干展开(均在 \(x=0\) 处):
| 函数 Function | 级数展开 Series | 收敛域 Convergence |
|---|---|---|
| \(e^{x}\) | \(1+x+\dfrac{x^{2}}{2!}+\dfrac{x^{3}}{3!}+\cdots\) | 所有 \(x\) all \(x\) |
| \(\sin x\) | \(x-\dfrac{x^{3}}{3!}+\dfrac{x^{5}}{5!}-\cdots\) | 所有 \(x\) |
| \(\cos x\) | \(1-\dfrac{x^{2}}{2!}+\dfrac{x^{4}}{4!}-\cdots\) | 所有 \(x\) |
| \(\dfrac{1}{1-x}\) | \(1+x+x^{2}+x^{3}+\cdots\) | \(|x|<1\) |
| \((1+x)^{n}\) | \(1+nx+\dfrac{n(n-1)}{2!}x^{2}+\cdots\) | 二项式 binomial, \(|x|<1\) |
| \(\ln(1+x)\) | \(x-\dfrac{x^{2}}{2}+\dfrac{x^{3}}{3}-\cdots\) | \(-1 |
2.1 小角近似 Small-Angle Approximations
当角度 \(\theta\)(以弧度 radian 为单位)很小时,保留泰勒展开的首项:
3. 多元与偏导 Multivariable & Partial Derivatives
偏导数 (partial derivative) \(\pdv{f}{x}\) 是固定其它变量、只对 \(x\) 求导。它表示沿坐标轴方向的变化率。
3.1 梯度与全微分 Gradient & Total Differential
梯度 (gradient) 把标量场 \(f\) 映射为矢量场,指向 \(f\) 增加最快方向;全微分 (total differential) \(df\) 描述沿任意路径的微小变化。
3.2 多元链式法则 Multivariable Chain Rule
若 \(f=f(x,y)\) 而 \(x=x(t),\,y=y(t)\),则 \(f\) 沿路径对 \(t\) 的全变化率为
3.3 多重积分 Multiple Integrals
二重/三重积分 (double / triple integral) 把一维面积推广到体积、质量、转动惯量等。可逐次 (iterated) 计算,必要时用换元法(如极坐标)。
在极坐标 (polar) 下 \(dA = r\,dr\,d\theta\);在球坐标 (spherical) 下 \(dV = r^{2}\sin\theta\,dr\,d\theta\,d\phi\)。
4. 矢量 Vectors
4.1 分量、模、单位矢量 Components, Magnitude, Unit Vectors
三维矢量 \(\vec{A}\) 在直角坐标 (Cartesian) 下分解为
单位矢量 (unit vector) \(\hat{A}=\vec{A}/\lvert\vec{A}\rvert\) 给出方向、长度为 1。
4.2 点积与投影 Dot Product & Projection
点积 (dot/scalar product) 是一个标量,衡量两矢量的同向程度。
\(\vec{A}\) 在 \(\vec{B}\) 方向上的投影 (projection):标量分量 \(A_{\parallel}=\vec{A}\cdot\hat{B}\);矢量投影 \(\mathrm{proj}_{\vec{B}}\vec{A}=(\vec{A}\cdot\hat{B})\,\hat{B}=\dfrac{\vec{A}\cdot\vec{B}}{\lvert\vec{B}\rvert^{2}}\vec{B}\)。两矢量垂直 iff \(\vec{A}\cdot\vec{B}=0\)。
4.3 叉积 Cross Product
叉积 (cross/vector product) 是一个矢量,方向由右手定则 (right-hand rule) 给出,与 \(\vec{A},\vec{B}\) 都垂直。
4.4 三重积 Triple Products
4.5 矢量微分算符 ∇ (Del / Nabla)
算符 \(\nabla=\hat{\imath}\pdv{}{x}+\hat{\jmath}\pdv{}{y}+\hat{k}\pdv{}{z}\) 统一了三种场运算:
拉普拉斯算子 (Laplacian) 是散度的梯度,作用于标量场:\(\nabla^{2} f \;=\; \dfrac{\partial^{2} f}{\partial x^{2}}+\dfrac{\partial^{2} f}{\partial y^{2}}+\dfrac{\partial^{2} f}{\partial z^{2}}\)。散度衡量场源的”净流出” (net outflow),旋度衡量场的”环量” (circulation)。常见恒等式:\(\nabla\times(\nabla f)=\vec{0}\),\(\nabla\cdot(\nabla\times\vec{F})=0\)。
5. 三角与复数 Trigonometry & Complex Numbers
5.1 常用恒等式 Key Trig Identities
5.2 复数与欧拉公式 Complex Numbers & Euler's Formula
复数 \(z=a+bi\)(\(i^{2}=-1\))有模 \(|z|=\sqrt{a^{2}+b^{2}}\) 与共轭 (conjugate) \(z^{*}=a-bi\)。欧拉公式 (Euler's formula) 把指数与三角联系起来,是振动、波、量子力学的记号基石。
实振动 \(x(t)=A\cos(\omega t+\phi)\) 可视为 \(A e^{i(\omega t+\phi)}\) 的实部;这使线性 ODE 的求解大大简化(用 \(e^{i\omega t}\) 代替 \(\sin/\cos\))。
6. 常微分方程 Ordinary Differential Equations (ODE)
常微分方程 (ODE) 是联系未知函数 \(y(x)\) 及其各阶导数的方程。阶数 (order) = 出现的最高阶导数。物理定律大多以 ODE 形式出现(牛顿第二定律本身就是一个二阶 ODE)。
6.1 可分离变量的一阶 ODE Separable First-Order
若能写成 \(\dv{y}{x}=f(x)\,g(y)\),则分离变量后两边积分 (separate and integrate):
6.2 简谐振子 The Harmonic Oscillator
简谐运动方程 (simple harmonic oscillator) 是物理中最重要的线性 ODE 之一:
猜测解 \(x\propto e^{rt}\) 得特征方程 \(r^{2}+\omega^{2}=0\),根 \(r=\pm i\omega\)。通解 (general solution):
两个任意常数 \(C_{1},C_{2}\)(或 \(A,\phi\))由初始条件 (initial conditions) \(x(0)=x_{0},\;\dot{x}(0)=v_{0}\) 确定:
7. 坐标变换 Coordinate Transformations
7.1 平面:直角 ↔ 极坐标 Cartesian ↔ Polar (2D)
位置矢量 \(\vec{r}=r\,\hat{r}\)。注意 \(\hat{r}=\cos\theta\,\hat{\imath}+\sin\theta\,\hat{\jmath}\) 与 \(\hat{\theta}=-\sin\theta\,\hat{\imath}+\cos\theta\,\hat{\jmath}\) 是随时间变化的单位基,因此求速度要小心:
7.2 三维:柱坐标与球坐标 Cylindrical & Spherical
柱坐标 (cylindrical):在极坐标基础上加 \(z\),体积元 \(dV=r\,dr\,d\theta\,dz\)。
速查要点 Quick Take-Aways
- 导数是变化率,积分是积累;基本定理把二者缝合。基本定理 stitches differentiation and integration together.
- 泰勒展开+ 小量近似是物理推导的万能起手式(单摆、相对论、振动……)。
- 点积给投影(标量),叉积给力矩/角动量(矢量)。
- 欧拉公式 \(e^{i\theta}=\cos\theta+i\sin\theta\) 让振动与波的代数大大简化。
- 简谐振子 \(\ddot{x}+\omega^{2}x=0\) 的解永远是正弦/余弦;初始条件定常数。
- 换坐标系时务必带上体积/面积元(极坐标多一个 \(r\),球坐标多一个 \(r^{2}\sin\theta\))。