Is the inner product of two rank n tensors a scalar?

In summary: For example, if you have a rank n tensor represented as a matrix product ##x^t M y##, and you want to stretch it so that it takes on the form ##x^t M^u##, then the result will be a rank n-1 tensor, where ##M^u## is the stretched tensor.
  • #1
21joanna12
126
2
Hi all,

I'm trying (and failing miserably) to understand tensors, and I have a quick question: is the inner product of a rank n tensor with another rank n tensor always a scalar? And also is the inner product of a rank n tensor with a rank n-1 tensor always a rank n-1 tensor that has been transformed/stretched in some way?

I would also be really grateful if anyone has a simple explanation of rank 2 tensors. I've looked up several posts on PF and elsewhere but I still don't really get them...

Thank you!
 
Physics news on Phys.org
  • #2
A rank-2 tensor is just a bilinear map B(x,y), and can be represented as a matrix product ## x^t M y ## , for vectors x,y, where ## (M_{ij})=B(e_i,e_j)## , where {## e_i##} is a basis for the vector space V where your function is defined. The stretching you refer to happens with the wedge product, which is the tensor product restricted to alternating forms. See, e.g., http://en.wikipedia.org/wiki/Exterior_algebra . I don't remember the formula for inner-product of tensors, could you remind me or give me a ref.?
 
Last edited:
  • #3
There's no inner product for general tensors, only for vectors.
To elaborate: for a general tensor we have the so-called contracted tensor product. The 'inner product' notion is typical for 'inner product spaces' aka pre-Hilbert spaces, of which the most interesting are the infinite dimensional ones.
 
Last edited:
  • #4
21joanna12 said:
Hi all,

I'm trying (and failing miserably) to understand tensors, and I have a quick question: is the inner product of a rank n tensor with another rank n tensor always a scalar? And also is the inner product of a rank n tensor with a rank n-1 tensor always a rank n-1 tensor that has been transformed/stretched in some way?

I would also be really grateful if anyone has a simple explanation of rank 2 tensors. I've looked up several posts on PF and elsewhere but I still don't really get them...

Thank you!

What do you mean by inner product? As the above posters have mentioned, there is no unique "inner product" for two general tensors. But I will expand on their answers a little bit.

Note first that WWGD specified that a rank 2 tensor is a bilinear map. To generalize his answer, a higher ranked tensor is simply a multi-linear map, linear in each argument.

Second, there are different kinds of tensors. There are the contravariant tensors, the covariant tensors, and the mixed tensors. The contravariant tensors are those which can be decomposed into sums of outer products of vectors (and therefore take one-forms as arguments and produces a scalar), the covariant tensors are those which can be decomposed into the sums of outer products of one-forms (and therefore take vectors as arguments and produces a scalar), and the mixed tensors are a mixture of the two.

In index notation, we denote the components of a contravariant tensor as all upper indices ##B^{ijk...}##, while we denote the components of a covariant tensor as all lower indices ##B_{ijk...}## and again a mixed tensor is a mixture of the two.

Generally speaking then, we need two different labels to declare a tensor. We need the contravariant rank as well as the covariant rank. So, we usually say a tensor is of rank (n,m). For example, a (2,0) tensor would be a rank 2 fully contravariant tensor. A (0,3) tensor would be a rank 3 fully covariant tensor, and a (2,4) tensor would be a rank 6 mixed tensor.

Because you have specified that you are looking for an "inner product", then that necessarily means you have a metric tensor present on the manifold. The metric tensor explicitly can give the inner product between two vectors ##g(V,W)\equiv \left<V,W\right>=g_{ij} V^i W^j##. Because the metric tensor can do this, and since the metric tensor defines an inner product, it also defines an isomorphism between the tangent space (space of vectors) and the cotangent space (space of one forms) ##\tilde{B}\equiv g(B,\quad)##, or in index notation ##B_i = g_{ij}B^j##. Because of this isomorphism defined, we can use the metric to raise and lower indices of tensors ##B_i^{jkl...}=g_{im}B^{mjkl...}##, and therefore, define contractions between two different tensors.

Say you have tow tensors ##A## and ##B## of type (n,0) and (m,0) respectively where ##m\leq n##. Then you can contract m of the indices between the two tensors by using the metric ##g_{ij}g_{kl}...A^{ik...}B^{jl...}##, where there is one factor of g for each index that is being contracted (so there are m factors, for the m indices on the tensor B). You can perhaps think of this as some type of extension of an inner product. It sounds like, from your post, that this is what you're thinking of. But beware that this is not usually called "THE inner product" between two tensors.

In this scenario, if you have two rank n tensors, then indeed the result will be a scalar because in that case you have ##g_{ij}g_{kl}...A^{ik...}B^{jl...}=A_{jk...}B^{jk...}##, if you have a rank n tensor and a rank n-1 tensor and this process is what you did, then you will end up with a vector, NOT an n-1 tensor. There will be 1 left over index that you can't contract.
 
  • Like
Likes 1 person
  • #5
Thank you! I apologise for the confusion about my terminology- i really don't know very much about this (i'm in high school but trying to understand general relativity), but these posts have given me plenty to look up and consider!
 

1. What is an inner product?

An inner product is a mathematical operation that takes two vectors and produces a scalar. It is commonly used in linear algebra to calculate the angle between two vectors or to measure the length of a vector.

2. What is a rank n tensor?

A rank n tensor is an abstract mathematical object that can be represented as a multi-dimensional array of numbers. It has n indices and can be used to describe physical quantities such as mass, velocity, and force in multiple dimensions.

3. Can any two rank n tensors be multiplied using the inner product?

No, the inner product can only be applied to vectors and matrices, which are rank 1 and rank 2 tensors respectively. The inner product of two rank n tensors can only be calculated if n is equal to 1 or 2.

4. What is the result of the inner product of two rank n tensors?

The result of the inner product of two rank n tensors is a scalar, which is a single number. This number represents the magnitude of the projection of one tensor onto the other.

5. How is the inner product of two rank n tensors calculated?

The inner product of two rank n tensors is calculated by multiplying the corresponding elements of the tensors, summing the products, and then taking the absolute value of the sum. This can also be represented as the dot product of the two tensors.

Similar threads

  • General Math
Replies
1
Views
1K
  • General Math
Replies
9
Views
1K
  • Linear and Abstract Algebra
Replies
10
Views
371
  • High Energy, Nuclear, Particle Physics
Replies
1
Views
1K
  • Science and Math Textbooks
Replies
5
Views
2K
  • Differential Geometry
Replies
6
Views
2K
  • Differential Geometry
Replies
2
Views
597
  • Linear and Abstract Algebra
Replies
4
Views
2K
  • Special and General Relativity
Replies
22
Views
2K
  • Linear and Abstract Algebra
Replies
1
Views
828
Back
Top