Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn LaTeX

Getting Started

  • What is LaTeX?
  • LaTeX for Beginners

Tensors in LaTeX

Tensors are mathematical objects that generalize scalars, vectors, and matrices to higher dimensions. LaTeX provides excellent support for typesetting tensor notation, which is essential in physics, engineering, and advanced mathematics. This guide covers the essential LaTeX commands for working with tensors.

Basic Tensor Notation

Tensors are typically represented using indices to denote their components:

  1. Tensor Symbols

    Different ways to represent tensor symbols in LaTeX.

  2. Tensor Components with Indices

    Tensor components with superscript (contravariant) and subscript (covariant) indices.

  3. Tensor Rank

    A tensor of rank (m,n) has m contravariant indices and n covariant indices.

Einstein Summation Convention

The Einstein summation convention is commonly used with tensors, where repeated indices imply summation:

  1. Implicit Summation

    When an index appears once as a superscript and once as a subscript, summation is implied.

  2. Matrix Multiplication as Tensor Contraction

    Matrix multiplication expressed as tensor contraction using Einstein notation.

  3. Free Indices

    Indices that appear only once (i, j, k) are free indices and represent components of the resulting tensor.

Common Tensors in Physics

  1. Metric Tensor

    The Minkowski metric tensor used in special relativity.

  2. Kronecker Delta

    The Kronecker delta is a rank (1,1) tensor that acts as an identity operator.

  3. Levi-Civita Symbol

    The Levi-Civita symbol is used for cross products and determinants.

Tensor Operations

  1. Tensor Addition

    Tensors of the same rank can be added component-wise.

  2. Tensor Contraction

    Contraction of a tensor by setting a contravariant and covariant index equal.

  3. Tensor Product

    The tensor product combines two tensors into a higher-rank tensor.

Raising and Lowering Indices

The metric tensor can be used to raise or lower indices:

  1. Raising an Index

    Using the inverse metric tensor to raise an index.

  2. Lowering an Index

    Using the metric tensor to lower an index.

Covariant Derivatives

  1. Christoffel Symbols

  2. Covariant Derivative of a Vector

    The covariant derivative generalizes the partial derivative to curved spaces.

  3. Covariant Derivative of a Covector

Advanced Tensor Notation

  • The Riemann curvature tensor.

  • The Ricci tensor, a contraction of the Riemann tensor.

  • The Ricci scalar, a contraction of the Ricci tensor.

  • The Einstein tensor, used in general relativity.

Try it free

Skip the syntax — let AI write it.

Snap a photo of an equation, a table, or full handwritten notes and Underleaf turns it into clean, compilable LaTeX in seconds. 10 free credits every month, no credit card required.

Convert your page
Handwritten notes converted into a typeset LaTeX document

Tensors in LaTeX

Tensors are mathematical objects that generalize scalars, vectors, and matrices to higher dimensions. LaTeX provides excellent support for typesetting tensor notation, which is essential in physics, engineering, and advanced mathematics. This guide covers the essential LaTeX commands for working with tensors.

Basic Tensor Notation

Tensors are typically represented using indices to denote their components:

  1. Tensor Symbols

    Different ways to represent tensor symbols in LaTeX.

  2. Tensor Components with Indices

    Tensor components with superscript (contravariant) and subscript (covariant) indices.

  3. Tensor Rank

    A tensor of rank (m,n) has m contravariant indices and n covariant indices.

Einstein Summation Convention

The Einstein summation convention is commonly used with tensors, where repeated indices imply summation:

  1. Implicit Summation

    When an index appears once as a superscript and once as a subscript, summation is implied.

  2. Matrix Multiplication as Tensor Contraction

    Matrix multiplication expressed as tensor contraction using Einstein notation.

  3. Free Indices

    Indices that appear only once (i, j, k) are free indices and represent components of the resulting tensor.

Common Tensors in Physics

  1. Metric Tensor

    The Minkowski metric tensor used in special relativity.

  2. Kronecker Delta

    The Kronecker delta is a rank (1,1) tensor that acts as an identity operator.

  3. Levi-Civita Symbol

    The Levi-Civita symbol is used for cross products and determinants.

Tensor Operations

  1. Tensor Addition

    Tensors of the same rank can be added component-wise.

  2. Tensor Contraction

    Contraction of a tensor by setting a contravariant and covariant index equal.

  3. Tensor Product

    The tensor product combines two tensors into a higher-rank tensor.

Raising and Lowering Indices

The metric tensor can be used to raise or lower indices:

  1. Raising an Index

    Using the inverse metric tensor to raise an index.

  2. Lowering an Index

    Using the metric tensor to lower an index.

Covariant Derivatives

  1. Christoffel Symbols

  2. Covariant Derivative of a Vector

    The covariant derivative generalizes the partial derivative to curved spaces.

  3. Covariant Derivative of a Covector

Advanced Tensor Notation

  • The Riemann curvature tensor.

  • The Ricci tensor, a contraction of the Riemann tensor.

  • The Ricci scalar, a contraction of the Ricci tensor.

  • The Einstein tensor, used in general relativity.

Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsAffiliate Program

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorThesis GeneratorChrome ExtensionAll Tools

© 2026 Underleaf. All rights reserved.