Einstein Notation
📂Mathematical PhysicsEinstein Notation
Notation
The summation sign ∑ is omitted when a subscript is repeated two or more times.
Description
Also referred to as the Einstein summation convention. It’s not really a formula but rather a rule. When doing vector calculations, there are often cases where one needs to write the summation sign ∑ multiple times in a single formula, which can make the equation look cluttered and is very annoying to write by hand. Hence, it is a convention to omit the summation sign when a subscript is repeated more than twice. Of course, care must be taken to avoid confusion in its meaning.
If confused, check the left side for what indices are present. If index i is clearly not on the left side, then on the right side, i∑ is omitted due to the Einstein notation. Conversely, if the index j is on the left side, then on the right side, the summation over j is not just omitted; it is not there at all.
Examples
Let’s say 1,2,3 each represent x,y,z. Suppose vectors A=(A1,A2,A3) and B=(B1,B2,B3) are given.
Vector
A=e^1A1+e^2A2+e^3A3=i=1∑3e^iAi=e^iAi
Inner Product of Two Vectors
A⋅B=A1B1+A2B2+A3B3=i=1∑3AiBi=AiBi
It can be expressed using the Kronecker delta as follows.
A⋅B=AiBi=δijAiBj
Let’s say ∂xi∂=∇i. Then, a similar result to the inner product of two vectors is obtained.
∇⋅A=∂x1∂A1+∂x2∂A2+∂x3∂A3=∇1A1+∇2A2+∇3A3=i=1∑3∇iAi=∇iAi=δij∇iAj
Cross Product of Two Vectors
=====A×B e^1(A2B3−A3B2)+e^2(A3BA1−A1B3)+e^3(A1B2−A2B1) e^1A2B3−e^1A3B2+e^2A3B1−e^2A1B3+e^3A1B2−e^1A2B1 ϵ123e^1A2B3+ϵ132e^1A3B2+ϵ231e^2A3B1+ϵ213e^2A1B3+ϵ312e^3A1B2+ϵ321e^3A2B1 i=1∑3j=1∑3k=1∑3ϵijke^iAjBk ϵijke^iAjBk
Here, ϵijk is the Levi-Civita symbol. By the above result, the following equation holds.
(A×B)i=ϵijkAjBk
Let’s say ∂xi∂=∇i again. Then, a similar result to the cross product of two vectors is obtained.
=====∇×A e^1(∇2A3−∇3A2)+e^2(∇3A1−∇1A3)+e^3(∇1A2−∇2A1) e^1∇2A3−e^1∇3A2+e^2∇3A1−e^2∇1A3+e^3∇1A2−e^1∇2A1 ϵ123e^1∇2A3+ϵ132e^1∇3A2+ϵ231e^2∇3A1+ϵ213e^2∇1A3+ϵ312e^3∇1A2+ϵ321e^3∇2A1 i=1∑3j=1∑3k=1∑3ϵijke^i∇jAk ϵijke^i∇jAk
Here, it’s important always to remember that ∇i represents differentiation. Normally, swapping the order of vector components doesn’t cause any problems.
A1A2A3=A2A1A3
However, since ∇i is a differentiation, you must never swap the order of vector components with it.
A1∇2A3=∇2A1A3
For example, if A=(y,xy,xyz), the following result is obtained.
A1∇2A3=y∂y∂(xyz)=xyz=2xyz=∂y∂(xy2z)=∇2A1A3
Of course, since ∂x∂y∂2=∂y∂x∂2, ∇1∇2=∇2∇1 holds true.