勒壤得轉換










xy-圖展示出函數 f(x){displaystyle f(x),!}f(x),! 的勒壤得轉換。函數用紅色表示,在切點 (x0, f(x0)){displaystyle (x_{0}, f(x_{0})),!}(x_0, f(x_0)),! 的切線用藍色表示。切線與 y-軸相交於點 (0, −f∗){displaystyle (0, -f^{*}),!}(0, - f^*),! ;這裏,f∗{displaystyle f^{*},!}f^*,! 是勒壤得轉換 f∗(p0){displaystyle f^{*}(p_{0}),!}f^*(p_0),! 的值,p0=f˙(x0){displaystyle p_{0}={dot {f}}(x_{0}),!}p_0=dot{f}(x_0),! 。特別注意,穿過在紅線上任何其它點,而擁有同樣斜率 (x0){displaystyle {dot {f}}(x_{0}),!}dot{f}(x_0),! 的直線,其與 y-軸相交點必定比點 (0, −f∗){displaystyle (0, -f^{*}),!}(0, - f^*),! 高,證明 f∗{displaystyle f^{*},!}f^*,! 確實是極大值。


勒壤得轉換英语:Legendre transformation)是一個在數學和物理中常見的技巧,得名於阿德里安-馬裡·勒壤得(Arien-Marie Legendre)。该操作是一个实变量的实值凸函数的对合变换。 它经常用于经典力学中,从拉格朗日形式导出哈密顿形式;以及在热力学中,推导出热力学势,并求解多个变量的微分方程。




目录






  • 1 概述


  • 2 定義


    • 2.1 最大值式定義


    • 2.2 反函數式定義




  • 3 數學性質


    • 3.1 標度性質


    • 3.2 平移性質


    • 3.3 反演性質


    • 3.4 線形變換性質




  • 4 應用


    • 4.1 熱力學


    • 4.2 古典力學(哈密頓力學)


    • 4.3 正則變換




  • 5 參閱


  • 6 參考文獻





概述


為了研究一個系統內部蘊藏的數學結構,表述此系統的函數關係 f(x){displaystyle f(x),!}f(x),! 改用一個新函數 f⋆(p){displaystyle f^{star }(p),!}f^{star}(p),! 來表示,其變數 p{displaystyle p,!}p,!f(x){displaystyle f(x),!}f(x),! 的導數,p=dfdx{displaystyle p={frac {mathrm {d} f}{mathrm {d} x}},!}p=frac{mathrm{d}f}{mathrm{d}x},! 。而 f⋆(p){displaystyle f^{star }(p),!}f^{star}(p),! 的值是如右圖藍線在 y 軸的负截距


換句話說,從(x,f(x)){displaystyle (x,f(x)),!}(x,f(x)),! x 值到 y 值的函數,轉換成(p,f⋆(p)){displaystyle (p,f^{star }(p)),!}(p,f^{star}(p)),! f(x) 在 x 點的導數到在 x 點切線 y 截距的函數


這程序是由阿德里安-馬裡·勒壤得所發明的,因此稱為勒壤得轉換。稱函數 f⋆(p){displaystyle f^{star }(p),!}f^{star}(p),!f(x){displaystyle f(x),!}f(x),! 的勒壤得轉換;


用方程式表示



f⋆(p)=pu−f(u)|d[pu−f(u)]du=0{displaystyle f^{star }(p)=pu-f(u)|_{{mathrm {d} [pu-f(u)] over mathrm {d} u}=0},!}f^star(p) = pu-f(u)  | _{{mathrm{d} [ pu-f(u) ] over mathrm{d}u} = 0} ,!

此式子表示 f⋆(p)=pu−f(u){displaystyle f^{star }(p)=pu-f(u)}f^star(p) = pu-f(u) 中的 u 對 f⋆(p){displaystyle f^{star }(p)}f^star(p) 而言是個參數,且參數 u 會滿足 d[pu−f(u)]du=0{displaystyle {{mathrm {d} [pu-f(u)] over mathrm {d} u}=0},!}{{mathrm{d} [ pu-f(u) ] over mathrm{d}u} = 0} ,!u{displaystyle u}u。即求算表達式關於變數 u{displaystyle u,!}u,! 的極值。




