Tensors
Tensors
- a tensor is an object that is invariant under a change of coordinate/basis and has COMPONENTS that change in a special predictable way under a change of coordinates/basis
- a tensor is a collection of vectors and covectors combined together using the tensor product
- tensors can take several different forms (e.g. scalars, vectors, covectors, linear maps, bilinear maps, multilinear maps, etc)
Tensors - Introduction
1 - How do basis vector components change WRT change of basis?
We define:
- old basis: {𝑒1, 𝑒2}
- new basis: {𝑒̃1, 𝑒̃2}
We define:
- forward transform: old basis → new basis
- 𝑒̃1 = 𝑎·𝑒1 + 𝑏·𝑒2
- 𝑒̃2 = 𝑐·𝑒1 + 𝑑·𝑒2
Loading
- backward transform: new basis → old basis
- 𝑒1 = 𝑎·𝑒̃1 + 𝑏·𝑒̃2
- 𝑒2 = 𝑐·𝑒̃1 + 𝑑·𝑒̃2
Loading
Forward transform is the inverse of Backward transform
- Loading
- Loading
Thus
- Loading
- Loading
Confirming the inverse behavior of the above equations
- Loading
- Loading
- Loading
- Loading
Thus 𝛿𝑖𝑗 is the kronecker delta function:
- Loading
2 - How do vector components change WRT change of basis?
- 𝑣 = 𝑣[1] · 𝑒1 + 𝑣[2] · 𝑒2
- 𝑣̃ = 𝑣̃[1] · 𝑒̃1 + 𝑣̃[2] · 𝑒̃2
- 𝑣 = 𝑣̃ are geometrically the same vector
|
Thus
|
Thus
|
Thus | |
|
|
3 - Covector Introduction
Covectors are functions 𝛼: 𝑉→ℝ that map a vector to a number and also obey the following rules:
- 𝛼(𝑣 + 𝑢) = 𝛼(𝑣) + 𝛼(𝑢)
- 𝛼(𝑛·𝑣) = 𝑛·𝛼(𝑣)
Covectors can also be viewed as elements of dual vector space 𝑉*:
- (𝑛·𝛼)(𝑣) = 𝑛·𝛼(𝑣)
- (𝛼+𝛽)(𝑣) = 𝛼(𝑣) + 𝛽(𝑣)
Covectors can be visualized as level sets
What does a covector measure when we write [2 1]? like 2 of what and 1 of what?
Covectors don't live in the vector space 𝑉, thus we can't use basis vectors in 𝑉 like {𝑒1, 𝑒2} to measure covectors
epsilon covectors 𝜀𝑖 are defined as:
Thus:
| In other words, let:
The system of equations can be expressed as:
|
epsilon covector 𝜀𝑖 consumes arbitrary vector 𝑣: | |
|
|
arbitrary covector 𝛼 consumes arbitrary vector 𝑣:
Thus
Thus
|
The epsilon covectors 𝜀1 and 𝜀2 form the basis vectors of the dual vector space 𝑉*:
|
The components of covector 𝛼 can be extracted as follows:
Thus:
|
RECAP:
- starting with basis vectors 𝑒𝑖 of a vector space 𝑉
- you can derive the epsilon covectors 𝜀𝑖 as so: 𝜀𝑖(𝑒𝑗) = 𝛿𝑖𝑗
- in which the epsilon covectors form a dual basis of the dual vector space 𝑉*
4 - How do covector components change WRT change of basis?
Let's define:
𝜀1(𝑒1) = 1 = 𝜀̃1(𝑒̃1) | 𝜀𝑖(𝑒𝑗) = 𝛿𝑖𝑗 = 𝜀̃𝑖(𝑒̃𝑗) |
Thus
|
|
|
|
Thus
|
|
Thus
|
|
|
|
5 - How do dual basis covectors change WRT change of basis?
We define:
- 𝜀𝑖(𝑒𝑗) = 𝛿𝑖𝑗 = 𝜀̃𝑖(𝑒̃𝑗)
By definition of basis
|
|
|
|
6 - Linear Maps Introduction
A linear map 𝐿:
The Matrix Multiplication can be purely Derived from the Linearity Rules Above
Basis of Linear Maps{𝑒1𝜀1, 𝑒1𝜀2, 𝑒2𝜀1, 𝑒2𝜀2} is one possible basis for linear map 𝐿: ℝ2→ℝ2 where:
Thus
Thus: linear maps can be written as linear combinations of vector-covector pairs How is a Basis 𝑒𝑖𝜀𝑗 a Linear Map (That Eats a Vector and Outputs a Vector)?Given:
Let 𝐿 eat a vector 𝑣:
| Given a linear transformation 𝐿, the set of vectors for which 𝐿 vanishes is called the KERNEL of 𝐿
Given a linear transformation 𝐿:
The dimension of range(𝐿) is called the rank of 𝐿 (i.e. rank(𝑇)) Matrices: Null-Spaces, Column-Spaces, Row Spaces
The Rank-Nullity TheoremGiven a linear transformation 𝐿 from ℝ𝑛 to ℝ𝑚, then:
|
7 - How do linear transformations change WRT change of basis?
Loading
|
|
| Einstein's notation:
|
Thus | |
|
Given:
Linear Map Definition | Basis Vectors | Basis Covectors |
---|---|---|
|
|
|
Then
Then start with the definition of linear map 𝐿:
Next, transform all the basis vectors and basis covectors individually
Thus:
| Then start with the definition of linear map 𝐿:
Next, transform all the basis vectors and basis covectors individually
Thus:
|
Given:
- basis 𝑒 = {𝑒1, ..., 𝑒𝑛}
- basis 𝑓 = {𝑓1, ..., 𝑓𝑛}
- matrix 𝐹 = [𝑓] = [𝑓1 ... 𝑓𝑛] where 𝑓𝑖 are columns expressed in 𝑒
Then:
- 𝑣𝑒 = 𝐹 𝑣𝑓
- 𝑣𝑓 = 𝐹-1 𝑣𝑒
Hence if:
- 𝑇∊𝐿(ℝ𝑛) and matrix 𝐴𝑒 is a realization of transformation 𝑇 expressed in basis 𝑒
What is the realization matrix 𝐴𝑓 expressed in basis 𝑓?
- by definition:
- 𝑦𝑓 = 𝐴𝑓𝑥𝑓
- 𝑦𝑒 = 𝐴𝑒𝑥𝑒
- then:
- 𝑦𝑓 = 𝐹-1𝑦𝑒
- 𝑦𝑓 = 𝐹-1𝐴𝑒𝑥𝑒
- 𝑦𝑓 = 𝐹-1𝐴𝑒𝐹𝑥𝑓
- 𝐴𝑓𝑥𝑓 = 𝐹-1𝐴𝑒𝐹𝑥𝑓
- thus:
- 𝐴𝑓 = 𝐹-1𝐴𝑒𝐹
8 - How do basis of a linear transformation change WRT change of basis?
TODO
9 - Metric Tensor Introduction
Metric Tensors
- are invariant to change of basis
- measures: length & angle
Length
- ||𝑣||2 = 𝑣·𝑣
- ||𝑣||2 = (𝑣1𝑒1 + 𝑣2𝑒2)·(𝑣1𝑒1 + 𝑣2𝑒2)
- ||𝑣||2 = (𝑣1·𝑣1)(𝑒1·𝑒1) + 2(𝑣1·𝑣2)(𝑒2·𝑒2) + (𝑣2·𝑣2)(𝑒2·𝑒2)
Loading
|
Loading
|
|
|
Angles
Say we have Unit Vectors
three possible combinations:
|
Thus:
|
|
Loading
|
Loading
|
Say We Have Arbitrary Vectors
First, define 2 new basis vectors {𝑒̃1, 𝑒̃2}:
The metric tensor (𝑣·𝑤) is computed as:
Thus:
|
The angle between 2 vectors can be computed entirely by the metric tensor
- (𝑣·𝑤) = (𝑣1·𝑒1 + 𝑣2·𝑒2) · (𝑤1·𝑒1 + 𝑤2·𝑒2)
- = (𝑣1·𝑒1 + 𝑣2·𝑒2) · (𝑤1·𝑒1 + 𝑤2·𝑒2)
- = 𝑣1𝑤1(𝑒1·𝑒1) + 𝑣1𝑤2(𝑒1·𝑒2) + 𝑣2𝑤1(𝑒2·𝑒1) + 𝑣2𝑤2(𝑒2·𝑒2)
- = 𝑣1𝑤1𝑔11 + 𝑣1𝑤2𝑔12 + 𝑣2𝑤1𝑔21 + 𝑣2𝑤2𝑔22
- = 𝑣𝑖𝑤𝑗𝑔𝑖𝑗
Lengths & Angles Summary
- 𝑣·𝑣 = ||𝑣||2 = 𝑣𝑖𝑣𝑗 𝑔𝑖𝑗
- 𝑤·𝑤 = ||𝑤||2 = 𝑤𝑖𝑤𝑗 𝑔𝑖𝑗
- 𝑣·𝑤 = ||𝑣|| ||𝑤|| 𝑐𝑜𝑠(𝜃) = 𝑣𝑖𝑤𝑗 𝑔𝑖𝑗
- Loading
Components of a Metric Tensor
- 𝑔𝑖𝑗 = 𝑒𝑖·𝑒𝑗 = 𝑒𝑗·𝑒𝑖 = 𝑔𝑗𝑖
Thus the metric tensor is a symmetric matrix
Metric Tensor Algebraic Properties
- 𝑔: 𝑉⨯𝑉 → ℝ
- multiplication
- 𝑎·(𝑣𝑖𝑤𝑗𝑔𝑖𝑗) = (𝑎·𝑣𝑖)𝑤𝑗𝑔𝑖𝑗 = 𝑣𝑖(𝑎·𝑤𝑗)𝑔𝑖𝑗
- 𝑎·𝑔(𝑣,𝑤) = 𝑔(𝑎·𝑣,𝑤) = 𝑔(𝑣,𝑎·𝑤) # simplified
- addition
- 𝑔(𝑣+𝑢,𝑤) = 𝑔(𝑣,𝑤) + 𝑔(𝑢,𝑤)
- 𝑔(𝑣,𝑤+𝑢) = 𝑔(𝑣,𝑤) + g(𝑣,𝑢)
- symmetric
- 𝑔(𝑣,𝑤) = 𝑔(𝑤,𝑣)
- positive definite
- 𝑔(𝑣,𝑣) = ||𝑣||2 ≥ 0
Metric Tensors are a type of bilinear form with 2 additional properties:
- symmetric
- positive definite
10 - How do Metric Tensor Components Change WRT Change of Basis
HOW METRIC TENSOR COMPONENTS CHANGE WRT CHANGE OF BASIS
- 𝑔𝑘𝑙 = 𝑒𝑘·𝑒𝑙
- 𝑔̃𝑖𝑗 = 𝑒̃𝑖·𝑒̃𝑗
|
|
CONFIRM THE SQUARED LENGTH OF A VECTOR REMAINS THE SAME WRT CHANGE OF BASIS
verify the following two statements are equivalent:
- ||𝑣||2 = 𝑣𝑖𝑣𝑗 𝑔𝑖𝑗
- ||𝑣||2 = 𝑣̃𝑖𝑣̃𝑗 𝑔̃𝑖𝑗
proof:
- ||𝑣||2 = 𝑣̃𝑖𝑣̃𝑗 𝑔̃𝑖𝑗
- ||𝑣||2 = (𝐵𝑖𝑎 𝑣𝑎) (𝐵𝑗𝑏 𝑣𝑏) (𝐹𝑘𝑖 𝐹𝑙𝑗 𝑔𝑘𝑙)
- ||𝑣||2 = 𝑣𝑎𝑣𝑏𝑔𝑘𝑙(𝐵𝑖𝑎𝐹𝑘𝑖 𝐵𝑗𝑏𝐹𝑙𝑗)
- ||𝑣||2 = 𝑣𝑎𝑣𝑏𝑔𝑘𝑙(𝛿𝑎𝑘 𝛿𝑏𝑙) # 𝐵𝐹 simplifies to Kronecker delta function
- ||𝑣||2 = 𝑣𝑘𝑣𝑙𝑔𝑘𝑙
- ||𝑣||2 = 𝑣𝑖𝑣𝑗𝑔𝑖𝑗
11 - How do Basis of a Metric Tensor Change WRT Change of Basis
TODO
12 - Bilinear Forms Introduction
METRIC TENSOR ALGEBRAIC PROPERTIES
- 𝑔: 𝑉⨯𝑉 → ℝ
- 𝑎·𝑔(𝑣,𝑤) = 𝑔(𝑎·𝑣,𝑤) = 𝑔(𝑣,𝑎·𝑤) # simplified
- 𝑔(𝑣+𝑢,𝑤) = 𝑔(𝑣,𝑤) + 𝑔(𝑢,𝑤)
- 𝑔(𝑣,𝑤+𝑢) = 𝑔(𝑣,𝑤) + g(𝑣,𝑢)
- 𝑔(𝑣,𝑤) = 𝑔(𝑤,𝑣)
- 𝑔(𝑣,𝑣) = ||𝑣||2 ≥ 0
BILINEAR FORM DEFINITION
- 𝐵: 𝑉⨯𝑉 → ℝ
- 𝑎·𝐵(𝑣,𝑤) = 𝐵(𝑎·𝑣,𝑤) = 𝐵(𝑣,𝑎·𝑤)
- 𝐵(𝑣+𝑢,𝑤) = 𝐵(𝑣,𝑤) + 𝐵(𝑢,𝑤)
- 𝐵(𝑣,𝑤+𝑢) = 𝐵(𝑣,𝑤) + 𝐵(𝑣,𝑢)
thus bilinear forms are (0,2)-tensors:
- Loading
- Loading
FORMS are functions that take vectors as input and output a field
- the linear form takes in 1 vector
- the bilinear forms take in 2 vectors
BILINEAR FORMS
- are linear combinations of covector-covector pairs
- Loading
How do Bilinear Form components Change WRT change of Basis?
see: Tensor - 13 - How do Bilinear Form Components Change WRT Change of Basis
Why a row of rows?
- Loading
- Loading
- Loading
Bilinear Forms V⨯𝑉 → ℝ:
- Loading
- Loading
- Loading
- Loading
- Loading
- Loading
- Loading
Basis of a Bilinear Form
{𝜀1𝜀1, 𝜀1𝜀2, 𝜀2𝜀1, 𝜀2𝜀2} is one possible basis for bilinear form 𝐵: ℝ2→ℝ where:
- Loading
- Loading
- Loading
Thus
- 𝐵 = 𝐵11𝜀1𝜀1 + 𝐵12𝜀1𝜀2 + 𝐵21𝜀2𝜀1 + 𝐵22𝜀2𝜀2
- 𝐵 = 𝐵𝑖𝑗 𝜀𝑖𝜀𝑗 # Einstein's notation
Thus: bilinear forms can be written as linear combinations of covector-covector pairs
How is a Basis 𝜀𝑖𝜀𝑗 a Bilinear Form (That Eats 2 Vectors and Outputs a Scalar)?
Given:
Let 𝐵 eat a vectors 𝑣 and 𝑤:
|
Which is a scalar
|
13 - How do Bilinear Form Components Change WRT Change of Basis
Given
|
|
Then
Thus
|
Thus
|
The bilinear map consumes 2 vectors and outputs a scalar
Given
- Loading
- Loading
- Loading
Then
- Loading
- Loading
- Loading
- Loading
- Loading
- Loading
Given
Bilinear Map Definition | Basis Covectors |
---|---|
|
|
Then
Then start with the definition of bilinear form 𝐵:
Next, transform all the basis vectors and basis covectors individually
Thus:
| Then start with the definition of bilinear form 𝐵:
Next, transform all the basis vectors and basis covectors individually
Thus
|
Tensors - Types
(m,n)-tensor
- m = number of contravariant indices (top of 𝑇)
- n = number of covariant indices (bottom of 𝑇)
For example, a (3,3)-tensor 𝑇 is denoted as:
- Loading
- Loading
How do components of a (3,3)-tensor 𝑇 change WRT change of basis?
- Loadinghow it's computed
Prerequisite knowledge:
How Basis Vectors 𝑒𝑗 Change WRT Change of Basis How Dual Basis Covectors 𝜀𝑖 Change WRT Change of Basis - Loading
- Loading
- Loading
- Loading
Start with the definition:
- Loading
Next, transform all the basis vectors and basis covectors individually and resolve:
- Loading
- Loading
- Loading
Thus
- Loading
- Loadinghow it's computed
Prerequisite knowledge:
How Basis Vectors 𝑒𝑗 Change WRT Change of Basis How Dual Basis Covectors 𝜀𝑖 Change WRT Change of Basis - Loading
- Loading
- Loading
- Loading
Start with the definition:
- Loading
Next, transform all the basis vectors and basis covectors individually and resolve:
- Loading
- Loading
- Loading
Thus
- Loading
Name | Tensor Type | Longer Syntax | Shorter | How Components Change WRT Change of Basis | Is an Element of | Available Functions | Additional | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
basis vectors | covariant (0,1)-tensor | Loading | Loading |
| Loading | N/A | Click here to expand... basis vector components are covariant with the change of basis | ||||||||||||||||||||||||
vectors | contravariant (1,0)-tensor | Loading | Loading |
| Loading | Click here to expand...
| Click here to expand... vectors themselves are invariant to the change of basis | ||||||||||||||||||||||||
dual basis covectors | contravariant (1,0)-tensor | Loading | Loading |
| Loading | N/A | Click here to expand... dual basis covector components are contravariant with the change of basis | ||||||||||||||||||||||||
covectors | covariant (0,1)-tensor | Loading | Loading |
| Loading | Click here to expand...
| Click here to expand... covectors themselves are invariant to the change of basis | ||||||||||||||||||||||||
linear maps | (1,1)-tensor | Loading | Loading |
| Loading | Click here to expand...
| Click here to expand... linear transformations themselves are invariant to the change of basis | ||||||||||||||||||||||||
bilinear forms | (0,2)-tensor | Loading | Loading |
| Loading | Click here to expand...
| |||||||||||||||||||||||||
metric tensors | (0,2)-tensor | Loading | Loading |
| Loading | Click here to expand...
| Click here to expand... lengths and angles themselves are invariant to the change of basis metric tensors are a special type of bilinear forms |
Resources
- NASA's - An Introduction to Tensors for Students of Physics and Engineering
- Brian Keng's Tensor Introduction
- YouTube - Mu Prime Math - A Concrete Introduction to Tensor Products
- YouTube - EigenChris - Tensors for Beginners
- YouTube - EigenChris - Tensor Calculus
- Old Stuff
Tensor Ranks
Tensor Rank Name Description # of components tensor of rank 0 scalar magnitude (no direction) - 1
tensor of rank 1 vector each component describes the magnitude in a particular direction
- magnitude in the x-direction
- magnitude in the y-direction
- magnitude in the z-direction
- 3 - for 3 dimensions
tensor of rank 2 dyad
each direction is described with a vector
- x direction is described with a vector
- y direction is described with a vector
- z direction is described with a vector
- 9 - for 3 components for each of the 3 dimensions
tensor of rank 3 triad - 27
Einstein's Theory of Relativity required a tensor of rank 4 (x,y,z,t); thus 4*4*4*4=256 components to describe the Theory of Relativity
Tensor - Represented as a Matrix