<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" > 
<?xml-stylesheet type="text/css" href="fcla-xml-1.33.css"?> 
<html  
xmlns="http://www.w3.org/1999/xhtml"  
><head><title>Section MMA  Mathematica</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<!-- xhtml,mozilla,3,html --> 
<meta name="src" content="fcla-xml-1.33.tex" /> 
<meta name="date" content="2008-03-06 08:39:00" /> 
<link rel="stylesheet" type="text/css" href="fcla-xml-1.33.css" /> 
</head><body 
>
   <!--l. 26--><div class="crosslinks"><p class="noindent">[<a 
href="fcla-xml-1.33li65.xml" >next</a>] [<a 
href="#tailfcla-xml-1.33li64.xml">tail</a>] [<a 
href="fcla-xml-1.33li63.xml#fcla-xml-1.33li64.xml" >up</a>] </p></div>
   <h3 class="likesectionHead"><a 
 id="x65-322000"></a>Section MMA&#x00A0;&#x00A0;Mathematica</h3>
<!--l. 26--><p class="noindent" ><a 
 id="section.MMA"></a> From <a 
href="http://linear.ups.edu/" ><span 
class="cmti-12">A First Course in Linear Algebra</span></a>
<br class="newline" />Version 1.33
<br class="newline" /><span 
class="cmsy-10x-x-120">&#x00A9;</span>&#x00A0;2004.
<br class="newline" />Licensed under the <a 
href="http://www.gnu.org/licenses/fdl.html" >GNU Free Documentation License</a>.
<br class="newline" /><a 
href="http://linear.ups.edu/" class="url" ><span 
class="cmtt-12">http://linear.ups.edu/</span></a>
<br class="newline" />
<br class="newline" /><a 
 id="x65-322000doc"></a> <a 
 id="dx65-322001"></a>
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-323000"></a>Computation Note ME.MMA: Matrix Entry</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.ME.MMA"></a> <a 
 id="x65-323000doc"></a><a 
 id="dx65-323001"></a> <a 
 id="dx65-323002"></a><a 
 id="dx65-323003"></a> Matrices are input as lists of lists, since a list is a basic data structure in <span 
class="cmsl-12">Mathematica</span>.
A matrix is a list of rows, with each row entered as a list. <span 
class="cmsl-12">Mathematica </span>uses braces
((<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" > <mfenced separators="" 
open="{"  close="" ><mrow></mrow></mfenced></math>&#x00A0;,&#x00A0;<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" > <mfenced separators="" 
open=""  close="}" ><mrow></mrow></mfenced></math>))
to delimit lists. So the input </p><table class="equation-star"><tr><td>
<!--l. 11--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
                 <mi 
>a</mi> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo> <mn>2</mn><mo 
class="MathClass-punc">,</mo> <mn>3</mn><mo 
class="MathClass-punc">,</mo> <mn>4</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>5</mn><mo 
class="MathClass-punc">,</mo> <mn>6</mn><mo 
class="MathClass-punc">,</mo> <mn>7</mn><mo 
class="MathClass-punc">,</mo> <mn>8</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>9</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn><mn>1</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn><mn>2</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow>
</math></td></tr></table>
<!--l. 15--><p class="indent" >   would create a <!--l. 15--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>3</mn> <mo 
class="MathClass-bin">&#x00D7;</mo> <mn>4</mn></math>
matrix named  <span 
class="cmtt-12">a </span>that is equal to </p><table class="equation-star"><tr><td>
                                                                          

                                                                          
<!--l. 17--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
 <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>2</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>4</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>5</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>6</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>7</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>8</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>9</mn></mtd><mtd 
class="array"  columnalign="center"><mn>1</mn><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mn>1</mn><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mn>1</mn><mn>2</mn></mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                        </mrow></mfenced>
</math></td></tr></table>
<!--l. 27--><p class="indent" >   To display a matrix named  <span 
class="cmtt-12">a </span>&#x201C;nicely&#x201D; in <span 
class="cmsl-12">Mathematica</span>, type  <span 
class="cmtt-12">MatrixForm[a]</span>
, and the output will be displayed with rows and columns. If you just type  <span 
class="cmtt-12">a </span>,
then you will get a list of lists, like how you input the matrix in the first
place.
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-324000"></a>Computation Note RR.MMA: Row Reduce</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.RR.MMA"></a>  <a 
 id="x65-324000doc"></a><a 
 id="dx65-324001"></a>  <a 
 id="dx65-324002"></a><a 
 id="dx65-324003"></a> If  <span 
