Professional Documents
Culture Documents
Solving Equations Excel
Solving Equations Excel
m1
m2
M = . .
.
.
mn
1
It is customary to use bold letters to identify matrices.
SM = C
In Excel create an array of n rows and n columns containing the s values. Create another
array of n rows and one column containing the c values. Now we need to create an array to hold the
inverse of S. Select a block of empty cells containing n rows and n columns. 4 Type the following:
=minverse( , ending at the open parenthesis. 5 Then select the cells containing the s values. Then
type the close parenthesis ). Then hold down the Shift and Ctrl keys while you hit Enter. The
inverse of S will be entered in the block of cells you selected. This is called an Array Formula.
Now we must multiply the array containing the inverse by the C array. Select an empty
block of cells with n rows and one column. Type the following: =mmult(, ending at the open
2
Recall how matrix multiplication works. A matrix with p rows and q columns can be multiplied by any matrix with q rows and any
number, let=s say w, columns. The resulting matrix will have p rows and w columns. When multiplying a row and column, an
element in a given row is multiplied by the corresponding element in the given column and the sum of the products of the elements of
a given row and column make up the corresponding element of the given row and column of the matrix that represents their product.
3
Recall that the inverse of a matrix X is another matrix, X-1, such that X-1X = I where I is the identity matrix, a matrix with the same
number of rows and columns of X and containing ones in the diagonal and zero=s in the off-diagonal elements. An inverse can exist
only for a square matrix and not every square matrix has an inverse.
4
In each case in which you are instructed to select some empty cells, you can either hold down the shift key and use the cursor or use
the left mouse button. Release the shift key and cursor or mouse button before typing.
5
Here I shall use italics to indicate typed values.
0.555556
M = .
- 41.536864
Thus, if we hold 0.555556 shares of the stock and borrow 41.536864 at 7%, we shall obtain the same