2026-04-01 | 预计阅读:22 分钟 Read Time: 22 min read | latex

实战:爱因斯坦相对论与时空几何的数学物理推导报告

爱因斯坦的相对论(Relativity)是现代物理学的核心支柱之一。它不仅颠覆了牛顿的绝对时空观,更首次将时间与空间紧密结合,描述为一个弯曲的四维流形(Spacetime Manifold)。

本报告旨在从物理第一性原理出发,系统推导狭义相对论的洛伦兹变换矩阵、质能等效方程 $E=mc^2$,并建立广义相对论流形几何与爱因斯坦场方程的严格数学表达。


一、 相对论核心理论推导拓扑

在展开复杂的微积分与张量代数之前,我们通过概念流向图来厘清相对论物理逻辑的演进路线:

graph TD
    Postulate[相对性原理 & 光速不变] --> Lorentz[洛伦兹变换矩阵]
    Lorentz --> Kinematics[时空收缩与时间膨胀]
    Lorentz --> MassEnergy[相对论动量与质能等效 E=mc^2]
    
    Equivalence[等效原理 & 广义相对性] --> Curvature[时空几何弯曲与度规张量]
    Curvature --> Geodesic[测地线方程]
    Curvature --> FieldEqs[爱因斯坦场方程 G=8πT]

二、 狭义相对论 (Special Relativity)

狭义相对论建立在两个基本假设之上:

  1. 物理定律在所有惯性参考系中具有相同的形式(相对性原理)。
  2. 在所有惯性参考系中,真空中光速 $c$ 恒定不变(光速不变原理)。

1. 洛伦兹变换 (Lorentz Transformation) 的严格推导

考虑两个惯性系 $S$ 和 $S'$。$S'$ 相对于 $S$ 以速度 $v$ 沿 $x$ 轴正方向运动。假设在 $t = t' = 0$ 时,两坐标系原点重合,且发射一光信号。

在两个参考系中,光波阵面方程分别表示为:

$x^2 + y^2 + z^2 - c^2 t^2 = 0$

$x'^2 + y'^2 + z'^2 - c'^2 t'^2 = 0$

由于垂直于运动方向的维度不受影响,$y' = y$,$z' = z$。我们寻找 $x$ 和 $t$ 到 $x'$ 和 $t'$ 的线性映射:

$x' = \gamma (x - vt)$

根据相对性原理,反向变换应仅改变速度方向:

$x = \gamma (x' + vt')$

将第一个式子代入第二个:

$x = \gamma \left( \gamma(x - vt) + vt' \right) \quad \Rightarrow \quad vt' = \frac{x}{\gamma} - \gamma x + \gamma vt \quad \Rightarrow \quad t' = \gamma t + \frac{x}{v} \left( \frac{1}{\gamma} - \gamma \right)$

将 $x'$ 和 $t'$ 的表达式代入时空球面对称方程 $x^2 - c^2 t^2 = x'^2 - c^2 t'^2$:

$x^2 - c^2 t^2 = \gamma^2 (x - vt)^2 - c^2 \gamma^2 \left( t + \frac{x}{v} \left( \frac{1}{\gamma^2} - 1 \right) \right)^2$

经过代数化简与同系数匹配,我们可解出洛伦兹因子 $\gamma$:

$\gamma = \frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$

进而得到完整的洛伦兹变换四维矩阵表达(此处我们将 LaTeX 公式和源代码分栏展示,以便于学习):

$\begin{pmatrix} c t' \\ x' \\ y' \\ z' \end{pmatrix} = \begin{pmatrix} \gamma & -\beta\gamma & 0 & 0 \\ -\beta\gamma & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} c t \\ x \\ y \\ z \end{pmatrix} \quad \left( \text{其中 } \beta = \frac{v}{c} \right)$

2. 质能等效方程 $E = mc^2$ 的微分推导

假设物体在变力 $F$ 作用下从静止开始运动。根据相对论动力学,质量随速度增加而改变:

$m(v) = \gamma m_0 = \frac{m_0}{\sqrt{1 - \frac{v^2}{c^2}}}$

其中 $m_0$ 为静止质量。力的定义为动量随时间的变化率:

$F = \frac{\mathrm{d}p}{\mathrm{d}t} = \frac{\mathrm{d}(mv)}{\mathrm{d}t}$

物体获得功转化为相对论动能 $E_k$:

$\mathrm{d}E_k = F \cdot \mathrm{d}x = \frac{\mathrm{d}(mv)}{\mathrm{d}t} \mathrm{d}x = \mathrm{d}(mv) \cdot \frac{\mathrm{d}x}{\mathrm{d}t} = v \cdot \mathrm{d}(mv) = v^2 \mathrm{d}m + mv \mathrm{d}v$

我们对质量平方公式 $m^2 (c^2 - v^2) = m_0^2 c^2$ 进行微分:

$\mathrm{d}\left[ m^2 (c^2 - v^2) \right] = \mathrm{d}(m_0^2 c^2) = 0$

$2m \mathrm{d}m (c^2 - v^2) - 2m^2 v \mathrm{d}v = 0 \quad \Rightarrow \quad \mathrm{d}m (c^2 - v^2) = mv \mathrm{d}v \quad \Rightarrow \quad c^2 \mathrm{d}m = v^2 \mathrm{d}m + mv \mathrm{d}v$

将此关系式代入动能微分公式中:

$\mathrm{d}E_k = c^2 \mathrm{d}m$

对上式从静止质量 $m_0$ 积分到当前运动质量 $m$:

$E_k = \int_{m_0}^{m} c^2 \mathrm{d}m = (m - m_0) c^2 = m c^2 - m_0 c^2$

因此,物体的总能量 $E$ 为静止能量与动能之和:

$E = E_k + m_0 c^2 = m c^2$

由此,我们以极其简洁严谨的微分几何手段证明了著名的爱因斯坦质能等效方程。 $\text{ Q.E.D.}$


三、 广义相对论与黎曼几何 (General Relativity)

当物理从惯性系扩展到非惯性参考系时,引力被等效为时空的几何弯曲。描述这一弯曲的基础是黎曼几何与张量微积分。

1. 度规张量 (Metric Tensor) 与时空间隔

在弯曲时空中,四维时空间隔微元 $\mathrm{d}s^2$ 的通用表达为:

$\mathrm{d}s^2 = g_{\mu\nu} \mathrm{d}x^\mu \mathrm{d}x^\nu$

其中 $g_{\mu\nu}$ 为协变度规张量(Metric Tensor),它定义了时空的局部几何属性。在平平闵氏时空中,度规降级为闵可夫斯基度规 $\eta_{\mu\nu} = \mathrm{diag}(-1, 1, 1, 1)$。

2. 克里斯托费尔符号 (Christoffel Symbols)

克里斯托费尔符号代表了坐标系弯曲产生的联络(Connection),它描述了向量在弯曲空间平行移动时的变化率:

$\Gamma^\lambda_{\mu\nu} = \frac{1}{2} g^{\lambda\sigma} \left( \frac{\partial g_{\sigma\nu}}{\partial x^\mu} + \frac{\partial g_{\mu\sigma}}{\partial x^\nu} - \frac{\partial g_{\mu\nu}}{\partial x^\sigma} \right)$

3. 测地线方程 (Geodesic Equation)

在引力场中自由落体的粒子,其轨迹在弯曲时空中是四维“最直”的路径(测地线)。该轨迹由测地线方程严格刻画:

$\frac{\mathrm{d}^2 x^\mu}{\mathrm{d}\tau^2} + \Gamma^\mu_{\alpha\beta} \frac{\mathrm{d}x^\alpha}{\mathrm{d}\tau} \frac{\mathrm{d}x^\beta}{\mathrm{d}\tau} = 0$

其中 $\tau$ 为粒子的固有时间(Proper Time)。

4. 爱因斯坦场方程 (Einstein Field Equations)

爱因斯坦场方程是广义相对论的巅峰之作。它建立了物质与能量分布(能量-动量张量 $T_{\mu\nu}$)和时空几何弯曲(爱因斯坦张量 $G_{\mu\nu}$)之间的定量动力学桥梁(此处我们将 LaTeX 公式和源代码分栏展示,以便于学习):

$G_{\mu\nu} \equiv R_{\mu\nu} - \frac{1}{2} R g_{\mu\nu} = \frac{8\pi G}{c^4} T_{\mu\nu}$

其中:

  • $R_{\mu\nu}$ 为里奇曲率张量(Ricci Curvature Tensor),由黎曼曲率张量缩并得到。
  • $R \equiv g^{\mu\nu} R_{\mu\nu}$ 为标量曲率(Ricci Scalar)。
  • $G$ 为牛顿万有引力常数。
  • $T_{\mu\nu}$ 为物质能量动量张量。

该公式完美地总结了惠勒的名言:“物质告诉时空如何弯曲,时空告诉物质如何运动。”


四、 常见问题与避坑指南(FAQ)

  1. 问题:公式中包含希腊字母(如 \mu, \nu, \gamma)或者特殊算子,为什么有时候会渲染错误,显示红色的 KaTeX 报错?
    • 解决方法:这通常是因为在反斜杠后面拼写错误,或者把两个独立的指令粘连在了一起(例如,将 \gamma_j \hat{x} 错写成 \gamma_j \hatx 就会因为 \hatx 指令不存在而报错)。请仔细检查每个 LaTeX 命令的拼写,并确保希腊字母与其他数学符号、字母之间有适当的空格或大括号分隔。
  2. 问题:在编辑框中输入百分号 % 或下划线 _ 为什么导致整段公式排版错乱、缺失甚至无法渲染?
    • 解决方法:在 LaTeX 语法中,百分号 % 是注释符号(会隐藏后面的一整行),而下划线 _ 是下角标激活符。如果要在公式中表示普通的百分号或下划线,必须使用转义字符,分别写成 \%\_
  3. 问题:如何排版一个极其宽长的物理公式(如爱因斯坦场方程展开),使其在手机屏幕或窄屏上不发生截断和溢出?
    • 解决方法:超长的单行公式会导致页面横向撑开甚至被边缘截断。建议使用 \begin{aligned} ... \end{aligned}\begin{split} ... \end{split},在项与项之间(如加号、等号处)使用 \\ 强制手动折行,这样能保证公式在各种屏幕尺寸下的完美表现。

Practice: Mathematical and Physical Derivation of Einstein's Relativity and Spacetime Geometry

Einstein's theory of relativity represents one of the twin pillars of modern physics. It shattered the Newtonian view of absolute space and time, demonstrating that spacetime is dynamical and behaves as a curved, four-dimensional pseudo-Riemannian manifold.

This laboratory report derives Special Relativity's Lorentz Transformation matrix, the mass-energy equivalence $E=mc^2$, and introduces Riemann geometry and the Einstein Field Equations.


1. Conceptual Roadmap of Relativistic Derivations

Before looking at the tensor calculus, we map the logical progression of concepts:

graph TD
    Postulate[Relativity & Constancy of c] --> Lorentz[Lorentz Transformation Matrix]
    Lorentz --> Kinematics[Time Dilation & Length Contraction]
    Lorentz --> MassEnergy[Relativistic Momentum & E=mc^2]
    
    Equivalence[Equivalence Principle & Gen Relativity] --> Curvature[Spacetime Curvature & Metric Tensor]
    Curvature --> Geodesic[Geodesic Equations]
    Curvature --> FieldEqs[Einstein Field Equations G=8πT]

2. Special Relativity