class="cmtt-12">a </span>is the name of a matrix in Mathematica, then the command
<span 
class="cmtt-12">RowReduce[a] </span>will output the reduced row-echelon form of the matrix.
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-325000"></a>Computation Note LS.MMA: Linear Solve</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.LS.MMA"></a> <a 
 id="x65-325000doc"></a><a 
 id="dx65-325001"></a> <a 
 id="dx65-325002"></a><a 
 id="dx65-325003"></a> <span 
class="cmsl-12">Mathematica </span>will solve a linear system of equations using the  <span 
class="cmtt-12">LinearSolve[]</span>
command. The inputs are a matrix with the coefficients of the variables (but not
the column of constants), and a list containing the constant terms of each
equation. This will look a bit odd, since the lists in the matrix are rows, but the
column of constants is also input as a list and so looks like a row rather than a
column. The result will be a single solution (even if there are infinitely many),
reported as a list, or the statement that there is no solution. When there are
infinitely many, the single solution reported is exactly that solution used in the
proof of <a 
href="fcla-xml-1.33li19.xml#theorem.RCLS">Theorem&#x00A0;RCLS</a>, where the free variables are all set to zero, and the
dependent variables come along with values from the final column of the
row-reduced matrix.
</p><!--l. 12--><p class="indent" >   As an example, <a 
href="fcla-xml-1.33li72.xml#archetype.A">Archetype&#x00A0;A</a> is
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                            <mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>2</mn><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
></mtd>                            <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mspace width="2em"/></mtd>                            <mtd 
columnalign="right" class="align-label"></mtd>                            <mtd 
class="align-label">
                            <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><mn>2</mn><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
></mtd>                             <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>8</mn><mspace width="2em"/></mtd>                            <mtd 
columnalign="right" class="align-label"></mtd>                            <mtd 
class="align-label">
                            <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
></mtd>                                   <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>5</mn><mspace width="2em"/></mtd>                            <mtd 
columnalign="right" class="align-label"></mtd>                            <mtd 
class="align-label">
   <mspace width="2em"/></mtd></mtr></mtable></math>
<!--l. 16--><p class="noindent" >To ask <span 
class="cmsl-12">Mathematica </span>for a solution, enter </p><table class="equation-star"><tr><td>
<!--l. 18--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
           <mi 
>L</mi><mi 
>i</mi><mi 
>n</mi><mi 
>e</mi><mi 
>a</mi><mi 
>r</mi><mi 
>S</mi><mi 
>o</mi><mi 
>l</mi><mi 
>v</mi><mi 
>e</mi><mrow ><mo 
class="MathClass-open">[</mo><mrow><mspace class="nbsp" /><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>2</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>1</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>0</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace class="nbsp" /><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>8</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>5</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mspace class="nbsp" /></mrow><mo 
class="MathClass-close">]</mo></mrow>
</math></td></tr></table>
<!--l. 23--><p class="indent" >   and you will get back the single solution </p><table class="equation-star"><tr><td>
<!--l. 25--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
                                 <mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>3</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>0</mn></mrow><mo 
class="MathClass-close">}</mo></mrow>
</math></td></tr></table>
<!--l. 29--><p class="indent" >   We will see later how to coax <span 
class="cmsl-12">Mathematica </span>into giving us infinitely many
solutions for this system (<a 
href="#computation.VFSS.MMA">Computation&#x00A0;VFSS.MMA</a>).
                                                                          

                                                                          
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-326000"></a>Computation Note VLC.MMA: Vector Linear Combinations</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.VLC.MMA"></a> <a 
 id="x65-326000doc"></a><a 
 id="dx65-326001"></a> <a 
 id="dx65-326002"></a><a 
 id="dx65-326003"></a> Contributed&#x00A0;by&#x00A0;<a 
href="fcla-xml-1.33li6.xml#BeezerRobert">Robert&#x00A0;Beezer</a>
<br class="newline" />Vectors in <span 
class="cmsl-12">Mathematica </span>are represented as lists, written and displayed
horizontally. For example, the vector </p><table class="equation-star"><tr><td>
<!--l. 13--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
<mi 
>v</mi> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>2</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>3</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>4</mn></mtd></mtr>   <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced>
</math></td></tr></table>
<!--l. 17--><p class="indent" >   would be entered and named via the command </p><table class="equation-star"><tr><td>
<!--l. 19--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
                              <mi 
>v</mi> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>3</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>4</mn></mrow><mo 
class="MathClass-close">}</mo></mrow>
</math></td></tr></table>
<!--l. 23--><p class="indent" >   Vector addition and scalar multiplication are then very natural. If  <span 
class="cmtt-12">u </span>and  <span 
class="cmtt-12">v</span>
are two lists of equal length, then </p><table class="equation-star"><tr><td>
                                                                          

                                                                          
<!--l. 25--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
                                <mn>2</mn><mi 
