Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Physics[SpaceTimeVector] - a representation for spacetime indexed vectors
Calling Sequence
SpaceTimeVector[mu](X)
Parameters
mu
-
a spacetime index
X
a sequence of spacetime symbol parameters, as many as the dimension of spacetime, typically defined by Coordinates
Description
The SpaceTimeVector command is a representation for spacetime indexed vectors. Note that having defined X as a label representing a sequence of spacetime coordinates using Coordinates or Setup, the Physics commands already understand as a representation for a spacetime vector.
In a galilean system (Euclidean or Minkowski), both and the differential of the coordinates are vectors (tensors with 1 index), and so both and are vectors, the latter representing
where is the covariant spacetime vector. However, unlike the galilean case, in a curvilinear system of coordinates, is not a vector, only is and the formula above for loses its meaning; instead, the convention used in the Physics package (it becomes the one above only in the galilean case) is
Likely, from , in a galilean spacetime while this is not correct in a nongalilean spacetime, where the metric depends on the coordinates, and the correct formula is
Remark: in tensor computations, the distinction between covariant and contravariant indices is important when the spacetime is not Euclidean and the indices assume numerical values. The label of a system of coordinates set with Coordinates represent the contravariant components of the corresponding SpaceTimeVector. To indicate than an index is contravariant you prefix it with ~. On the other hand, in Maple, the selection operation is also performed through indexation. Hence, if X is a label for a system of coordinates, entering X[1] returns x1, the contravariant component of the corresponding SpaceTimeVector, even when the index used is the number 1, the covariant version of the contravariant ~1. So in a context where covariant and contravariant indexation is relevant and where you are going to assign numerical values to the indices, it is recommended to represent the spacetime vector with the SpaceTimeVector function, as in SpaceTimeVector[mu](X), instead of directly using X[mu]. In all other cases it is safe and simpler to use X[mu] and all the Physics commands understand both representations as equivalent.
Examples
Set first two sets of coordinates:
You can now represent the 4-vectors and by using - say for - either or SpaceTimeVector[mu](X).
In the output above, note that the default differentiation variables are omitted in the display of d_, as well as that of dAlembertian.
Use the inert %diff notation so the derivative is not performed until you activate it by using the value command.
Only the default differentiation variables are omitted in the display of d_ and dAlembertian, so in the following example, is displayed.
Independently of using SpaceTimeVector[mu](X) or the equivalent X[mu] to indicate the dependency of some functions or as differentiation variables, these objects can enter any algebraic computations to representing tensors with 1 index). For example:
The 1st contravariant and covariant components are respectively represented by indexing SpaceTimeVector with the numbers ~1 and 1
To understand the result above, display the current spacetime metric g_ matrix
Compute the derivative with respect to the 1st contravariant component of , that is . Recalling, contravariant differentiation coordinates are the ones entering the covariant differentiation operator . For illustration purposes use the inert form of d_ and diff, prefixing the commands with % and perform the computation using value
You can also represent x1 with SpaceTimeVector[~1](X), and when differentiating with respect to contravariant components of the spacetime vector you can represent them directly with X[~mu] because ~1, ~2, etc. are viewed by the system as symbols (in this context, contravariant indices) not selecting numbers
See Also
Coordinates, d_, dAlembertian, g_, Physics conventions, Physics, Physics conventions, Physics examples, Setup, Simplify
Download Help Document