Special Relativity is anchored upon two basic postulates:

  1. The Laws of Physics are invariant in all inertial frames of reference (Principle of Relativity).
  2. The speed of light in vacuum, $c$, is constant across all inertial frames (Constancy of Speed of Light).

A. Analytical Derivation of the Lorentz Transformation

Consider two inertial systems, $S$ and $S'$, where $S'$ moves relative to $S$ with constant velocity $v$ along the positive $x$-axis.

The expansion wavefront of a spherical light signal emitted from the origin at $t=t'=0$ satisfies:

$x^2 + y^2 + z^2 - c^2 t^2 = 0$

$x'^2 + y'^2 + z'^2 - c^2 t'^2 = 0$

Since axes perpendicular to relative motion remain unaffected, $y' = y$ and $z' = z$. We seek linear relations:

$x' = \gamma (x - vt)$

Applying the principle of relativity, the inverse transformation must be identical with a reversed velocity sign:

$x = \gamma (x' + vt')$

Substituting the first equation into the second yields:

$x = \gamma \left( \gamma(x - vt) + vt' \right) \quad \Rightarrow \quad vt' = \frac{x}{\gamma} - \gamma x + \gamma vt \quad \Rightarrow \quad t' = \gamma t + \frac{x}{v} \left( \frac{1}{\gamma} - \gamma \right)$

Substituting the terms for $x'$ and $t'$ back into the spherical wavefront constraint $x^2 - c^2 t^2 = x'^2 - c^2 t'^2$:

$x^2 - c^2 t^2 = \gamma^2 (x - vt)^2 - c^2 \gamma^2 \left( t + \frac{x}{v} \left( \frac{1}{\gamma^2} - 1 \right) \right)^2$

Equating coefficients of variables $x^2$ and $t^2$, we isolate the Lorentz Factor $gamma$:

$\gamma = \frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$

This yields the complete Four-Dimensional Lorentz Transformation Matrix (split column view of LaTeX code and math representation):

$\begin{pmatrix} c t' \\ x' \\ y' \\ z' \end{pmatrix} = \begin{pmatrix} \gamma & -\beta\gamma & 0 & 0 \\ -\beta\gamma & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} c t \\ x \\ y \\ z \end{pmatrix} \quad \left( \text{where } \beta = \frac{v}{c} \right)$

B. Differential Derivation of Mass-Energy Equivalence $E = mc^2$

In relativistic dynamics, an object's mass increases as its velocity approaches $c$:

$m(v) = \gamma m_0 = \frac{m_0}{\sqrt{1 - \frac{v^2}{c^2}}}$

Where $m_0$ is the rest mass. Force is defined as the time derivative of momentum:

$F = \frac{\mathrm{d}p}{\mathrm{d}t} = \frac{\mathrm{d}(mv)}{\mathrm{d}t}$

Work done by force $F$ translates to relativistic kinetic energy $E_k$:

$\mathrm{d}E_k = F \cdot \mathrm{d}x = \frac{\mathrm{d}(mv)}{\mathrm{d}t} \mathrm{d}x = \mathrm{d}(mv) \frac{\mathrm{d}x}{\mathrm{d}t} = v \cdot \mathrm{d}(mv) = v^2 \mathrm{d}m + mv \mathrm{d}v$

We differentiate the squared mass relationship $m^2 (c^2 - v^2) = m_0^2 c^2$:

$\mathrm{d}\left[ m^2 (c^2 - v^2) \right] = 0$

$2m \mathrm{d}m (c^2 - v^2) - 2m^2 v \mathrm{d}v = 0 \quad \Rightarrow \quad \mathrm{d}m (c^2 - v^2) = mv \mathrm{d}v \quad \Rightarrow \quad c^2 \mathrm{d}m = v^2 \mathrm{d}m + mv \mathrm{d}v$

Substituting this substitution directly back into our kinetic energy equation yields:

$\mathrm{d}E_k = c^2 \mathrm{d}m$

