Lesson 11 of 15
The Metric Tensor
The Metric Tensor
A metric tensor gives the manifold its geometry — it defines lengths, angles, and volumes. At each point , is a symmetric bilinear form on tangent vectors:
where is the metric component matrix.
Examples
Euclidean metric on : (identity matrix)
Sphere of radius in colatitude , longitude :
The -direction shrinks near the poles ( or ) because circles of latitude get smaller.
Length of a Vector
For on flat : , so .
Lagrangian Connection
The kinetic energy Lagrangian for free motion on a manifold with metric is:
This connects geometry to dynamics.
Your Task
Implement metric(G_fn) where G_fn(point) returns the matrix . Return a function g such that g(u, v)(*point) computes .
Python runtime loading...
Loading...
Click "Run" to execute your code.