Mathematics of Modern Engineering I Lecture 4
Mathematics of Modern Engineering I Lecture 4
Lecture 4
Here we consider only the case when a matrix A has the size n × n, also
called a square matrix.
When a square matrix of size n×n has the rank n, it means that Row(A)
and Col(A) are spanned by n linearly independent vectors being the rows
and columns of the matrix, respectively. In other words, such a matrix A
can be reduced by the Gauss elimination algorithm to a diagonal matrix
with diagonal entries being not equal to zero.
In this case one says that A is invertible and the common notation for
the inverse matrix is A−1 .
1
1) Apply the row-reduction algorithm to the augmented matrix [A|In ];
2) If the matrix A can be reduced to the matrix In (in the first step),
then A is invertible;
3) The inverse matrix for A is then found on the right side of the final
reduced augmented matrix having the form [In |A−1 ]:
2
◦ Another way to calculate the inverse of a given matrix A is provided
through the concept of the determinant of A denoted by det(A).
where A1j is obtained from the matrix A by deleting row 1 and column j.
Theorem states that one can use the expansion formula in (1) along any
row or column in the matrix A, not only along the first row as in (1).
3
When calculating det(A), the row operations can be used applied to A
with the following impact on the determinant of A.
1) det(A) = det(AT );
2) det(AB) = det(A)det(B) for all n × n matrices A and B;
3) If A is a triangular matrix, then det(A) = a11 a22 ...ann ;
Ax = b
2x1 + x2 = 7
−3x1 + x3 = −8
4
x2 + 2x3 = −3.
Solution: We see that b = [7, −8, −3]T and the matrix A has the form
2 1 0
A = −3 0 1 .
0 1 2
First, we calculate that detA = .... = 4.
In a similar way, we also calculate three other determinants:
detA1 (b) = 6,
detA2 (b) = 16,
detA3 (b) = −14.
The direct application of the formula (2) gives then:
6 3 16 −14 7
x1 = = , x2 = = 4, x3 = =− .
4 2 4 4 2
◦ Finally, we mention one more formula that can be used to calculate det A.
5
.......................
C1n C2n ....Cnn
Example 3. Calculate detA using the co-factor formula when A is given
as
3 6 7
A = 0 2 1 .
2 3 4
Solution: We first calculate detA = ... = −1.
Using the formula (3) for the co-factors, we obtain: