B.7. GRADIENTS AND DIVERGENCE 353

Therefore, g is a function of the variables{

gr j}

and ∂g∂gr j

= Ar j. From 2.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 2.37,

div(F ) =∂Fk (x)

∂xk +

+Fk (x)1

2g(x)∂g(x)

∂xk =1√

g(x)

∂xi

(F i (x)

√g(x)

). (2.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 2.39 and 2.36 it follows

∆φ (x) =1√

g(x)

∂xi

(gik (x)

∂φ (x)

∂xk

√g(x)

). (2.40)

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

Theorem B.7.1 The following hold for gradient, divergence, and Laplacian in gen-eral curvilinear coordinates.

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

∂xr , (2.41)

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

∂xk , (2.42)

div(F ) =1√

g(x)

∂xi

(F i (x)

√g(x)

), (2.43)

∆φ (x) =1√

g(x)

∂xi

(gik (x)

∂φ (x)

∂xk

√g(x)

). (2.44)

Example B.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.

B.7. GRADIENTS AND DIVERGENCE 353Therefore, g is a function of the variables {gr i} and pe = AJ. From 2.38,. +]r |g! 080) _ 1 88rj yr _ 1 98 O8rj _ 1 OBrk J 2 axk 2g axkK” 2g Ag; Axk — 2g Axkand so from 2.37,. OF* (x)div (F) = ~Oxk1 dg(a) 1 ie) ,= = (Fi ). 2.392e(x) axk FIC) Axi ( (x) /g (x) ( )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 2.39 and 2.36 it follows__! a i 9g (x)49(2) =F (et a) “SP Vata). (2.40)We summarize the conclusions of this section in the following theorem.++F* (a)Theorem B.7.1 The following hold for gradient, divergence, and Laplacian in gen-eral curvilinear coordinates.(VO (2), = (2.41)(Vo (a))/ =e" (a) 2). 2.42). 1 a,div (P) = Ta aa (F (x) g(@)), (2.43)— 1 A (xg 00 (a)49(0) =F (et a) “SP Vala). 2.44)Example B.7.2 Define curvilinear coordinates as followsx=rcos0,y=rsin0Find V" f (1,9). That is, find the Laplacian in terms of these new variables r, 0.First find the metric tensor. From the definition, this is(1.0 1 (1 0o=(y A)e=(0 2)The contravariant components of the gradient are1 0 fr \_( fr0 r? fo J ShoThen also Ve=r. Therefore, using the formula,V'f (u,v) = r lt) + (2) fl =— (rfr),+ 2 fooNotice how easy this is. It is anything but easy if you try to do it by brute force with noneof the machinery developed here.