>u</mi> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>v</mi>
</math></td></tr></table>
<!--l. 29--><p class="indent" >   will compute the correct vector and return it as a list. If  <span 
class="cmtt-12">u </span>and  <span 
class="cmtt-12">v </span>have
different sizes, then <span 
class="cmsl-12">Mathematica </span>will complain about &#x201C;objects of unequal
length.&#x201D;
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-327000"></a>Computation Note NS.MMA: Null Space</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.NS.MMA"></a> <a 
 id="x65-327000doc"></a><a 
 id="dx65-327001"></a> <a 
 id="dx65-327002"></a><a 
 id="dx65-327003"></a> Given a matrix <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>,
Mathematica will compute a set of column vectors whose span is the null space of the
matrix with the  <span 
class="cmtt-12">NullSpace[] </span>command. Perhaps not coincidentally, this set is
exactly <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" > <mfenced separators="" 
open="{"  close="}" ><mrow><mfenced separators="" 
open=""  close="|" ><mrow><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mspace width="0em" class="thinspace"/></mrow></mfenced> <mspace width="0em" class="thinspace"/><mn>1</mn> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>j</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>n</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>r</mi></mrow></mfenced></math>.
However, Mathematica prefers to output the vectors in the opposite order than
one we have chosen. Here&#x2019;s a small example.
</p><!--l. 12--><p class="indent" >   Begin with the <!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>3</mn> <mo 
class="MathClass-bin">&#x00D7;</mo> <mn>4</mn></math>
matrix <!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>, and its
row-reduced version <!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>B</mi></math>,
</p><!--tex4ht:inline--><!--l. 30--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
    <mtr><mtd 
columnalign="right" class="align-odd"><mi 
>A</mi></mtd>    <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>5</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                     </mrow></mfenced> <mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-odd"></mtd>    <mtd 
class="align-even"><munderover> <mo 
class="MathClass-rel">&#x2192;</mo><mrow 
></mrow><mrow 
><!--mstyle 
class="text"--><mtext  >&#x00A0;RREF</mtext><!--/mstyle--></mrow></munderover><mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-odd"><mi 
>B</mi></mtd>    <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><!--mstyle 
class="fbox"--><mtext  >1</mtext><!--/mstyle--></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><!--mstyle 
class="fbox"--><mtext  >1</mtext><!--/mstyle--></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                        </mrow></mfenced> <mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-label"></mtd>    <mtd 
class="align-label"><mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-label"></mtd>    <mtd 
class="align-label"><mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-label"></mtd>    <mtd 
class="align-label">
   <mspace width="2em"/></mtd></mtr></mtable></math>
                                                                          

                                                                          
<!--l. 32--><p class="noindent" >We could extract entries from <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>B</mi></math>
to build the vectors <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></math>
and <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
></math> according to
<a 
href="fcla-xml-1.33li25.xml#theorem.SSNS">Theorem&#x00A0;SSNS</a> and describe <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
mathvariant="bold-script">N</mi><mspace width="0em" class="thinspace"/><mfenced separators="" 
open="("  close=")" ><mrow><mi 
>A</mi></mrow></mfenced></math>
as a span of the set <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" > <mfenced separators="" 
open="{"  close="}" ><mrow><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
></mrow></mfenced></math>.
Instead, if <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>a</mi></math> has
been set to <!--l. 32--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>,
then executing the command  <span 
class="cmtt-12">NullSpace[a] </span>yields the list of lists (column
vectors),
</p><!--tex4ht:inline--><!--l. 36--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                        <mtr><mtd 
columnalign="right" class="align-odd"><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>2</mn><mo 
class="MathClass-punc">,</mo><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo> <mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn><mo 
class="MathClass-punc">,</mo> <mn>2</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn><mo 
class="MathClass-punc">,</mo> <mn>0</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow></mtd>                        <mtd 
class="align-even"><mspace width="2em"/></mtd>                        <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 38--><p class="noindent" >Notice how our <!--l. 38--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></math>
is second in the list. To &#x201C;correct&#x201D; this we can use a list-processing command from
Mathematica,  <span 
class="cmtt-12">Reverse[] </span>, as follows,
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 42--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                        <mtr><mtd 
columnalign="right" class="align-odd"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;Reverse[NullSpace[a]]&#x00A0;</mtext><!--/mstyle--></mtd>                        <mtd 
class="align-even"><mspace width="2em"/></mtd>                        <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 44--><p class="noindent" >and recieve the output in our preferred order. Give it a try yourself.
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-328000"></a>Computation Note VFSS.MMA: Vector Form of Solution Set</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.VFSS.MMA"></a> <a 
 id="x65-328000doc"></a><a 
 id="dx65-328001"></a> <a 
 id="dx65-328002"></a><a 
 id="dx65-328003"></a> Suppose that <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>
