Skip to main content
Engineering LibreTexts

7.2: Matrix and Index Notation

  • Page ID
    44557
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    A vector can be described by listing its components along the \(xyz\) cartesian axes; for instance the displacement vector \(u\) can be denoted as \(u_x, u_y, u_z\), using letter subscripts to indicate the individual components. The subscripts can employ numerical indices as well, with 1, 2, and 3 indicating the \(x\), \(y\), and \(z\) directions; the displacement vector can therefore be written equivalently as \(u_1, u_2, u_3\).

    A common and useful shorthand is simply to write the displacement vector as \(u_i\), where the \(i\) subscript is an index that is assumed to range over 1,2,3 ( or simply 1 and 2 if the problem is a two-dimensional one). This is called the range convention for index notation. Using the range convention, the vector equation \(u_i = a\) implies three separate scalar equations:

    \[\begin{array} {c} {u_1 = a} \\ {u_2 = a} \\ {u_3 = a}\end{array} \nonumber\]

    We will often find it convenient to denote a vector by listing its components in a vertical list enclosed in braces, and this form will help us keep track of matrix-vector multiplications a bit more easily. We therefore have the following equivalent forms of vector notation:

    \[u = u_i = \left \{ \begin{matrix} u_1 \\ u_2 \\ u_3 \end{matrix} \right \} = \left \{ \begin{matrix} u_x \\ u_y \\ u_z \end{matrix} \right \} \nonumber\]

    Second-rank quantities such as stress, strain, moment of inertia, and curvature can be denoted as \(3\times 3\) matrix arrays; for instance the stress can be written using numerical indices as

    \[[\sigma] = \begin{bmatrix} \sigma_{11} & \sigma_{12} & \sigma_{13} \\ \sigma_{21} & \sigma_{22} & \sigma_{23} \\ \sigma_{31} & \sigma_{32} & \sigma_{33} \end{bmatrix}\nonumber\]

    Here the first subscript index denotes the row and the second the column. The indices also have a physical meaning, for instance \(\sigma_{23}\) indicates the stress on the 2 face (the plane whose normal is in the 2, or \(y\), direction) and acting in the 3, or \(z\), direction. To help distinguish them, we'll use brackets for second-rank tensors and braces for vectors.

    Using the range convention for index notation, the stress can also be written as \(\sigma_{ij}\), where both the \(i\) and the \(j\) range from 1 to 3; this gives the nine components listed explicitly above. (Since the stress matrix is symmetric, i.e. \(\sigma_{ij} = \sigma_{ji}\), only six of these nine components are independent.)

    A subscript that is repeated in a given term is understood to imply summation over the range of the repeated subscript; this is the summation convention for index notation. For instance, to indicate the sum of the diagonal elements of the stress matrix we can write:

    \[\sigma_{kk} = \sum_{k = 1}^{3} \sigma_{kk} = \sigma_{11} + \sigma_{22} + \sigma_{33}\nonumber\]

    The multiplication rule for matrices can be stated formally by taking \(A =(a_{ij})\) to be an \((M \times N)\) matrix and \(B = (b_{ij})\) to be an \((R \times P)\) matrix. The matrix product \(AB\) is defined only when \(R = N\), and is the (\(M \times P\)) matrix \(C = (c_{ij})\) given by

    \[c_{ij} = \sum_{k = 1}^{N} a_{ik} b_{kj} = a_{i1}b_{1j} + a_{i2}b_{2j} + \cdots + a_{iN} b_{Nk}\nonumber\]

    Using the summation convention, this can be written simply

    \[c_{ij} = a_{ik} b_{kj}\nonumber\]

    where the summation is understood to be over the repeated index \(k\). In the case of a \(3 \times 3\) matrix multiplying a \(3 \times 1\) column vector we have

    \[\begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix} \left \{ \begin{matrix} b_1 \\ b_2 \\ b_3 \end{matrix} \right \} = \left \{ \begin{matrix} a_{11}b_1 + a_{12}b_2 + a_{13} b_3 \\ a_{21}b_1 + a_{22}b_2 + a_{23} b_3 \\ a_{31}b_1 + a_{32}b_2 + a_{33} b_3 \end{matrix} \right \} = a_{ij} b_{j}\nonumber\]

    The comma convention uses a subscript comma to imply differentiation with respect to the uses all of the variable following, so \(f_{,2} = \partial f/\partial y\) and \(u_{i,j} = \partial u_i/\partial x_j\). For instance, the expression \(\sigma_{ij, j} = 0\) three previously defined index conventions: range on \(i\), sum on \(j\), and differentiate:

    \[\begin{array} {c} {\dfrac{\partial \sigma_{xx}}{\partial x} + \dfrac{\partial \sigma_{xy}}{\partial y} + \dfrac{\partial \sigma_{xz}}{\partial z} = 0} \\ {\dfrac{\partial \sigma_{yx}}{\partial x} + \dfrac{\partial \sigma_{yy}}{\partial y} + \dfrac{\partial \sigma_{yz}}{\partial z} = 0} \\ {\dfrac{\partial \sigma_{zx}}{\partial x} + \dfrac{\partial \sigma_{zy}}{\partial y} + \dfrac{\partial \sigma_{zz}}{\partial z} = 0} \end{array} \nonumber\]

    The Kroenecker delta is a useful entity is defined as

    \[\delta_{ij} = \begin{cases} 0, \ \ i \ne j \\ 1, \ \ i = j \end{cases} \nonumber\]

    This is the index form of the unit matrix \(I\):

    \[\delta_{ij} = I = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\nonumber\]

    So, for instance

    \[\sigma_{kk}\delta_{ij} = \begin{bmatrix} \sigma_{kk} & 0 & 0 \\ 0 & \sigma_{kk} & 0 \\ 0 & 0 & \sigma_{kk} \end{bmatrix}\nonumber\]

    where \(\sigma_{kk} = \sigma_{11} + \sigma_{22} + \sigma_{33}\).


    This page titled 7.2: Matrix and Index Notation is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Roylance (MIT OpenCourseWare) via source content that was edited to the style and standards of the LibreTexts platform.