Chapter 1:  Systems of Linear Equations

MA 237

Richard Hitt

Introduction

Mathematica has several built-in commands to help with linear algebra.  First we need to know how to input a matrix.  This is done by describing the matrix as a list of lists.

[Graphics:Images/chapter1_gr_1.gif]
[Graphics:Images/chapter1_gr_2.gif]

You can view the matrix in a rectangular array as follows.

[Graphics:Images/chapter1_gr_3.gif]
[Graphics:Images/chapter1_gr_4.gif]

Row vectors and column vectors can be entered as appropriate matrices.

[Graphics:Images/chapter1_gr_5.gif]
[Graphics:Images/chapter1_gr_6.gif]
[Graphics:Images/chapter1_gr_7.gif]
[Graphics:Images/chapter1_gr_8.gif]
[Graphics:Images/chapter1_gr_9.gif]
[Graphics:Images/chapter1_gr_10.gif]
[Graphics:Images/chapter1_gr_11.gif]
[Graphics:Images/chapter1_gr_12.gif]

Another way to describe a column vector is as the transpose of a row vector.  This might be easier to input.

[Graphics:Images/chapter1_gr_13.gif]
[Graphics:Images/chapter1_gr_14.gif]
[Graphics:Images/chapter1_gr_15.gif]
[Graphics:Images/chapter1_gr_16.gif]

Mathematica understands that v2 and v3 are the same.

[Graphics:Images/chapter1_gr_17.gif]
[Graphics:Images/chapter1_gr_18.gif]

Mathematica understands multiplication of a matrix by a vector using the following syntax.

[Graphics:Images/chapter1_gr_19.gif]
[Graphics:Images/chapter1_gr_20.gif]
[Graphics:Images/chapter1_gr_21.gif]

Scalar multiplication can also be easily accomplished using the * or a blank space.  But be careful using the space because you can't always easily tell that its there.  So 3 c and 3c are interpreted differently in Mathematica -- the latter being the name of a new variable.

[Graphics:Images/chapter1_gr_22.gif]
[Graphics:Images/chapter1_gr_23.gif]

Test 1

For a few examples, here are some of the Test 1 problems worked out in Mathematica.

Problem 1

[Graphics:Images/chapter1_gr_24.gif]
[Graphics:Images/chapter1_gr_25.gif]
[Graphics:Images/chapter1_gr_26.gif]
[Graphics:Images/chapter1_gr_27.gif]
[Graphics:Images/chapter1_gr_28.gif]
[Graphics:Images/chapter1_gr_29.gif]

Problem 2

[Graphics:Images/chapter1_gr_30.gif]
[Graphics:Images/chapter1_gr_31.gif]
[Graphics:Images/chapter1_gr_32.gif]
[Graphics:Images/chapter1_gr_33.gif]
[Graphics:Images/chapter1_gr_34.gif]
[Graphics:Images/chapter1_gr_35.gif]
[Graphics:Images/chapter1_gr_36.gif]
[Graphics:Images/chapter1_gr_37.gif]
[Graphics:Images/chapter1_gr_38.gif]
[Graphics:Images/chapter1_gr_39.gif]
[Graphics:Images/chapter1_gr_40.gif]
[Graphics:Images/chapter1_gr_41.gif]

Problem 4

[Graphics:Images/chapter1_gr_42.gif]
[Graphics:Images/chapter1_gr_43.gif]
[Graphics:Images/chapter1_gr_44.gif]
[Graphics:Images/chapter1_gr_45.gif]
[Graphics:Images/chapter1_gr_46.gif]
[Graphics:Images/chapter1_gr_47.gif]


Converted by Mathematica      October 19, 2001