is an <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>m</mi> <mo 
class="MathClass-bin">&#x00D7;</mo> <mi 
>n</mi></math>
matrix and <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>b</mi> <mo 
class="MathClass-rel">&#x2208;</mo> <msup><mrow 
><mi 
>&#x2102;</mi></mrow><mrow 
><mi 
>m</mi></mrow></msup 
></math>
is a column vector. We might wish to find all of the solutions to the linear system
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
mathvariant="bold-script">&#x2112;</mi><mi 
mathvariant="bold-script">S</mi><mspace width="0em" class="thinspace"/><mfenced separators="" 
open="("  close=")" ><mrow><mi 
>A</mi><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mi 
>b</mi></mrow></mfenced></math>.
Mathematica&#x2019;s  <span 
class="cmtt-12">LinearSolve[A,</span><span 
class="cmtt-12">&#x00A0;b] </span>will return at most one
solution (<a 
href="#computation.LS.MMA">Computation&#x00A0;LS.MMA</a>). However, when the system is
consistent, then this one solution reported is exactly the vector
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>c</mi></math>,
described in the statement of <a 
href="fcla-xml-1.33li24.xml#theorem.VFSLS">Theorem&#x00A0;VFSLS</a>.
</p><!--l. 12--><p class="indent" >   The vectors <!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>u</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math>,
<!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>j</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>n</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>r</mi></math> of
<a 
href="fcla-xml-1.33li24.xml#theorem.VFSLS">Theorem&#x00A0;VFSLS</a> are exactly the output of Mathematica&#x2019;s  <span 
class="cmtt-12">NullSpace[]</span>
command, though Mathematica lists them in the opposite order
from the order we have chosen. These are the same vectors listed as
<!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>z</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math>,
<!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>j</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>n</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>r</mi></math> in <a 
href="fcla-xml-1.33li25.xml#theorem.SSNS">Theorem&#x00A0;SSNS</a>.
With <!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>c</mi></math>
produced from the  <span 
class="cmtt-12">LinearSolve[]  </span>command, and the
<!--l. 12--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>u</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math>
coming from the  <span 
class="cmtt-12">NullSpace[] </span>command we can use Mathematica&#x2019;s symbolic
manipulation commands to create an expression that describes all of the
solutions.
</p><!--l. 14--><p class="indent" >   Begin with the system <!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
mathvariant="bold-script">&#x2112;</mi><mi 
mathvariant="bold-script">S</mi><mspace width="0em" class="thinspace"/><mfenced separators="" 
open="("  close=")" ><mrow><mi 
>A</mi><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mi 
>b</mi></mrow></mfenced></math>.
Row-reduce <!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>
(<a 
href="#computation.RR.MMA">Computation&#x00A0;RR.MMA</a>) and identify the free variables by determining the non-pivot
                                                                          

                                                                          
columns. Suppose, for the sake of argument, that we have the three free variables
<!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
></math>,
<!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>7</mn></mrow></msub 
></math> and
<!--l. 14--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
></math>.
Then the following command will build an expression for an arbitrary
solution:
</p><!--tex4ht:inline--><!--l. 18--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
            <mtr><mtd 
columnalign="right" class="align-odd"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;LinearSolve[A,b]+{x8,x7,x3}.NullSpace[A]&#x00A0;</mtext><!--/mstyle--></mtd>            <mtd 
class="align-even"><mspace width="2em"/></mtd>            <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 21--><p class="noindent" >Be sure to include the &#x201C;dot&#x201D; right before the  <span 
class="cmtt-12">NullSpace[] </span>command &#x2014; it has
the effect of creating a linear combination of the vectors in the null space, using
scalars that are symbols reminiscent of the variables.
</p><!--l. 23--><p class="indent" >   A concrete example should help here. Suppose we want
a solution set for the linear system with coefficient matrix
<!--l. 23--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math> and vector
of constants <!--l. 23--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>b</mi></math>,
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 35--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
          <mtr><mtd 
columnalign="right" class="align-odd"><mi 
>A</mi></mtd>          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"><mn>3</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>5</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>2</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>8</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>8</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>3</mn></mtd><mtd 
class="array"  columnalign="center"><mn>6</mn></mtd><mtd 
class="array"  columnalign="center"><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>5</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>7</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                              </mrow></mfenced> <mspace width="2em"/></mtd>          <mtd 
columnalign="right" class="align-odd"><mi 
>b</mi></mtd>          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"> <mn>8</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>5</mn></mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> <mspace width="2em"/></mtd>          <mtd 
columnalign="right" class="align-label"></mtd>          <mtd 
class="align-label"><mspace width="2em"/></mtd>          <mtd 
columnalign="right" class="align-label"></mtd>          <mtd 
class="align-label">
   <mspace width="2em"/></mtd></mtr></mtable></math>
<!--l. 37--><p class="noindent" >If we were to apply <a 
href="fcla-xml-1.33li24.xml#theorem.VFSLS">Theorem&#x00A0;VFSLS</a>, we would extract the components of
<!--l. 37--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>c</mi></math> and
<!--l. 37--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>u</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math> from
the row-reduced version of the augmented matrix of the system (obtained with
Mathematica, <a 
href="#computation.RR.MMA">Computation&#x00A0;RR.MMA</a>), </p><table class="equation-star"><tr><td>
<!--l. 39--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
 <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><!--mstyle 
class="fbox"--><mtext  >1</mtext><!--/mstyle--></mtd><mtd 
class="array"  columnalign="center"><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>4</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>5</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>2</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><!--mstyle 
class="fbox"--><mtext  >1</mtext><!--/mstyle--></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><!--mstyle 
class="fbox"--><mtext  >1</mtext><!--/mstyle--></mtd><mtd 
class="array"  columnalign="center"> <mn>2</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn></mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                             </mrow></mfenced>
</math></td></tr></table>
<!--l. 47--><p class="indent" >   Instead, we will use this augmented matrix in reduced row-echelon form only to
identify the free variables. In this example, we locate the non-pivot columns and see
that <!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
></math>,
<!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
></math>,
<!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>5</mn></mrow></msub 
></math> and
<!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>7</mn></mrow></msub 
></math> are free. If we have
set <!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>a</mi></math> to the coefficient
matrix and <!--l. 47--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>b</mi></math>
to the vector of constants, then we execute the Mathematica command,
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 51--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
         <mtr><mtd 
columnalign="right" class="align-odd"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;LinearSolve[a,&#x00A0;b]+{x7,&#x00A0;x5,&#x00A0;x4,&#x00A0;x2}.NullSpace[a]&#x00A0;</mtext><!--/mstyle--></mtd>         <mtd 
class="align-even"><mspace width="2em"/></mtd>         <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 53--><p class="noindent" >As output we obtain the column vector (list),
</p><!--tex4ht:inline--><!--l. 65--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                    <mtr><mtd 
columnalign="right" class="align-odd"> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mn>2</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>2</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x2&#x00A0;</mtext><!--/mstyle--><mo 
class="MathClass-bin">&#x2212;</mo> <mn>4</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x4&#x00A0;</mtext><!--/mstyle--> <mo 
class="MathClass-bin">+</mo> <mn>2</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x5&#x00A0;</mtext><!--/mstyle--> <mo 
class="MathClass-bin">+</mo> <mn>5</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x7&#x00A0;</mtext><!--/mstyle--></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">            <!--mstyle 
class="text"--><mtext  >&#x00A0;x2&#x00A0;</mtext><!--/mstyle-->             </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">   <mn>1</mn> <mo 
class="MathClass-bin">+</mo> <mn>3</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x4&#x00A0;</mtext><!--/mstyle--><mo 
class="MathClass-bin">&#x2212;</mo><!--mstyle 
class="text"--><mtext  >&#x00A0;x5&#x00A0;</mtext><!--/mstyle--><mo 
class="MathClass-bin">&#x2212;</mo> <mn>3</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x7&#x00A0;</mtext><!--/mstyle-->    </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">            <!--mstyle 
class="text"--><mtext  >&#x00A0;x4&#x00A0;</mtext><!--/mstyle-->             </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">            <!--mstyle 
class="text"--><mtext  >&#x00A0;x5&#x00A0;</mtext><!--/mstyle-->             </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">         <mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>2</mn><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;x7&#x00A0;</mtext><!--/mstyle-->          </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">            <!--mstyle 
class="text"--><mtext  >&#x00A0;x7&#x00A0;</mtext><!--/mstyle-->             </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                 </mrow></mfenced></mtd>                    <mtd 
class="align-even"><mspace width="2em"/></mtd>                    <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
                                                                          

                                                                          
<!--l. 26--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-329000"></a>Computation Note GSP.MMA: Gram-Schmidt Procedure</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.GSP.MMA"></a>  <a 
 id="x65-329000doc"></a><a 
 id="dx65-329001"></a>  <a 
 id="dx65-329002"></a><a 
 id="dx65-329003"></a> Mathematica has a built-in routine that will do the Gram-Schmidt
procedure (<a 
href="fcla-xml-1.33li28.xml#theorem.GSP">Theorem&#x00A0;GSP</a>). The input is a set of vectors, which must
be linearly independent. This is written as a list, containing lists that
are the vectors. Let  <span 
class="cmtt-12">a </span>be such a list of lists, containing the vectors
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>v</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></math>,
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>i</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>p</mi></math> from the
statement of the theorem. You will need to first load the right Mathematica package
&#x2014; execute  <span 
class="cmtt-12">&#x003C;&#x003C;LinearAlgebra&#x2018;Orthogonalization&#x2018; </span>to make this happen. Then
execute  <span 
class="cmtt-12">GramSchmidt[a] </span>. The output will be another list of lists containing the
vectors <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>u</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></math>,
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>i</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>p</mi></math> from
the statement of the theorem. Mathematica will complain if you do not provide a
linearly independent set as input (try it!).
</p><!--l. 12--><p class="indent" >   An example. Suppose our linearly independent set (check this!) is
</p><!--tex4ht:inline--><!--l. 22--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
              <mtr><mtd 
columnalign="right" class="align-odd"><mi 
>S</mi> <mo 
class="MathClass-rel">=</mo> <mfenced separators="" 
open="{"  close="}" ><mrow> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>4</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>3</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn></mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>2</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>3</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>4</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"> <mn>1</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>6</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>4</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>6</mn> </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                              </mrow></mfenced> </mrow></mfenced></mtd>              <mtd 
class="align-even"><mspace width="2em"/></mtd>              <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 24--><p class="noindent" >The output of the  <span 
class="cmtt-12">GramSchmidt[] </span>command will be the set,
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 39--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
    <mtr><mtd 
columnalign="right" class="align-odd"><mi 
>T</mi> <mo 
class="MathClass-rel">=</mo> <mfenced separators="" 
open="{"  close="}" ><mrow> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>3</mn><msqrt><mrow><mn>3</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">  <mfrac><mrow 
><mn>4</mn></mrow> 
<mrow 
><mn>3</mn><msqrt><mrow><mn>3</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">  <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>3</mn><msqrt><mrow><mn>3</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">  <mn>0</mn>   </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">  <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><msqrt><mrow><mn>3</mn></mrow></msqrt></mrow></mfrac>   </mtd>
</mtr>    <!--*\c@MaxMatrixCols c--></mtable>                                                                                                                                  </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center">  <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>1</mn><mn>2</mn><msqrt><mrow><mn>1</mn><mn>5</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">   <mfrac><mrow 
><mn>2</mn><mn>3</mn></mrow> 
<mrow 
><mn>1</mn><mn>2</mn><msqrt><mrow><mn>1</mn><mn>5</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>1</mn><mn>2</mn><msqrt><mrow><mn>1</mn><mn>5</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mfrac><mrow 
><mn>3</mn><msqrt><mrow><mfrac><mrow 
><mn>3</mn></mrow>
<mrow 
><mn>5</mn></mrow></mfrac></mrow></msqrt></mrow> 
   <mrow 
><mn>4</mn></mrow></mfrac>      </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><msqrt><mrow><mfrac><mrow 
><mn>5</mn></mrow>
<mrow 
><mn>3</mn></mrow></mfrac></mrow></msqrt></mrow>
  <mrow 
><mn>2</mn></mrow></mfrac>    </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                                                           </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"> <mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>3</mn><mn>7</mn></mrow>
<mrow 
><mn>4</mn><msqrt><mrow><mn>6</mn><mn>8</mn><mn>5</mn></mrow></msqrt></mrow></mfrac> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">    <mfrac><mrow 
><mn>2</mn><mn>9</mn></mrow> 
<mrow 
><mn>4</mn><msqrt><mrow><mn>6</mn><mn>8</mn><mn>5</mn></mrow></msqrt></mrow></mfrac>   </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>3</mn></mrow>
<mrow 
><mn>4</mn><msqrt><mrow><mn>6</mn><mn>8</mn><mn>5</mn></mrow></msqrt></mrow></mfrac> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>7</mn><mn>9</mn></mrow>
<mrow 
><mn>4</mn><msqrt><mrow><mn>6</mn><mn>8</mn><mn>5</mn></mrow></msqrt></mrow></mfrac> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mn>5</mn><msqrt><mrow> <mfrac> <mrow 
> <mn>5</mn></mrow>
<mrow 
><mn>1</mn><mn>3</mn><mn>7</mn></mrow></mfrac></mrow></msqrt></mrow>
     <mrow 
><mn>2</mn></mrow></mfrac>     </mtd></mtr> <!--*\c@MaxMatrixCols c--></mtable>                                                                                                                          </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>3</mn><mn>3</mn><mn>7</mn></mrow>
<mrow 
><mn>2</mn><msqrt><mrow><mn>1</mn><mn>2</mn><mn>0</mn><mn>4</mn><mn>2</mn><mn>3</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo>  <mfrac><mrow 
><mn>3</mn><mn>7</mn></mrow>
<mrow 
><mn>6</mn><msqrt><mrow><mn>1</mn><mn>2</mn><mn>0</mn><mn>4</mn><mn>2</mn><mn>3</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>1</mn><mn>7</mn><mn>6</mn><mn>3</mn></mrow>
<mrow 
><mn>6</mn><msqrt><mrow><mn>1</mn><mn>2</mn><mn>0</mn><mn>4</mn><mn>2</mn><mn>3</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">     <mfrac><mrow 
><mn>3</mn><mn>3</mn><mn>7</mn></mrow> 
<mrow 
><mn>6</mn><msqrt><mrow><mn>1</mn><mn>2</mn><mn>0</mn><mn>4</mn><mn>2</mn><mn>3</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">     <mfrac><mrow 
><mn>5</mn><mn>0</mn></mrow> 
<mrow 
><msqrt><mrow><mn>1</mn><mn>2</mn><mn>0</mn><mn>4</mn><mn>2</mn><mn>3</mn></mrow></msqrt></mrow></mfrac>   </mtd>
</mtr>    <!--*\c@MaxMatrixCols c--></mtable>                                                                                                                                  </mrow></mfenced> <mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/> <mfenced separators="" 
open="["  close="]" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center">  <mfrac><mrow 
><mn>2</mn><mn>3</mn></mrow> 
<mrow 
><msqrt><mrow><mn>8</mn><mn>7</mn><mn>9</mn></mrow></msqrt></mrow></mfrac>   </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">   <mfrac><mrow 
><mn>2</mn><mn>6</mn></mrow> 
<mrow 
><mn>3</mn><msqrt><mrow><mn>8</mn><mn>7</mn><mn>9</mn></mrow></msqrt></mrow></mfrac>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>4</mn><mn>4</mn></mrow>
<mrow 
><mn>3</mn><msqrt><mrow><mn>8</mn><mn>7</mn><mn>9</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo> <mfrac><mrow 
><mn>2</mn><mn>3</mn></mrow>
<mrow 
><mn>3</mn><msqrt><mrow><mn>8</mn><mn>7</mn><mn>9</mn></mrow></msqrt></mrow></mfrac></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">    <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><msqrt><mrow><mn>8</mn><mn>7</mn><mn>9</mn></mrow></msqrt></mrow></mfrac>   </mtd>
</mtr>    <!--*\c@MaxMatrixCols c--></mtable>                                                                                                                                  </mrow></mfenced> </mrow></mfenced></mtd>    <mtd 
class="align-even"><mspace width="2em"/></mtd>    <mtd 
columnalign="right" class="align-label">
   </mtd></mtr></mtable></math>
<!--l. 41--><p class="noindent" >Ugly, but true. At this stage, you might just as well be encouraged to think of the
Gram-Schmidt procedure as a computational black box, linearly independent set
in, orthogonal span-preserving set out.
</p><!--l. 43--><p class="indent" >   To check that the output set is orthogonal, we can easily check the
orthogonality of individual pairs of vectors. Suppose the output was set equal to
<span 
class="cmtt-12">b </span>(say via  <span 
class="cmtt-12">b=GramSchmidt[a] </span>). We can extract the individual vectors of  <span 
class="cmtt-12">c </span>as
&#x201C;parts&#x201D; with syntax like  <span 
class="cmtt-12">c[[3]] </span>, which would return the third vector in the set.
When our vectors have only real number entries, we can accomplish an
innerproduct with a &#x201C;dot.&#x201D; So, for example, you should discover that
<span 
class="cmtt-12">c[[3]].c[[5]] </span>will return zero. Try it yourself with another pair of
vectors.
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-330000"></a>Computation Note TM.MMA: Transpose of a Matrix</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.TM.MMA"></a> <a 
 id="x65-330000doc"></a><a 
 id="dx65-330001"></a> <a 
 id="dx65-330002"></a><a 
 id="dx65-330003"></a> Contributed&#x00A0;by&#x00A0;<a 
href="fcla-xml-1.33li6.xml#BeezerRobert">Robert&#x00A0;Beezer</a>
<br class="newline" />Suppose  <span 
class="cmtt-12">a </span>is the name of a matrix stored in <span 
class="cmsl-12">Mathematica</span>. Then  <span 
class="cmtt-12">Transpose[a]</span>
will create the transpose of  <span 
class="cmtt-12">a </span>.
                                                                          

                                                                          
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-331000"></a>Computation Note MM.MMA: Matrix Multiplication</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.MM.MMA"></a> <a 
 id="x65-331000doc"></a><a 
 id="dx65-331001"></a> <a 
 id="dx65-331002"></a><a 
 id="dx65-331003"></a> If <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>
and <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>B</mi></math>
are matrices defined in <span 
class="cmsl-12">Mathematica</span>, then  <span 
class="cmtt-12">A.B </span>will return the
product of the two matrices (notice the dot between the matrices). If
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math> is a matrix
and <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>v</mi></math>
is a vector, then  <span 
class="cmtt-12">A.v </span>will return the vector that is the matrix-vector product of
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math> and
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>v</mi></math>. In
every case the sizes of the matrices and vectors need to be correct.
</p><!--l. 12--><p class="indent" >   Some examples:
<!--tex4ht:inline--></p><!--l. 16--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" >
<mtable 
class="gather-star">
<mtr> 
<mtd><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>3</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>4</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">.</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>5</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>6</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>7</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>8</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>9</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>1</mn><mn>0</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>2</mn><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn><mn>4</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn><mn>7</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>4</mn><mn>7</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>5</mn><mn>4</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>6</mn><mn>1</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow></mtd> 
<mtd></mtd>
</mtr><mtr> 
<mtd><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>3</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>4</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">.</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>5</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>6</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mn>7</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>3</mn><mn>9</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow></mtd>                        
<mtd></mtd>
</mtr><mtr> 
<mtd><mrow ><mo 
class="MathClass-open">{</mo><mrow><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>2</mn></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>3</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>4</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow><mo 
class="MathClass-close">}</mo></mrow><mo 
class="MathClass-punc">.</mo><mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>5</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>6</mn></mrow><mo 
class="MathClass-close">}</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">{</mo><mrow><mn>1</mn><mn>7</mn><mo 
class="MathClass-punc">,</mo><mspace width="0em" class="thinspace"/><mn>3</mn><mn>9</mn></mrow><mo 
class="MathClass-close">}</mo></mrow></mtd>                                 
<mtd></mtd>           </mtr></mtable>
</math>
<!--l. 21--><p class="nopar" >
Understanding the difference between the last two examples will go a long way to
explaining how some <span 
class="cmsl-12">Mathematica </span>constructs work.
                                                                          

                                                                          
</p>
   <h4 class="likesubsectionHead"><a 
 id="x65-332000"></a>Computation Note MI.MMA: Matrix Inverse</h4>
<!--l. 26--><p class="noindent" ><a 
 id="computation.MI.MMA"></a> <a 
 id="x65-332000doc"></a><a 
 id="dx65-332001"></a> <a 
 id="dx65-332002"></a><a 
 id="dx65-332003"></a> If <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>
is a matrix defined in <span 
class="cmsl-12">Mathematica</span>, then  <span 
class="cmtt-12">Inverse[A] </span>will return the inverse of
<!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>, should it exist.
In the case where <!--l. 10--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>A</mi></math>
does not have an inverse <span 
class="cmsl-12">Mathematica </span>will tell you the matrix is singular (see
<a 
href="fcla-xml-1.33li33.xml#theorem.NI">Theorem&#x00A0;NI</a>).
                                                                          

                                                                          
</p>
   <!--l. 37--><div class="crosslinks"><p class="noindent">[<a 
href="fcla-xml-1.33li65.xml" >next</a>] [<a 
href="fcla-xml-1.33li64.xml" >front</a>] [<a 
href="fcla-xml-1.33li63.xml#fcla-xml-1.33li64.xml" >up</a>] </p></div>
<!--l. 37--><p class="indent" >   <a 
 id="tailfcla-xml-1.33li64.xml"></a>  </p> 
</body> 
</html> 
