度量張量(英語:Metric tensor)在黎曼幾何裡面又叫黎曼度量,物理学译为度規張量,是指一用來衡量度量空间中距離,面積及角度的二階張量。
當选定一個局部坐標系統
,度量張量為二階張量一般表示為
,也可以用矩陣
表示,記作為G或g。而
記號傳統地表示度量張量的協變分量(亦為「矩陣元素」)。
到
的弧線長度定义如下,其中参数定為t,t由a到b:
![{\displaystyle L=\int _{a}^{b}{\sqrt {\sum _{ij}g_{ij}{\mathrm {d} x^{i} \over \mathrm {d} t}{\mathrm {d} x^{j} \over \mathrm {d} t}}}\mathrm {d} t}](https://wikimedia.org/api/rest_v1/media/math/render/svg/96da106f1e4f1d07351fda15c2a76c6908e33901)
兩個切向量的夾角
,設向量
和
,定義為:
![{\displaystyle \cos \theta ={\frac {\langle u,v\rangle }{|u||v|}}={\frac {\sum _{ij}g_{ij}u^{i}v^{j}}{\sqrt {\left|\sum _{ij}g_{ij}u^{i}u^{j}\right|\left|\sum _{ij}g_{ij}v^{i}v^{j}\right|}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0d9670ac2cd9e6691810575c4a2adc549f091b1e)
若
為
到
的局部微分同胚,其誘導出的度量張量的矩陣形式
,由以下方程式計算得出:
![{\displaystyle G=J^{T}J}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c78a50dc1f3232ad6b5e55d801d854ba0c44a991)
表示
的雅可比矩阵,它的轉置为
。著名例子有
之間從極座標系
到直角座標
的座標變換,在這例子裡有:
![{\displaystyle x=r\cos \theta }](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f27adec1ac1792288cba78a125b22893a59507a)
![{\displaystyle y=r\sin \theta }](https://wikimedia.org/api/rest_v1/media/math/render/svg/3e29d62630263d5354736fb536f72ca956b65382)
這映射的雅可比矩陣為
![{\displaystyle J={\begin{bmatrix}\cos \theta &-r\sin \theta \\\sin \theta &r\cos \theta \end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7070407c01d2313458bfda8e938fc3b610c58e79)
所以
![{\displaystyle G=(g_{ij})=J^{\mathrm {T} }J={\begin{bmatrix}\cos ^{2}\theta +\sin ^{2}\theta &-r\sin \theta \cos \theta +r\sin \theta \cos \theta \\-r\cos \theta \sin \theta +r\cos \theta \sin \theta &r^{2}\sin ^{2}\theta +r^{2}\cos ^{2}\theta \end{bmatrix}}={\begin{bmatrix}1&0\\0&r^{2}\end{bmatrix}}\ }](https://wikimedia.org/api/rest_v1/media/math/render/svg/ecd47a585b59c5919b2aeaad59b27b16abeb5298)
這跟微積分裡極座標的黎曼度量,
,一致。
二維歐幾里德度量張量:
![{\displaystyle (g_{ij})={\begin{bmatrix}1&0\\0&1\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b589391a1757f676aca7497d98b5876a00308572)
弧線長度轉為熟悉微積分方程式:
![{\displaystyle L=\int _{a}^{b}{\sqrt {\left({\frac {\mathrm {d} x^{1}}{\mathrm {d} t}}\right)^{2}+\left({\frac {\mathrm {d} x^{2}}{\mathrm {d} t}}\right)^{2}}}\mathrm {d} t}](https://wikimedia.org/api/rest_v1/media/math/render/svg/55b68c6a07b343af8e28caaf0810cfb0e6e1ec50)
在其他坐標系統的歐氏度量:
极坐标系:
![{\displaystyle (g_{ij})={\begin{bmatrix}1&0\\0&(x^{1})^{2}\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c2fcf3f0c0fc0dc728581adbd749c9ccdcdb98bb)
圓柱坐標系:
![{\displaystyle (g_{ij})={\begin{bmatrix}1&0&0\\0&(x^{1})^{2}&0\\0&0&1\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/14f6f697f92cae3cd1af5335fbd000228ce6b6cf)
球坐標系:
![{\displaystyle (g_{ij})={\begin{bmatrix}1&0&0\\0&(x^{1})^{2}&0\\0&0&(x^{1}\sin x^{2})^{2}\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/aebe2528dc48539940e9ecf0cc0b2678e059b4f6)
平坦的闵可夫斯基空间 (狭义相对论):
![{\displaystyle (g_{\mu \nu })=(\eta _{\mu \nu })\equiv {\begin{bmatrix}-1&0&0&0\\0&1&0&0\\0&0&1&0\\0&0&0&1\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/329f918110893a0a0141e769bc93b317cc6e2013)
在一些習慣中,與上面相反地,時間ct的度規分量取正號而空間 (x,y,z)的度規分量取負號,故矩陣表示為:
![{\displaystyle (g_{\mu \nu })=(\eta _{\mu \nu })\equiv {\begin{bmatrix}1&0&0&0\\0&-1&0&0\\0&0&-1&0\\0&0&0&-1\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/861603ddf62cc4221571021644e5794c3a6bb7d5)