User Tools

Site Tools


math121b:02-05

\gdef\d\partial

2020-02-05 Metric Tensor

Recall that if VV is a vector space, then a metric tensor of VV is an element gVVg \in V^* \otimes V^*, that is symmetric and positive definite, i.e.

  • (symmetric) for any v,wVv, w \in V, g(v,w)=g(w,v)g(v,w) = g(w, v).
  • (positive definite), for any vVv \in V and v0v \neq 0, g(v,v)>0g(v,v) > 0.

If we have a basis {ei}\{e_i\} for VV, and corresponding dual basis {hi}\{h^i\} for VV^*, then the metric tensor can be written as g=i,j=1ngijhihj,gij=g(ei,ej). g = \sum_{i,j=1}^n g_{ij} h^i \otimes h^j, \quad g_{ij} = g(e_i, e_j). Note: if someone give you a vector space (over R\R), then by default, it does not come equipped with a metric tensor. The data of a metric tensor is upto your choice.

Recall that for any point pRnp \in \R^n, TpRnT_p \R^n is the tangent space at pp. We define a metric tensor at point pp to be a metric tensor gpg_p for the vector space TpRnT_p \R^n.

Note: that, for two distinct points p,qRnp, q \in \R^n, TpRnT_p \R^n and TqRnT_q \R^n do not “talk to each other”, and gpg_p and gqg_q has nothing to do with each other.

If we have a basis {ei(p)}i=1n\{ e_i(p) \}_{i=1}^n for the tangent space TpRnT_p \R^n, then we can write the metric tensor in components. We denote gij(p)=gp(ei(p),ej(p)). g_{ij}(p) = g_p(e_i(p), e_j(p)). One can think of gij(p)g_{ij}(p) as an nn by nn matrix, whose entries depends on pp.

Example 1: Flat space R3\R^3 in Cartesian coordinate

This is the space that we live in, hence the most important one in some sense.

Let (x,y,z)(x, y, z) be the Cartesian coordinate system on R3\R^3. For a point pRp \in \R, we can have a basis xp,yp,zp\d_x|_p, \d_y|_p, \d_z|_p of TpR3T_p \R^3. The metric tensor gpg_p of TpR3T_p \R^3 is defined by the following rules gp(xp,xp)=1,gp(yp,yp)=1,gp(zp,zp)=1 g_p(\d_x|_p, \d_x|_p) = 1, \quad g_p(\d_y|_p, \d_y|_p) = 1, \quad g_p(\d_z|_p, \d_z|_p) = 1 and all other components are zero, i.e. gp(xp,yp)=gp(xp,zp)=gp(yp,zp)=0. g_p( \d_x|_p, \d_y|_p) = g_p(\d_x|_p, \d_z|_p) = g_p(\d_y|_p, \d_z|_p) = 0.

If we call e1(p)=xp,e2(p)=yp,e3(p)=zpe_1(p) = \d_x|_p, e_2(p) = \d_y|_p, e_3(p) = \d_z|_p, then we have gij(p)=δijg_{ij}(p) = \delta_{ij}. This is a special case that, the components gij(p)g_{ij}(p) does not depends on pp.

Notation : I will sometimes omit the dependence of pp, and write x\d_x instead of xp\d_x|_p, eie_i instead of ei(p)e_i(p).

What can a metric tensor do? It can measure the length of a tangent vector. For example, suppose v=(1,0,2)TpR3v = (1,0,2) \in T_p \R^3, and w=(2,1,1)TpR3w = (2,1,1) \in T_p \R^3, then we can compute gp(v,w)=gp(e1+2e3,2e1+e2+e3)=gp(e1,2e1)+gp(2e3,e3)=2+2=4 g_p(v, w) = g_p( e_1 + 2 e_3, 2 e_1 + e_2 + e_3) = g_p(e_1, 2 e_1) + g_p(2 e_3, e_3) = 2 + 2 = 4 of course, you can say this gives the same answer as (1,0,2)(2,1,1)=12+01+21=2+2=4. (1,0,2) \cdot (2,1,1) = 1 \cdot 2 + 0 \cdot 1 + 2 \cdot 1 = 2 + 2 = 4.

So far, all familar stuff, maybe a bit boring. Let's look at some other examples.

Example 2: Flat space R3\R^3 in Cylindrical coordinate

We use cylindrical coordinate (r,θ,z)(r, \theta, z). We will first write down the coordinate transformation matrix with the Cartesian coordinate (x,y,z)(x,y,z') (To avoid using the zz variable twice, we denote this second zz as zz', just for clarity of notation.)

The transformation rule is r=x2+y2,θ=arctan(y/x),z=z r = \sqrt{x^2+y^2}, \quad \theta = \arctan(y/x),\quad z = z' and the transformation rule in the other direction is x=rcosθ,y=rsinθ,z=z. x = r \cos\theta, \quad y = r \sin \theta, \quad z' = z.