Integrating from rest mass $m_0$ to current relativistic mass $m$:

$E_k = \int_{m_0}^{m} c^2 \mathrm{d}m = (m - m_0) c^2 = m c^2 - m_0 c^2$

The total energy $E$ is the sum of rest energy and kinetic energy:

$E = E_k + m_0 c^2 = m c^2$

This mathematically establishes Einstein's celebrated mass-energy equivalence equation. $\text{ Q.E.D.}$


3. General Relativity and Riemannian Geometry

General Relativity extends relativity to non-inertial reference frames, showing that gravity is not a physical force but the manifestation of spacetime curvature.

A. The Spacetime Metric Tensor

In curved spacetime, the infinitesimal interval $\mathrm{d}s^2$ is represented as:

$\mathrm{d}s^2 = g_{\mu\nu} \mathrm{d}x^\mu \mathrm{d}x^\nu$

Where $g_{\mu\nu}$ is the covariant metric tensor defining local geometry. In flat spacetime, this degenerates into the Minkowski metric $\eta_{\mu\nu}$.

B. Christoffel Symbols (Affine Connection)

Christoffel symbols characterize the connection, detailing how coordinate vectors change as they are parallel-transported across curved surfaces:

$\Gamma^\lambda_{\mu\nu} = \frac{1}{2} g^{\lambda\sigma} \left( \frac{\partial g_{\sigma\nu}}{\partial x^\mu} + \frac{\partial g_{\mu\sigma}}{\partial x^\nu} - \frac{\partial g_{\mu\nu}}{\partial x^\sigma} \right)$

C. Geodesic Equations

Free-falling test particles follow straight-line paths (geodesics) on curved manifolds, governed by:

$\frac{\mathrm{d}^2 x^\mu}{\mathrm{d}\tau^2} + \Gamma^\mu_{\alpha\beta} \frac{\mathrm{d}x^\alpha}{\mathrm{d}\tau} \frac{\mathrm{d}x^\beta}{\mathrm{d}\tau} = 0$

Where $\tau$ is the proper time.

D. The Einstein Field Equations

The Einstein Field Equations tie geometry and energy together into a unified dynamical tensor statement (split column view of LaTeX code and math representation):

$G_{\mu\nu} \equiv R_{\mu\nu} - \frac{1}{2} R g_{\mu\nu} = \frac{8\pi G}{c^4} T_{\mu\nu}$

Where:

  • $R_{\mu\nu}$ is the Ricci Curvature Tensor.
  • $R$ is the scalar curvature.
  • $G$ is Newton's gravitational constant.
  • $T_{\mu\nu}$ is the energy-momentum tensor.

As John Archibald Wheeler famously put it: "Spacetime tells matter how to move; matter tells spacetime how to curve."


4. Common Problems and Pitfalls (FAQ)

  1. Why does my formula fail to render, showing red warning text or KaTeX parse errors for Greek letters like \mu or \nu?
    • Solution: This usually occurs due to typos or commands sticking together without spacing (e.g., writing \gamma_j\hatx instead of \gamma_j\hat{x} where \hatx is parsed as an invalid command). Always double-check standard LaTeX command spellings and ensure that braces are fully closed and matched.
  2. Why does entering a percentage sign % or an underscore _ inside my equation cause the layout to break or go missing?
    • Solution: In LaTeX syntax, the percentage symbol % is a comment operator (which comments out/hides all text following it on that line), and _ is a subscript marker. To display these characters literally in your formulas, you must escape them with a backslash: use \% and \_.
  3. How do I prevent extremely long equations (such as the expanded Einstein field equations) from running off the screen or overflowing on narrow viewports?
    • Solution: Extra-long formulas will break responsive layouts. It is highly recommended to wrap long equations in a split environment like \begin{aligned} ... \end{aligned} and manually insert breaks \\ at logical locations (like before addition or equality signs) to wrap lines beautifully on mobile screens.