為方便討論,把討論限定在 f(x){displaystyle f(x)}f(x)為嚴格單調遞增。會有這方程式是因為在 p=f′(x0){displaystyle p=f'(x_{0})}p=f'(x_0) 也就是斜率不變的狀況下,對每個x0{displaystyle x_{0}}x_{0}而言,所有與曲線(u,f(u)){displaystyle (u,f(u))}(u,f(u))相交且斜率為f′(x0){displaystyle f'(x_{0})}f'(x_0)的直線族為 y=f′(x0)(x−u)+f(u){displaystyle y=f'(x_{0})(x-u)+f(u),!}y = f'(x_0) (x-u)+f(u),!。若令u=x0{displaystyle u=x_{0}} u = x_0 ,該直線即是f(x){displaystyle f(x)}f(x)x0{displaystyle x_{0}}x_{0}的切線方程式。把x當作常數並由右圖直接觀察可知,在u=x0{displaystyle u=x_{0}}u = x_0的情況下,y=f′(x0)(x−u)+f(u)=f′(x0)x−[f′(x0)u−f(u)]{displaystyle y=f'(x_{0})(x-u)+f(u)=f'(x_{0})x-[f'(x_{0})u-f(u)]}y = f'(x_0) (x-u)+f(u) = f'(x_0) x-[f'(x_0) u-f(u)]值是最小的,也就是說直線方程式中[f′(x0)u−f(u)]{displaystyle [f'(x_{0})u-f(u)]}[f'(x_0) u-f(u)]這部分是最大的,而正好 f⋆(p)=pu−f(u)|d[pu−f(u)]du=0{displaystyle f^{star }(p)=pu-f(u)|_{{mathrm {d} [pu-f(u)] over mathrm {d} u}=0},!}f^star(p) = pu-f(u)  | _{{mathrm{d} [ pu-f(u) ] over mathrm{d}u} = 0} ,!,正是原方程式所求的極值。


勒壤得轉換是點與線之間對偶性關係(duality)的一個應用。函數 f(x){displaystyle f(x),!}f(x),! 設定的函數關係可以用 (x, y=f(x)){displaystyle (x, y=f(x)),!}(x, y=f(x)),! 點集合來表示;也可以用切線(在嚴格單調遞增的討論下,切線跟導數p有一對一的關係)集合表示。


若將勒壤得轉換廣義化,則會變為勒壤得-芬伽轉換(Legendre-Fenchel transformation)。勒壤得轉換時常用於熱力學與哈密頓力學。



定義



最大值式定義


更詳細地定義勒壤得轉換,為了求得 L(x, p)=px−f(x){displaystyle L(x, p)=px-f(x),!}L(x, p)=px - f(x),! 關於 x{displaystyle x,!}x,! 的最大值,設定 L(x, p){displaystyle L(x, p),!}L(x, p),! 關於 x{displaystyle x,!}x,! 的偏導數為零:



x(px−f(x))=p−df(x)dx=0{displaystyle {frac {partial }{partial x}}left(px-f(x)right)=p-{mathrm {d} f(x) over mathrm {d} x}=0,!}frac{partial}{partial x} left(px-f(x) right) = p-{mathrm{d}f(x) over mathrm{d}x} = 0,!




p=df(x)dx{displaystyle p={mathrm {d} f(x) over mathrm {d} x},!}p = {mathrm{d}f(x) over mathrm{d}x},!(1)

這表達式必為最大值。因為,凸函數 L(x, p){displaystyle L(x, p),!}L(x, p),! 的二阶导数是負數:



2∂x2(xp−f(x))=−d2f(x)dx2<0{displaystyle {frac {partial ^{2}}{partial x^{2}}}(xp-f(x))=-{mathrm {d} ^{2}f(x) over mathrm {d} x^{2}}<0,!}frac{partial^2}{partial x^2}(xp-f(x)) = -{mathrm{d}^2f(x) over mathrm{d}x^2} < 0,!

用方程式 (1) 來計算函數 f{displaystyle f,!}f,! 的反函數 x=g(p){displaystyle x=g(p),!}x=g(p),! 。代入 L(x, p){displaystyle L(x, p),!}L(x, p),! 方程式,即可以得到想要的形式:



f⋆(p)=g(p) p−f(g(p)){displaystyle f^{star }(p)=g(p) p-f(g(p)),!}f^star(p)=g(p) p - f(g(p)),!

計算 f(x){displaystyle f(x),!}f(x),! 的勒壤得轉換,所需的步驟為:



  1. 找出导函數 p=dfdx{displaystyle p={frac {df}{dx}},!}p = frac{df }{dx},!

  2. 計算导函數 p=dfdx{displaystyle p={frac {df}{dx}},!}p = frac{df }{dx},! 的反函數 x=g(p){displaystyle x=g(p),!}x=g(p),!

  3. 代入 F(x){displaystyle F(x),!}F(x),! 方程式來求得新函數 f⋆(p)=g(p) p−f(g(p)){displaystyle f^{star }(p)=g(p) p-f(g(p)),!}f^star(p)=g(p) p - f(g(p)),!


這定義切確地闡明:勒壤得轉換製造出一個新函數 f⋆(p){displaystyle f^{star }(p),!}f^star(p),! ;其新自變數為 p=dfdx{displaystyle p={df over dx},!}p = {df over dx},!



反函數式定義


另外一種勒壤得轉換的定義是:假若兩個函數 f(x){displaystyle f(x),!}f(x),!f⋆(p){displaystyle f^{star }(p),!}f^star(p),! 的一階導數是互相的反函數;



ddxf(x)=(ddpf∗)−1(x){displaystyle {frac {mathrm {d} }{mathrm {d} x}}f(x)=left({frac {mathrm {d} }{mathrm {d} p}}f^{*}right)^{-1}(x),!}frac{mathrm{d}}{mathrm{d}x}f(x)=left(frac{mathrm{d}}{mathrm{d}p}f^*right)^{ - 1}(x),!

或者,



ddpf∗(p)=(ddxf)−1(p){displaystyle {frac {mathrm {d} }{mathrm {d} p}}f^{*}(p)=left({frac {mathrm {d} }{mathrm {d} x}}fright)^{-1}(p),!}frac{mathrm{d}}{mathrm{d}p}f^*(p)=left(frac{mathrm{d}}{mathrm{d}x}fright)^{ - 1}(p),!

f{displaystyle f,!}f,!f⋆{displaystyle f^{star },!}f^star,! 互相為彼此的勒壤得轉換。


依照定義,




df(x)dx=p{displaystyle {mathrm {d} f(x) over mathrm {d} x}=p,!}{mathrm{d}f(x) over mathrm{d}x}=p,!


df⋆(p)dp=x{displaystyle {mathrm {d} f^{star }(p) over mathrm {d} p}=x,!}{mathrm{d}f^star(p) over mathrm{d}p}=x,!


思考下述運算:



ddp(xp−f(x))=x+pdxdp−dfdxdxdp=x=df⋆(p)dp=x{displaystyle {frac {mathrm {d} }{mathrm {d} p}}(xp-f(x))=x+p{frac {mathrm {d} x}{mathrm {d} p}}-{frac {mathrm {d} f}{mathrm {d} x}}{frac {mathrm {d} x}{mathrm {d} p}}=x={mathrm {d} f^{star }(p) over mathrm {d} p}=x,!}frac{mathrm{d}}{mathrm{d}p}(xp - f(x))=x+pfrac{mathrm{d}x}{mathrm{d}p} - frac{mathrm{d}f}{mathrm{d}x}frac{mathrm{d}x}{mathrm{d}p}=x={mathrm{d}f^star(p) over mathrm{d}p}=x,!

所以,



f⋆(p)=xp−f(x)=g(p) p−f(g(p)){displaystyle f^{star }(p)=xp-f(x)=g(p) p-f(g(p)),!}f^star(p)=xp - f(x)=g(p) p - f(g(p)),!

這裏,x=g(p){displaystyle x=g(p),!}x=g(p),!


這答案是標準答案;但並不是唯一的答案。設定



f⋆(p)=f(x)−xp{displaystyle f^{star }(p)=f(x)-xp,!}f^star(p)=f(x) - xp,!

也可以滿足定義的要求。在某些情況下(例如:熱力勢(thermodynamic potential),會採用非標準的答案。除非另外註明,此頁面一律採用標準答案。



數學性質


以下討論,函數 f{displaystyle f,!}f,! 的勒壤得轉換皆標記為 f⋆{displaystyle f^{star },!}f^star,!



標度性質


勒壤得轉換有以下這些標度性質:



f(x)=a⋅g(x)→f⋆(p)=a⋅g⋆(pa){displaystyle f(x)=acdot g(x)rightarrow f^{star }(p)=acdot g^{star }left({frac {p}{a}}right),!}f(x)=a cdot g(x)rightarrow f^star(p) = a cdot g^starleft(frac{p}{a}right)<br />
,!


f(x)=g(a⋅x)→f⋆(p)=g⋆(pa){displaystyle f(x)=g(acdot x)rightarrow f^{star }(p)=g^{star }left({frac {p}{a}}right),!}f(x) = g(a cdot x)rightarrow f^star(p) = g^starleft(frac{p}{a}right)<br />
,!

由此可知,一個 r{displaystyle r,!}r,! 次齊次函數的勒壤得轉換是一個 s{displaystyle s,!}s,! 次齊次函數;這裏,



1r+1s=1{displaystyle {frac {1}{r}}+{frac {1}{s}}=1,!}frac{1}{r}+frac{1}{s}=1,!


平移性質



f(x)=g(x)+b→f⋆(p)=g⋆(p)−b{displaystyle f(x)=g(x)+brightarrow f^{star }(p)=g^{star }(p)-b,!}f(x) = g(x) + brightarrow f^star(p) = g^star(p) - b,!


f(x)=g(x+y)→f⋆(p)=g⋆(p)−p⋅y{displaystyle f(x)=g(x+y)rightarrow f^{star }(p)=g^{star }(p)-pcdot y,!}f(x) = g(x + y)rightarrow f^star(p) = g^star(p) - p cdot y,!


反演性質



f(x)=g−1(x)→f⋆(p)=−p⋅g⋆(1p){displaystyle f(x)=g^{-1}(x)rightarrow f^{star }(p)=-pcdot g^{star }left({frac {1}{p}}right),!}f(x) = g^{-1}(x)rightarrow f^star(p) = - p cdot g^starleft(frac{1}{p}right)<br />
,!


線形變換性質


A{displaystyle A,!}A,! 成為一個從 Rn{displaystyle R^{n},!}R^n,!Rm{displaystyle R^{m},!}R^m,! 的線形變換。對於任何定義域為 Rn{displaystyle R^{n},!}R^n,! 的凸函數 f{displaystyle f,!}f,! ,必有



(Af)⋆=f⋆A⋆{displaystyle left(Afright)^{star }=f^{star }A^{star },!} left(A fright)^star = f^star A^star ,!

這裏,A⋆{displaystyle A^{star },!}A^star,!A{displaystyle A,!}A,! 的伴隨算子定義為



⟨Ax,y⋆⟩=⟨x,A⋆y⋆⟩{displaystyle leftlangle Ax,y^{star }rightrangle =leftlangle x,A^{star }y^{star }rightrangle ,!} left langle Ax, y^star right rangle = left langle x, A^star y^star right rangle ,!


應用



熱力學


在熱力學裏,使用勒壤得轉換主要的目的是,將一個函數與所含有的一個自變數,轉換為一個新函數與所含有的一個新自變數,(此新自變數是舊函數對於舊自變數的偏導數);將舊函數減去新自變數與舊自變數的乘積,得到的差就是新函數。勒壤得轉換可以用來在各種熱力勢(thermodynamic potential)之間作轉換。例如,內能 U{displaystyle U,!}U,! 是外延量(extensive)熵 S{displaystyle S,!}S,! ,體積 V{displaystyle V,!}V,! ,與化學成份(chemical compositionNi{displaystyle N_{i},!}N_i,! 的顯函數



U=U(S, V, {Ni}){displaystyle U=U(S, V, {N_{i}}),!} U = U(S, V, {N_i}),!

對於 PV{displaystyle -PV,!} - PV,! ,函數 U{displaystyle U,!}U,! (非標準的)勒壤得轉換為焓函數 H{displaystyle H,!}H,!




H(S, P, {Ni})=U+PV{displaystyle H(S, P, {N_{i}})=U+PV,!} H(S, P, {N_i})= U + PV,!


P=−(∂U∂V)S, {Ni}{displaystyle P=-left({frac {partial U}{partial V}}right)_{S, {N_{i}}},!} P= - left( frac{partial U}{partial V}right)_{S, {N_i}},!


一個熵與內含量(intensive)壓力的函數。當壓力是常數時,這函數很有用。


對於 TS{displaystyle TS,!}TS,! ,函數 H{displaystyle H,!}H,! 勒壤得轉換為吉布斯能函數 G{displaystyle G,!}G,! :




G(T, P, {Ni})=H−TS{displaystyle G(T, P, {N_{i}})=H-TS,!} G(T, P, {N_i}) = H - TS,!


T=(∂H∂S)P, {Ni}{displaystyle T=left({frac {partial H}{partial S}}right)_{P, {N_{i}}},!} T=left( frac{partial H}{partial S}right)_{P, {N_i}},!


對於 TS{displaystyle TS,!}TS,! ,函數 U{displaystyle U,!}U,! 勒壤得轉換為亥姆霍兹自由能函數 A{displaystyle A,!}A,! :




A(T, V, {Ni})=U−TS{displaystyle A(T, V, {N_{i}})=U-TS,!} A(T, V, {N_i}) = U - TS,!


T=(∂U∂S)V, {Ni}{displaystyle T=left({frac {partial U}{partial S}}right)_{V, {N_{i}}},!} T=left( frac{partial U}{partial S}right)_{V, {N_i}},!


這些自由能函數時常用在常溫的物理系統。



古典力學(哈密頓力學)


在經典力學裏,勒壤得轉換專門用來從拉格朗日表述導引出哈密頓表述,或反導之。拉格朗日量 L{displaystyle {mathcal {L}},!}mathcal{L},! 是廣義坐標 q=(q1, q2, …, qN){displaystyle mathbf {q} =(q_{1}, q_{2}, dots , q_{N}),!}mathbf{q}=(q_1, q_2, dots, q_N),! 與廣義速度 {displaystyle {dot {mathbf {q} }},!}dot{mathbf{q}},! 的函數;而哈密頓量 H{displaystyle {mathcal {H}},!}mathcal{H},! 將函數的自變量轉換為廣義坐標 q{displaystyle mathbf {q} ,!}mathbf{q},! 與廣義動量 p=(p1, p2, …, pN){displaystyle mathbf {p} =(p_{1}, p_{2}, dots , p_{N}),!}mathbf{p}=(p_1, p_2, dots, p_N),!




p=∂L∂{displaystyle mathbf {p} ={frac {partial {mathcal {L}}}{partial {dot {mathbf {q} }}}},!}mathbf{p}=frac{partial mathcal{L}}{partial dot{mathbf{q}}},!


H(q, p, t)=p⋅L(q, q˙(q, p, t), t){displaystyle {mathcal {H}}(mathbf {q} , mathbf {p} , t)=mathbf {p} cdot {dot {mathbf {q} }}-{mathcal {L}}(mathbf {q} , {dot {mathbf {q} }}(mathbf {q} , mathbf {p} , t), t),!}mathcal{H}(mathbf{q}, mathbf{p}, t)=mathbf{p}cdotdot{mathbf{q}} - mathcal{L}(mathbf{q}, dot{mathbf{q}}(mathbf{q}, mathbf{p}, t), t),!



正則變換


正則變換廣泛地應用勒壤得轉換在其理論裏。正則變換是一種正則坐標的改變,(q, p)→(Q, P){displaystyle (mathbf {q} , mathbf {p} )rightarrow (mathbf {Q} , mathbf {P} ),!,!}(mathbf{q}, mathbf{p}) rightarrow (mathbf{Q}, mathbf{P}),!,! ,而同時維持哈密頓方程式的形式,雖然哈密頓量可能會改變。正則變換的方程式為




K∂P=Q˙{displaystyle {frac {partial {mathcal {K}}}{partial mathbf {P} }}={dot {mathbf {Q} }},!,!}frac{partial mathcal{K}}{partial mathbf{P}}=dot{mathbf{Q}},!,!


K∂Q=−{displaystyle {frac {partial {mathcal {K}}}{partial mathbf {Q} }}=-{dot {mathbf {P} }},!,!}frac{partial mathcal{K}}{partial mathbf{Q}}= - dot{mathbf{P}},!,!


p⋅H=P⋅K+dGdt{displaystyle mathbf {p} cdot {dot {mathbf {q} }}-{mathcal {H}}=mathbf {P} cdot {dot {mathbf {Q} }}-{mathcal {K}}+{frac {dG}{dt}},!}mathbf{p}cdotdot{mathbf{q}} - mathcal{H}=  mathbf{P}cdotdot{mathbf{Q}} - mathcal{K}+frac{dG}{dt},!


這裏,q, p{displaystyle mathbf {q} , mathbf {p} ,!}mathbf{q}, mathbf{p},! 是舊正則坐標,Q, P{displaystyle mathbf {Q} , mathbf {P} ,!}mathbf{Q}, mathbf{P},! 是新正則坐標,H{displaystyle {mathcal {H}},!}mathcal{H},! 是舊哈密頓量,K{displaystyle {mathcal {K}},!}mathcal{K},! 是新哈密頓量,G{displaystyle G,!}G,! 是生成函數。



參閱



  • 哈密頓力學

  • 切觸幾何

  • 正則變換



參考文獻




  • Arnold, Vladimir. Mathematical Methods of Classical Mechanics (second edition). Springer. 1989. ISBN 0-387-96890-3. 


  • Rockafellar, Ralph Tyrell. Convex Analysis. Princeton University Press. 1996. ISBN 0-691-01586-4. 




Comments

Popular posts from this blog

Information security

Volkswagen Group MQB platform

Daniel Guggenheim