Physics[SumOverRepeatedIndices] - perform summation over the repeated indices of a tensorial expression
Calling Sequence
SumOverRepeatedIndices(expression, alpha, beta, ...)
Parameters
expression
-
any algebraic tensorial expression having spacetime repeated indices implying summation
alpha, beta, ...
optional, the repeated indices to be summed, if not given, all the spacetime repeated indices of expression are summed
simplifier = ...
optional - indicates the simplifier to be used instead; default is none
Description
The SumOverRepeatedIndices performs the summation over the repeated indices of expression implied when using the Einstein summation convention. The summation takes into account the covariant and contravariant character of each contracted index.
The summation is performed from 1 to the dimension of spacetime, and optionally you indicate the indices (not their range) over which the summation is to be performed. The summation indices are indicated in sequence after expression. If no indices are indicated then summation is performed over all the repeated indices of expression.
To check and determine the free and repeated indices of an expression use Check.
By default, the summation is performed without simplifying the result; to have the result simplified before returning, indicate the simplifier on the right-hand-side of the optional argument simplifier = ...
Examples
with⁡Physics:
Setup⁡mathematicalnotation=true
mathematicalnotation=true
Consider the complete contraction of indices between the Riemann tensor and its dual R2 in a Schwarzschild spacetime in spherical coordinates
R*α,β,μ,ν=12⁢Εμ,ν,ρ,σ⁢R⁢⁢⁢⁢⁢⁢⁢⁢α,β⁢ρ,σ
For that purpose, set first the metric and the coordinates -you can use Setup for that, or because the Schwarzschild metric is known to the system you can directly pass the keyword or an abbreviation of it to the metric g_ to do all in one step
g_sc
⁢_______________________________________________________
⁢Systems of spacetime coordinates are:⁢X=r,θ,φ,t
⁢Default differentiation variables for d_, D_ and dAlembertian are:⁢X=r,θ,φ,t
Setting lowercaselatin_is letters to represent space indices
⁢The Schwarzschild metric in coordinates ⁢r,θ,φ,t
Parameters: m
Signature: - - - +
gμ,ν=r2⁢m−r0000−r20000−r2⁢sin⁡θ20000r−2⁢mr
Enter the dual of the Riemann tensor
R2≔12⁢LeviCivitaα,β,ρ,σ⁢Riemann~rho,~sigma,μ,ν
R2≔εα,β,ρ,σ⁢R⁢ρ,σμ,ν⁢ρ,σμ,ν2
Multiply both
R2⁢Riemann~alpha,~beta,~mu,~nu
εα,β,ρ,σ⁢R⁢ρ,σμ,ν⁢ρ,σμ,ν⁢R⁢α,β,μ,ν⁢α,β,μ,ν2
Check the indices
Check⁡,all
The repeated indices per term are: ...,...,..., the free indices are: ...
α,β,μ,ν,ρ,σ,∅
Perform the summation over these 6 indices
SumOverRepeatedIndices⁡
0
So (4) is zero; this term enters the computation of the 1st of the Riemann scalars, S1=148Rα,β,μ,ν⁢Rα,β,μ,ν−i⁢Rα,β,μ,ν⁢R*α,β,μ,ν
and S2=196Rα,β,μ,ν⁢Rα,β,ρ,σ⁢Rρ,σ⁢⁢⁢⁢⁢⁢⁢μ,ν+i⁢Rα,β,μ,ν⁢Rα,β,ρ,σ⁢R*ρ,σ⁢⁢⁢⁢⁢⁢⁢μ,ν
Riemannscalars
S1=m2r6,S2=−m3r9
and actually for both scalars only the first term in these formulas is different from zero:
Riemannα,β,μ,ν⁢Riemann~alpha,~beta,~mu,~nu
Rα,β,μ,ν⁢R⁢α,β,μ,ν⁢α,β,μ,ν
SumOverRepeatedIndices⁡,simplifier=simplify
48⁢m2r6
Riemannα,β,μ,ν⁢Riemann~alpha,~beta,~rho,~sigma⁢Riemannρ,σ,~mu,~nu
Rα,β,μ,ν⁢R⁢α,β,ρ,σ⁢α,β,ρ,σ⁢Rρ,σμ,νρ,σμ,ν
−96⁢m3r9
See Also
Check, Coordinates, Define, g_, LeviCivita, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Riemann, Setup
References
Landau, L.D., and Lifshitz, E.M. The Classical Theory of Fields, Course of Theoretical Physics Volume 2, fourth revised English edition. Elsevier, 1975.
Compatibility
The Physics[SumOverRepeatedIndices] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
Download Help Document