I'm embarrassed that I don't even know the language for what I'm asking. The result of an operation I'm performing is: $$expression=-dt^2 \left(c + a t\right)^2$$ $dt$ is basically an infinitesimal in a metric and I want to extract everything else. That is, I'm trying to construct a metric tensor from the components of a metric formula. I want a function, f, such that$$f[expression]=-\left(c + a t\right)^2$$ In Mathematica, for what function am I looking?
Asked
Active
Viewed 309 times
3
expressionis a metric tensor, then the last comment explains how to get the coefficient at $dt \otimes dt$ otherwise your question is not well posed. Nonetheless a slightly more detailed discussion one can find here How to calculate scalar curvature, Ricci tensor and Christoffel symbols in Mathematica?. $\partial t $ is a normalized vector in a tangent vector space to a manifold. – Artes Feb 10 '22 at 23:57Coefficient[Dt[t]^2 (c + a t)^2, Dt[t]^2]– Bill Watts Feb 11 '22 at 01:05