Skip to main content
Engineering LibreTexts

14.1: Matrix Definition

  • Page ID
    14999
  • \( \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}}\)

    We begin with showing how to input a matrix into a Mathcad worksheet.

    Entering matrices and basic operations

    First, open the matrix toolbar with File > Toolbars > Matrix:

    clipboard_eff1ace7704db11354449ba9d03f4c7aa.png

    and select the clipboard_efbf4d896832740e0e68cea3b6aab8c1b.png button in the upper left corner to launch the “Insert Matrix” dialog box:

    clipboard_ead7180b44abd7358e969b78f794d508f.png

    Input the desired number of rows and columns and click on “Insert”. This creates a template of the correct size that you can use for your matrix. Note that as you enter numbers in the black boxes, you can move to the next black box with the Tab key, or between the entries with the arrow keys. Let’s try an example.

    Find the sum and the product of the matrices

    \begin{bmatrix} 1 & 2 & 4\\ 0 & -1 & 7\\ 1 & 1 & 1 \nonumber\end{bmatrix} and \begin{bmatrix} 2 & 0 & 0\\ 3 & -3 & 1\\ 7 & 8 & 9 \nonumber\end{bmatrix}

    We input the matrices and store them as variables a and b. Here we see them partially filled in:

    clipboard_e803b6676585359cc3a79e3fe986d2674.png

    The sum and product of the resulting matrices are done using the standard plus + and times ∗ (which appears as a dot):

    clipboard_e4983c2ebbdce85778fd776abc4c2a34e.png


    This page titled 14.1: Matrix Definition is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Troy Siemers (APEX Calculus) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.