Then for a point pR3p \in \R^3, we can write down the change of basis rule for TpR3T_p \R^3, between {r,θ,z\{ \d_r, \d_\theta, \d_z and x,y,dz\d_x, \d_y, d_{z'}. r=xrx+yry+zrz=cosθx+sinθy \d_r = \frac{\d x} {\d r} \d_x + \frac{\d y} {\d r} \d_y + \frac{\d z'} {\d r} \d_{z'} = \cos\theta \d_x + \sin \theta \d_y θ=xθx+yθy+zθz=rsinθx+rcosθy \d_\theta = \frac{\d x} {\d \theta} \d_x + \frac{\d y} {\d \theta} \d_y + \frac{\d z'} {\d \theta} \d_{z'} = -r\sin\theta \d_x + r \cos \theta \d_y z=xzx+yzy+zzz=z \d_z = \frac{\d x} {\d z} \d_x + \frac{\d y} {\d z} \d_y + \frac{\d z'} {\d z} \d_{z'} = \d_{z'} I wrote all the intermediate step there, just to show that, the formula is quite straightforward, and you just need to take the partial derivatives to get the coefficients in the expansions.

Now, we can write down the various components of the metric tensor gg in the new basis g(r,r)=g(cosθx+sinθy,cosθx+sinθy)=(cosθ)2+(sinθ)2=1 g(\d_r, \d_r) = g(\cos\theta \d_x + \sin \theta \d_y, \cos\theta \d_x + \sin \theta \d_y ) = (\cos \theta)^2 + (\sin \theta)^2 = 1 g(r,θ)=g(cosθx+sinθy,rsinθx+rcosθy)=cosθ(rsinθ)+sinθ(rcosθ)=0 g(\d_r, \d_\theta) = g(\cos\theta \d_x + \sin \theta \d_y, -r\sin\theta \d_x + r \cos \theta \d_y) = \cos\theta \cdot (-r\sin\theta) + \sin \theta \cdot (r \cos \theta) = 0 The computation used bilinearity of gg (linear in each slot), and the components of gg in x,y,z\d_x, \d_y, \d_z.

And I summarize the rest: g(θ,θ)=r2,g(z,z)=1,g(r,z)=0,g(z,θ)=0. g(\d_\theta, \d_\theta) = r^2, \quad g(\d_z, \d_z) = 1, \quad g(\d_r, \d_z) = 0, \quad g(\d_z, \d_\theta)=0.

Example 3: flat R3\R^3 in spherical coordinates

Exercise, repeat what we do for the cylindrical coordinate.

Example 4: A wavy surface

Let f(x,y)=sin(x)sin(y)f(x, y) = \sin(x)\sin(y), and let Γf\Gamma_f be its graph, that is Γf={(x,y,z)R3z=f(x,y)}.\Gamma_f = \{(x,y,z) \in \R^3 \mid z = f(x,y) \}. Here is a picture, plotted using Wolfram alpha

Parametrization of Γf\Gamma_f , we will parametrize points on Γf\Gamma_f using its (x,y)(x,y) coordinates, to be clear, we call them (u,v)(u,v). That is ϕ:ΓfRu,v2,u(x,y,z)=x,  v=(x,y,z)=y. \phi : \Gamma_f \to \R^2_{u,v}, \quad u(x,y,z)=x, \; v=(x,y,z) = y. And since ϕ\phi is 1-to-1, we can have the inverse ϕ1:Ru,v2Γf,x(u,v)=u,  y(u,v)=v,  z(u,v)=sin(u)sin(v). \phi^{-1}: \R^2_{u,v} \to \Gamma_f, \quad x(u,v) = u, \; y(u,v) = v, \; z(u,v) = \sin(u) \sin(v).

We will define a metric on Ru,v2\R^2_{u,v}. For a point pRu,v2p \in \R^2_{u,v}, and tangent vectors u\d_u and v\d_v, they corresponds to point P=ϕ1(p)ΓfP = \phi^{-1}(p) \in \Gamma_f, and tangent vectors ϕ1(u)\phi^{-1}_*(\d_u) and ϕ1(v)\phi^{-1}_*(\d_v) in TPΓfT_P \Gamma_f. The notations are horrible, but hopefully the formulas are not so bad: ϕ1(u)=xux+yuy+zuz=x+cos(u)sin(v)z \phi^{-1}_*(\d_u) = \frac{\d x}{\d u} \d_x + \frac{\d y}{\d u} \d_y + \frac{\d z}{\d u} \d_z = \d_x + \cos(u) \sin(v) \d_z ϕ1(v)=xvx+yvy+zvz=y+sin(u)cos(v)z \phi^{-1}_*(\d_v) = \frac{\d x}{\d v} \d_x + \frac{\d y}{\d v} \d_y + \frac{\d z}{\d v} \d_z = \d_y + \sin(u) \cos(v) \d_z Then, we are in business. We can compute the metric tensor gpg_p on TpR2T_p \R^2, using the metric tensor gPg_P of TPΓfT_P \Gamma_f, which is the same as gPg_P of TPR3T_P \R^3, since Γf\Gamma_f sits inside R3\R^3.

gp(u,u)=gP(ϕ1(u),ϕ1(u))=g(x+cos(u)sin(v)z,x+cos(u)sin(v)z)=1+cos(u)2sin(v)2g_p (\d_u, \d_u) = g_P( \phi^{-1}_*(\d_u), \phi^{-1}_*(\d_u)) = g(\d_x + \cos(u) \sin(v) \d_z , \d_x + \cos(u) \sin(v) \d_z ) = 1 + \cos(u)^2 \sin(v)^2 similarly gp(v,v)=1+sin(u)2cos(v)2g_p (\d_v, \d_v) = 1 + \sin(u)^2 \cos(v)^2 and the “mix term” gp(u,v)=g(x+cos(u)sin(v)z,y+sin(u)cos(v)z)=cos(u)sin(u)cos(v)sin(v). g_p(\d_u, \d_v) = g(\d_x + \cos(u) \sin(v) \d_z, \d_y + \sin(u) \cos(v) \d_z) = \cos(u)\sin(u)\cos(v)\sin(v).

math121b/02-05.txt · Last modified: 2020/02/06 00:36 by pzhou