Matrices -
introduction, presentation, transformations, determinats, reverse matrix, eigenvalues, solving systems of equations, etc. Using the File/Palettes/Basic Calculations/ List and Matrices menu
Example 1. Matrices in Mathematica are established in two ways - by standard multidimensional lists or through mathematical symbolics through a choice of palettes. Below is a list of the table a=3 x 5:
The next matrix b is established by choosing the symbol from the palette of main symbols. Lines are added by placing the cursor on top of a given cell and pressing t CTRL and ENTER keys simultaniously. A column is added by simultaniously pressing CTRL and , (comma).
Example 2. Operations on matrices are carried out according to the rules of the linar lagebra - addition, multiplication etc. Here is a sum and multiplication of a matrix with a number.
Example 3. Product of matrices is done with the symbol . (dot):
Example 4. Calculating (p+q). (p-q). To compare results we have also calculated the intermediate results.
Example 5. Determinants, transposition, increasing power, etc. Note that the operation performs the obtantation of a matrix each element raised in third power, while the operation a.a.a gives the triple product of the matrix a.
Example 6. Matrix inversion and verifaction of the result through multiplication of a on the left and on the right by the resulting inverse matrix to obtain the identity matrix.
r=Inverse[a]
MatrixForm[%]
a.r
r.a
Example 7. Finding the rank of matrix with the method of elimination is done with the function RowReduce.
Example 8. Calculation of eigenvalues and eigenvectors of square matrix can succeed, if it is possible to analythically solve of the characteristical equation. In the other cases a numerical method is used (see the corresponding interactive lessons).
b=.
b={{3,1},{4,0}}
Eigenvalues[b]
Eigenvectors[b]
c={{1,0,-3},{4,0,-2},{2,-2,3}}
Eigenvalues[c]
Eigenvectors[c]
Example 9. Solving systems of linear equations with a n onsingular matrix Ax=b. This is possible in two ways - by directly finding of the inverse matrix, x=, or by using the function LinearSolve[ ] .
Created by Mathematica (December 21, 2007)