Basis Vector in LaTeX (e_i)
- LaTeX command
e_i- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Basis vectors of a vector space or tangent space, indexed with a lower index so components carry upper ones.
A vector is expanded as v = v^i e_i, pairing the lower index on the basis with the upper index on the components. In geometry the coordinate basis is e_i = \partial_i, and in an orthonormal frame g(e_i, e_j) = \delta_{ij}. Physics and engineering often write bold \mathbf{e}_i or hats \hat{e}_i, and use \mathbf{e}_x, \mathbf{e}_y for Cartesian directions. Keep the index low; writing e^i for basis vectors conflicts with the dual basis convention. Under a change of basis e'_i = A^j{}_i e_j, the components transform with the inverse matrix.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Basis Vector: $e_i$
\[ v = v^i e_i,\quad g(e_i, e_j) = \delta_{ij} \]
\end{document}Related symbols
- Dual Basis
e^i - Tensor Rank
(p, q) - Component Transform
T'^{ij} = \Lambda^i_k \Lambda^j_l T^{kl} - Antisymmetrization
T_{[ij]} - Symmetrization
T_{(ij)} - Covariant Derivative
\nabla_i
Frequently asked questions
- How do I write Basis Vector in LaTeX?
- Type e_i in math mode, for example $v = v^i e_i,\quad g(e_i, e_j) = \delta_{ij}$. It works in plain LaTeX without loading any package.
- Which package do I need for e_i?
- None. e_i is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use e_i in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $e_i$ in running text.