31.7. GRADIENTS AND DIVERGENCE 627

Therefore, g is a function of the variables{

gr j}

and ∂g∂gr j

= Ar j. From 31.38,{rrk

}=

g jr

2∂gr j

∂xk =1

2g∂gr j

∂xk A jr =1

2g∂g

∂gr j

∂gr j

∂xk =12g

∂g∂xk

and so from 31.37,

div(F ) =∂Fk (x)

∂xk +

+Fk (x)1

2g(x)∂g(x)

∂xk =1√

g(x)

∂xi

(F i (x)

√g(x)

). (31.39)

This is the formula for the divergence of a vector field in general curvilinear coordinates.Note that it uses the contravariant components of F .

The Laplacian of a scalar field is nothing more than the divergence of the gradient. Insymbols, ∆φ ≡ ∇ ·∇φ . From 31.39 and 31.36 it follows

∆φ (x) =1√

g(x)

∂xi

(gik (x)

∂φ (x)

∂xk

√g(x)

). (31.40)

We summarize the conclusions of this section in the following theorem.

Theorem 31.7.1 The following hold for gradient, divergence, and Laplacian ingeneral curvilinear coordinates.

(∇φ (x))r =∂φ (x)

∂xr , (31.41)

(∇φ (x))r = grk (x)∂φ (x)

∂xk , (31.42)

div(F ) =1√

g(x)

∂xi

(F i (x)

√g(x)

), (31.43)

∆φ (x) =1√

g(x)

∂xi

(gik (x)

∂φ (x)

∂xk

√g(x)

). (31.44)

Example 31.7.2 Define curvilinear coordinates as follows

x = r cosθ ,y = r sinθ

Find ∇2 f (r,θ). That is, find the Laplacian in terms of these new variables r,θ .

First find the metric tensor. From the definition, this is

G =

(1 00 r2

),G−1 =

(1 00 r−2

)The contravariant components of the gradient are(

1 00 r−2

)(frfθ

)=

(fr

1r2 fθ

)Then also

√g = r. Therefore, using the formula,

∇2 f (u,v) =

1r

[(r fr)r +

(r

1r2 fθ

]=

1r(r fr)r +

1r2 fθθ

Notice how easy this is. It is anything but easy if you try to do it by brute force with noneof the machinery developed here.

31.7. GRADIENTS AND DIVERGENCE 627Therefore, g is a function of the variables {g,;} and an = AJ. From 31.38,r gl" O8rj _ 1 8K § gir 1 dg Og, 1 dgrk 2 axk = 2g axk 2g 0g; Oxk — 2g Axkand so from 31.37,. OF* (x)div (F) = ~Oxk1 dg(x) 1 7]= < (Fi ). 31.392g(a) dx ~ Je(ay dx! (Fe) Vale) G19)This is the formula for the divergence of a vector field in general curvilinear coordinates.Note that it uses the contravariant components of F’.The Laplacian of a scalar field is nothing more than the divergence of the gradient. Insymbols, Ad = V-V@. From 31.39 and 31.36 it follows1 0 0g (a)Ao (a) = = (2 . 31.406 (8) = aa (« (x) OO Vela) (31.40)We summarize the conclusions of this section in the following theorem.Theorem 31.7.1 The following hold for gradient, divergence, and Laplacian ingeneral curvilinear coordinates.++F* (a)(Vo (2)), = “92. Gian)(V9 (a) = (x) OO G1.42)div(F) = — aG F' (a) g(x), (31.43)/g x) Ox!Ad (x) = aa 3 (ee) “SP Vele@)). 1.44)Example 31.7.2 Define curvilinear coordinates as followsx=rcos0,y=rsin0@Find V7 f (7,9). That is, find the Laplacian in terms of these new variables r, 0.First find the metric tensor. From the definition, this is_f 1 0 1+ {1 0c(h 8)e%-(h 8)The contravariant components of the gradient are(0) )= (ae)0 r? fo ShoThen also JVg=r. Therefore, using the formula,1 1 1 1V Fur) == [Ort (rahe) ] = 5 M+ Za foor r P r rNotice how easy this is. It is anything but easy if you try to do it by brute force with noneof the machinery developed here.