Tensor #5. Tensor Products텐서 #5. 텐서 프로덕트
Tensor series, part 5: defining a tensor as a map, and building the basis and components of a tensor product spaceTensor 시리즈 5편: 텐서를 맵으로 정의하고, 텐서 프로덕트 스페이스의 기저와 성분을 구성
Tensor series텐서 시리즈Part 5 of 4040편 중 5번째
- Tensor #1. Elementary Vector Space텐서 #1. 기초적인 벡터 스페이스
- Tensor #2. Einstein Notation and Maps텐서 #2. 아인슈타인 표기법과 맵
- Tensor #3. Dual Spaces텐서 #3. 듀얼 스페이스
- Tensor #4. Cartesian Products텐서 #4. 카테시안 프로덕트
- Tensor #5. Tensor Products텐서 #5. 텐서 프로덕트
- Tensor #6. Tensor Product Spaces텐서 #6. 텐서 프로덕트 스페이스
- Tensor #7. Rank of Tensor Product Spaces텐서 #7. 텐서 프로덕트 스페이스의 랭크
- Tensor #8. Linear Transformations텐서 #8. 선형 변환
- Tensor #9. Transformations of Tensor Product Spaces텐서 #9. 텐서 프로덕트 스페이스의 변환
- Tensor #10. Metric Spaces텐서 #10. 메트릭 스페이스
- Tensor #11. The Metric Tensor텐서 #11. 메트릭 텐서
- Tensor #12. Contraction and Index Gymnastics텐서 #12. 컨트랙션과 인덱스 짐내스틱스
- Tensor #13. Realization of a Vector Space텐서 #13. 벡터 스페이스의 리얼라이제이션
- Tensor #14. Vector and Tensor Fields텐서 #14. 벡터장과 텐서장
- Tensor #15. Coordinate Transformations텐서 #15. 좌표 변환
- Tensor #16. The Metric Tensor Field텐서 #16. 메트릭 텐서장
- Tensor #17. The Covariant Derivative (Elementary Pedagogy)텐서 #17. 공변 미분 (초보적인 방법)
- Tensor #18. The Covariant Derivative, Continued텐서 #18. 공변미분 이어서
- Tensor #19. Algebraic Structures I텐서 #19. 대수 구조 I
- Tensor #20. Algebraic Structures II: Modules to Algebras텐서 #20. 대수 구조 II: 모듈에서 대수까지
- Tensor #21. The Lie Derivative텐서 #21. 리 미분
- Tensor #22. Invitation to p-forms텐서 #22. p-형식으로의 초대
- Tensor #23. Operations on p-forms: The Exterior Algebra텐서 #23. p-형식의 연산과 외대수
- Tensor #24. The Exterior Derivative: A Formal Introduction텐서 #24. 외미분의 형식적 도입
- Tensor #25. Review of Determinants텐서 #25. 행렬식 복습
- Tensor #26. P-vectors and P-forms Recap텐서 #26. P-벡터와 P-형식 복습
- Tensor #27. Formal Development of p-forms and p-vectors, Part 1텐서 #27. p-형식과 p-벡터의 정식 전개 1
- Tensor #28. Formal Development of p-forms and p-vectors, Part 2텐서 #28. p-형식과 p-벡터의 정식 전개 2
- Tensor #29. Transformations of Tensors and p-forms텐서 #29. 텐서와 p-형식의 변환
- Tensor #30. Transformation of Forms (Part I)텐서 #30. 형식의 변환 법칙 (1부)
- Tensor #31. Tensor Densities텐서 #31. 텐서 밀도
- Tensor #32. Tensor Density Examples텐서 #32. 텐서 밀도의 예
- Tensor #33. Duality and the Hodge Dual (Part 1)텐서 #33. 쌍대성과 호지 쌍대 (1부)
- Tensor #34. Elementary Hodge Dual Calculations텐서 #34. 호지 쌍대 계산 예
- Tensor #35. Other Notions of Duality텐서 #35. 또 다른 쌍대
- Tensor #36. Visualization of Forms: Arrows and Stacks텐서 #36. 형식의 시각화: 화살표와 스택
- Tensor #37. Tacks and Sheaves, Honeycombs텐서 #37. 압정, 다발, 벌집
- Tensor #38. All Possible Operations텐서 #38. 가능한 모든 연산
- Tensor #39. The End텐서 #39. 마지막 강의
- Tensor #40. Special Lecture: Tangent Spaces and Coordinate Basis텐서 #40. 특별 강의: 탄젠트 스페이스와 좌표 기저
Contents목차
XylyXylyX의 What is Tensor 강의를 정리한 노트입니다. 이 글은 재생목록의 5강 Tensor Products에 해당합니다.
텐서는 맵입니다
벡터 스페이스 와 듀얼 스페이스 , 그리고 지난 편의 카테시안 프로덕트가 준비되었습니다. 와 자신의 카테시안 프로덕트 는 벡터 두 개를 순서대로 묶은 순서쌍의 집합입니다. 이 집합에서 실수로 가는 선형 맵을 만들 겁니다.
이런 맵이 바로 텐서입니다. 텐서는 벡터 스페이스들의 카테시안 프로덕트에서 원소를 받아 실수를 내주는 맵이고, 정의는 이것이 전부입니다. 텐서는 종류가 많은데, 그건 곱하는 스페이스의 개수와 종류가 여러 가지이기 때문입니다. 지금은 두 개를 곱한 경우만 봅니다. (이 곱 집합 자체를 벡터 스페이스로 만들려면 덧셈과 스칼라 곱을 따로 정의해야 하는데, 그 일은 직합이라는 연산이 하고 여기서는 필요 없습니다.)
텐서 프로덕트의 정의
맵은 규칙을 마음대로 정해도 되지만, 우리는 를 만들 때 따라온 것 말고는 아무것도 새로 만들고 싶지 않습니다. 그리고 선형이어야 합니다. 손에 있는 도구는 듀얼 스페이스에 사는 맵뿐입니다. 이 조건이 설계를 사실상 하나로 정해 줍니다. 듀얼 벡터 둘, 와 를 가져와서 텐서 프로덕트 로 묶습니다.
는 통째로 맵 하나의 이름입니다. 이 맵은 벡터 의 순서쌍을 받아서, 첫째 듀얼 벡터를 첫째 벡터에 작용시킨 실수와 둘째 듀얼 벡터를 둘째 벡터에 작용시킨 실수를 곱합니다. 선형성을 지키면서 듀얼 스페이스의 도구만 쓰는 방법은 이 곱뿐입니다. 이 정의는 이 대상이 이렇게 행동하는 맵이라는 선언일 뿐이고, 와 에 어떤 이항 연산을 적용해서 새 대상을 얻는다는 뜻이 아닙니다. 이 맵에 같은 새 이름을 붙일 수도 있지만, 그러면 자리가 두 개인 맵이라는 사실을 잊고 한 벡터에만 작용하는 보통 맵과 헷갈리기 쉽습니다. 그래서 꼴로 두면 두 자리가 있다는 것을 늘 알 수 있습니다.
듀얼 스페이스의 원소도 벡터를 하나 받아 실수를 내주므로, 자리가 하나뿐인 아주 단순한 텐서로 볼 수 있습니다.
텐서 프로덕트 스페이스
이렇게 만든 맵끼리 더하고 싶습니다. 선형성을 지키도록 정의하면 됩니다.
실수 를 곱하는 것도 같은 방식으로 자연스럽게 정해집니다. 덧셈과 스칼라 곱이 생겼으니, 이런 텐서 전체의 집합은 벡터 스페이스입니다. 이것을 텐서 프로덕트 스페이스라고 부르고 로 씁니다. 여기서는 를 집합 사이에 쓰고 있어서 기호가 조금 중복됩니다. 양쪽에 듀얼 벡터 하나씩이 오면 텐서 하나가 되고, 양쪽에 집합이 오면 가능한 텐서 전체의 모음이 됩니다. 어느 쪽인지는 문맥으로 알 수 있습니다.
그리고 이 스페이스는 벡터 스페이스이니, 그 원소인 모든 텐서는 벡터입니다. 말이 어색하게 들려도 틀린 말이 아닙니다. 더할 수 있고, 스칼라를 곱할 수 있고, 선형성이 있기 때문입니다.
기저와 성분
가 벡터 스페이스이니 기저가 있어야 합니다. 원소가 텐서이므로 기저도 텐서입니다. 어렵지 않게 짐작할 수 있듯이, 듀얼 기저 둘씩 짝지은 것입니다.
차원이 4일 때 개이므로 이 스페이스는 16차원입니다. 기저 텐서 하나가 벡터 쌍에 어떻게 작용하는지 봅시다. 벡터 와 에 를 작용시키면 이렇게 됩니다.
기저를 이렇게 골랐기 때문에 결과가 성분의 단순한 곱이 되고, 우리가 이 기저를 고르는 이유가 바로 계산이 쉬워지기 때문입니다. 물론 이것도 우리가 정한 것입니다.
임의의 텐서는 기저 텐서의 선형 결합이고, 계수에는 첨자가 두 개 필요합니다. 아인슈타인 합 규약으로 쓰면 이렇습니다.
는 기저 텐서마다 하나씩 붙는 실수 16개입니다. 일반 상대성 이론에서 만나는 그 이차 텐서가 바로 이 계수들입니다. 그러니 이 숫자들은 텐서(벡터)의 성분이고, 어떤 기저를 골랐느냐에 따라 달라집니다. 텐서 그 자체와는 구분해야 합니다.
직접 계산해 봅시다. 차원은 2로 줄였습니다. 의 성분은 이고, 정의대로 계산한 값과 성분 표로 계산한 값이 같아야 합니다.
Q. 텐서 프로덕트 스페이스의 원소는 모두 꼴인가요?
A. 모든 원소가 꼴 하나로 쓰이는 것은 아닙니다. 위 장난감에서 “곱 둘의 합”을 골라 보세요. 곱 하나로 만든 표는 행렬식이 늘 0이지만, 두 개를 더하면 행렬식이 0과 다른 표가 나옵니다. 정의에서 더한 결과도 이 스페이스의 원소로 허용했으므로 곱 하나로 쓸 수 없는 텐서도 스페이스 안에 있습니다. (이 설명은 2차원 예시로 확인한 것이고, 강의에서 따로 다룬 내용은 아닙니다.)
다음 편에서는 더 큰 텐서 프로덕트 스페이스를 만들고, 텐서가 어떻게 작용하는지를 더 살펴봅니다. 지금 기억할 것은 두 가지입니다. 텐서는 벡터 쌍을 실수로 보내는 맵이고, 그 쌍은 벡터 둘입니다. 벡터와 코벡터의 쌍이 아닙니다.
These are my notes on XylyXylyX’s What is Tensor lectures. This post covers lecture 5 of the playlist, Tensor Products.
A tensor is a map
We now have a vector space , its dual space , and the Cartesian product from the previous post. The Cartesian product of with itself, , is the set of ordered pairs of two vectors. We are going to build a linear map from this set to the real numbers.
Such a map is a tensor. A tensor is a map that takes elements of a Cartesian product of vector spaces and returns a real number, and that is the whole definition. There are many kinds of tensors because there are many numbers and kinds of spaces to multiply. For now we look only at the case of two copies of . (To make this product set itself a vector space we would have to define addition and scalar multiplication separately. An operation called the direct sum does that, and we do not need it here.)
Defining the tensor product
A map may follow any rule we like, but we do not want to create anything new beyond what came with . And the map must be linear. The only tools at hand are the maps living in the dual space. These conditions practically fix the design. Take two dual vectors and and join them with the tensor product .
as a whole is the name of one map. The map takes an ordered pair of vectors , applies the first dual vector to the first vector and the second dual vector to the second, and multiplies the two real numbers. This product is the only way to keep linearity while using only tools from the dual space. This definition is a declaration that the object is a map which behaves this way. It does not say that we apply some binary operation to and to get a new object. We could give this map a new name such as , but then we would forget that it has two slots and easily confuse it with an ordinary map that acts on a single vector. Leaving it in the form always reminds us that there are two slots.
An element of the dual space also takes one vector and gives a real number, so it can be seen as a very simple tensor with a single slot.
The tensor product space
We want to add maps built this way. We can define the sum so that linearity is kept.
Multiplication by real numbers is fixed in the same natural way. Since addition and scalar multiplication exist, the set of all such tensors is a vector space. We call it the tensor product space and write it . Here is written between sets, so the symbol is a bit overloaded. With one dual vector on each side we get a single tensor, and with sets on both sides we get the collection of all possible tensors. The context tells us which one is meant.
And since this space is a vector space, every tensor, as an element of it, is a vector. The statement may sound odd but it is not a mistake. We can add them, multiply them by scalars, and they have linearity.
Basis and components
Since is a vector space, it needs a basis. Its elements are tensors, so the basis consists of tensors. As you can guess, they are pairings of the dual basis vectors.
In dimension 4 there are of them, so this space is 16-dimensional. Let us see how one basis tensor acts on a pair of vectors. Applying to the vectors and gives this.
Because we chose the basis this way, the result is a simple product of components, and that is exactly why we choose it: it makes calculation easy. Of course this too is our own choice.
An arbitrary tensor is a linear combination of basis tensors, and the coefficients need two indices. With the Einstein summation convention it is written like this.
are 16 real numbers, one attached to each basis tensor. They are the coefficients of the rank-2 tensor you meet in general relativity. So these numbers are the components of the tensor (a vector), and they change with the basis we pick. They are not the tensor itself.
Let us compute by hand. I reduced the dimension to 2. The components of are , and the value computed by the definition must agree with the value computed from the component table.
Q. Is every element of the tensor product space of the form ?
A. Not every element can be written in one form. In the toy above, choose “Sum of two products”. A table made from one product always has determinant 0, but adding two can give a table with a nonzero determinant. Our definition allows sums as elements of this space, so tensors that cannot be written as a single product live in the space too. (I checked this with a 2-dimensional example, and the lecture does not cover it separately.)
In the next post we build bigger tensor product spaces and look further at how tensors act. Two things to remember for now. A tensor is a map that sends a pair of vectors to a real number, and the pair is two vectors. It is not a vector and a covector.
Comments댓글