Matrix - Algebra Review
Matrix - Algebra Review
2 MATRIX ALGEBRA
Somerset Corporate Center Office Building, New Jersey, and its Analytical Model
(Photo courtesy of Ram International. Structural Engineer: The Cantor Seinuk Group, P.C.)
23
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 24
As shown in Eq. (2.1), matrices are denoted either by boldface letters (A) or
by italic letters enclosed within brackets ([A]). The quantities forming a
matrix are referred to as its elements. The elements of a matrix are usually
numbers, but they can be symbols, equations, or even other matrices (called
submatrices). Each element of a matrix is represented by a double-subscripted
letter, with the first subscript identifying the row and the second subscript
identifying the column in which the element is located. Thus, in Eq. (2.1),
A23 represents the element located in the second row and third column of
matrix A. In general, Aij refers to an element located in the ith row and jth
column of matrix A.
The size of a matrix is measured by the number of its rows and columns
and is referred to as the order of the matrix. Thus, matrix A in Eq. (2.1), which
has m rows and n columns, is considered to be of order m × n (m by n). As an
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 25
Row Matrix
A matrix with all of its elements arranged in a single row (i.e., m = 1) is re-
ferred to as a row matrix. For example,
C = [9 35 −12 7 22]
Square Matrix
If a matrix has the same number of rows and columns (i.e., m = n), it is called
a square matrix. An example of a 4 × 4 square matrix is given by
⎡ ⎤
⎢ 6 12 0 20 ⎥
⎢ 15 −9 −37 ⎥
⎢ 3 ⎥
A=⎢ ⎥ (2.2)
⎢ −24 13 8 1 ⎥
⎣ ⎦
40 0 11 −5
main diagonal
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 26
As shown in Eq. (2.2), the main diagonal of a square matrix extends from the
upper left corner to the lower right corner, and it contains elements with match-
ing subscripts—that is, A11, A22, A33, . . . , Ann. The elements forming the main
diagonal are referred to as the diagonal elements; the remaining elements of a
square matrix are called the off-diagonal elements.
Symmetric Matrix
When the elements of a square matrix are symmetric about its main diagonal
(i.e., Aij = Aji), it is termed a symmetric matrix. For example,
⎡ ⎤
6 15 −24 40
⎢ 15 −9 13 0⎥
A=⎢
⎣ −24 13
⎥
8 11 ⎦
40 0 11 −5
Diagonal Matrix
A square matrix with all of its off-diagonal elements equal to zero (i.e., Aij = 0
for i j ), is called a diagonal matrix. For example,
⎡ ⎤
6 0 0 0
⎢0 −3 0 0⎥
A=⎢
⎣0
⎥
0 11 0⎦
0 0 0 27
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 27
Null Matrix
If all the elements of a matrix are zero (i.e., Oij = 0), it is termed a null matrix.
Null matrices are usually denoted by O or [O]. An example of a 3 × 4 null
matrix is given by
⎡ ⎤
0 0 0 0
O = ⎣0 0 0 0⎦
0 0 0 0
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 28
SOLUTION
⎡ ⎤ ⎡ ⎤
(6 + 2) (0 + 3) 8 3
C = A + B = ⎣ (−2 + 7) (9 + 5) ⎦ = ⎣ 5 14 ⎦ Ans
(5 − 12) (1 − 1) −7 0
⎡ ⎤ ⎡ ⎤
(6 − 2) (0 − 3) 4 −3
D = A − B = ⎣ (−2 − 7) (9 − 5) ⎦ = ⎣ −9 4⎦ Ans
(5 + 12) (1 + 1) 17 2
Multiplication by a Scalar
The product of a scalar c and a matrix A is obtained by multiplying each
element of the matrix A by the scalar c. Thus, if cA = B, then Bij = cAij .
SOLUTION
⎡ ⎤ ⎡ ⎤
−6(3) −6(7) −6(−2) −18 −42 12
B = cA = ⎣ −6(0) −6(8) −6(1) ⎦ = ⎣ 0 −48 −6 ⎦ Ans
−6(12) −6(−4) −6(10) −72 24 −60
Multiplication of Matrices
Two matrices can be multiplied only if the number of columns of the first ma-
trix equals the number of rows of the second matrix. Such matrices are said to
be conformable for multiplication. Consider, for example, the matrices
⎡ ⎤
1 8
6 −7
A=⎣ 4 −2 ⎦ and B= (2.3)
−1 2
−5 3
3×2 2×2
The product AB of these matrices is defined because the first matrix, A, of the
sequence AB has two columns and the second matrix, B, has two rows. How-
ever, if the sequence of the matrices is reversed, then the product BA does not
exist, because now the first matrix, B, has two columns and the second matrix,
A, has three rows. The product AB is referred to either as A postmultiplied by
B, or as B premultiplied by A. Conversely, the product BA is referred to either
as B postmultiplied by A, or as A premultiplied by B.
When two conformable matrices are multiplied, the product matrix thus
obtained has the number of rows of the first matrix and the number of columns
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 29
A B = C
(l × m) (m × n) (l × n)
equal
(2.4)
⎡ ⎤ ⎡ ⎤
⎡ ⎤
⎢ ⎥ B1 j ⎢ ⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
i th row ⎢
⎢ Ai1 Ai2 ··· ··· Aim ⎥
⎥⎢
⎢ B2 j ⎥ ⎢
⎥ ⎢ Ci j ⎥ i th row
⎥
..
⎢ ⎥⎢ . ⎥=⎢ ⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
⎢ ⎥⎢ .. ⎥ ⎢ ⎥
⎢ ⎥⎣ . ⎦ ⎢ ⎥
⎣ ⎦ ⎣ ⎦
Bm j
j th column
j th column
m
Ci j = Aik Bk j (2.6)
k=1
EXAMPLE 2.3 Calculate the product C = AB of the matrices A and B given in Eq. (2.3).
SOLUTION
⎡ ⎤ ⎡ ⎤
1 8 −2 9
6 −7
C = AB = ⎣ 4 −2 ⎦ = ⎣ 26 −32 ⎦ Ans
−1 2
−5 3 −33 41
(3 × 2) (2 × 2) (3 × 2)
The element C11 of the product matrix C is determined by multiplying each element of
the first row of A by the corresponding element of the first column of B and summing
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 30
or, symbolically, as
Ax = P (2.9)
Matrix multiplication is generally not commutative; that is,
AB = BA (2.10)
Even when the orders of two matrices A and B are such that both products AB
and BA are defined and are of the same order, the two products, in general, will
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 31
Start
Dimension C(L, N)
I=1
no
I ≤ L?
yes
J=1
no
J ≤ N?
yes
C(I, J) = 0.0
K=1
no
K ≤ M?
yes
C(I, J) = C(I, J) + A(I, K)*B(K, J)
K=K+1
J=J+1
I=I+1
Output C
Stop
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 32
SOLUTION
1 −8 6 −3 −26 37
AB = = Ans
−7 2 4 −5 −34 11
6 −3 1 −8 27 −54
BA = = Ans
4 −5 −7 2 39 −42
Comparing products AB and BA, we can see that AB = BA. Ans
Transpose of a Matrix
The transpose of a matrix is obtained by interchanging its corresponding rows
and columns. The transposed matrix is commonly identified by placing a
superscript T on the symbol of the original matrix. Consider, for example, a
3 × 2 matrix
⎡ ⎤
2 −4
B = ⎣ −5 8⎦
1 3
3×2
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 33
Because the elements of C are symmetric about its main diagonal (i.e.,
Cij = Cji for i j), interchanging the rows and columns of this matrix
produces a matrix CT that is identical to C itself; that is, CT = C. Thus, the
transpose of a symmetric matrix equals the original matrix.
Another useful property of matrix transposition is that the transpose of a
product of matrices equals the product of the transposed matrices in reverse
order. Thus,
Similarly,
(ABC)T = CTBTAT (2.16)
SOLUTION
⎡⎤ ⎡ ⎤
9 −5 64 −44 65
6 −1 10
AB = ⎣ 2 1⎦ = ⎣ 10 5 25 ⎦
−2 7 5
−3 4 −26 31 −10
⎡ ⎤
64 10 −26
(AB)T = ⎣ −44 5 31 ⎦ (1)
65 25 −10
⎡ ⎤ ⎡ ⎤
6 −2 64 10 −26
9 2 −3
B A = ⎣ −1
T T
7⎦ = ⎣ −44 5 31 ⎦ (2)
−5 1 4
10 5 65 25 −10
By comparing Eqs. (1) and (2), we can see that (AB)T = BT AT . Ans
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 34
L
EXAMPLE 2.8 Calculate the integral 0 AAT d x if
⎡ ⎤
x
⎢ 1 −
L⎥
A=⎢ ⎣ x ⎦
⎥
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 35
Thus,
⎡L L⎤
L
AAT d x = ⎣ 3 6 ⎦= L 2 1
Ans
0 L L 6 1 2
6 3
The operation of inversion is defined only for square matrices, with the inverse
of such a matrix also being a square matrix of the same order as the original
matrix. A procedure for determining inverses of matrices will be presented in
the next section.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 36
SOLUTION
−4 2 0.5 −1 (−2 + 3) (4 − 4) 1 0
AB = = =
−3 1 1.5 −2 (−1.5 + 1.5) (3 − 2) 0 1
Also,
0.5 −1 −4 2 (−2 + 3) (1 − 1) 1 0
BA = = =
1.5 −2 −3 1 (−6 + 6) (3 − 2) 0 1
Since AB = BA = I, B is the inverse of A; that is,
B = A−1 Ans
Orthogonal Matrix
If the inverse of a matrix is equal to its transpose, the matrix is referred to as an
orthogonal matrix. In other words, a matrix A is orthogonal if
A−1 = AT
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 37
SOLUTION
⎡ ⎤⎡ ⎤
0.8 0.6 0 0 0.8 −0.6 0 0
⎢ −0.6 0.8 0 0 ⎥ ⎢ 0 ⎥
AAT = ⎢ ⎥ ⎢ 0.6 0.8 0 ⎥
⎣ 0 0 0.8 0.6 ⎦ ⎣ 0 0 0.8 −0.6 ⎦
0 0 −0.6 0.8 0 0 0.6 0.8
⎡ ⎤
(0.64 + 0.36) (−0.48 + 0.48) 0 0
⎢ (−0.48 + 0.48) (0.36 + 0.64) 0 0 ⎥
=⎢⎣
⎥
0 0 (0.64 + 0.36) (−0.48 + 0.48) ⎦
0 0 (−0.48 + 0.48) (0.36 + 0.64)
⎡ ⎤
1 0 0 0
⎢0 1 0 0⎥
=⎢⎣0 0 1 0⎦
⎥
0 0 0 1
which shows that AAT = I. Thus,
A−1 = AT
Therefore, matrix A is orthogonal. Ans
Partitioning of Matrices
In many applications, it becomes necessary to subdivide a matrix into a num-
ber of smaller matrices called submatrices. The process of subdividing a matrix
into submatrices is referred to as partitioning. For example, a 4 × 3 matrix B
is partitioned into four submatrices by drawing horizontal and vertical dashed
partition lines:
⎡ ⎤
2 −4 −1
⎢ −5
⎢ 7 3 ⎥ ⎥ B11 B12
B=⎣ = (2.18)
8 −9 6 ⎦ B21 B22
1 3 8
in which the submatrices are
⎡ ⎤ ⎡ ⎤
2 −4 −1
B11 = ⎣ −5 7⎦ B12 = ⎣ 3 ⎦
8 −9 6
B21 = [1 3] B22 = [8]
Matrix operations (such as addition, subtraction, and multiplication) can be
performed on partitioned matrices in the same manner as discussed previously
by treating the submatrices as elements—provided that the matrices are parti-
tioned in such a way that their submatrices are conformable for the particular op-
eration. For example, suppose that the 4 × 3 matrix B of Eq. (2.18) is to be post-
multiplied by a 3 × 2 matrix C, which is partitioned into two submatrices:
⎡ ⎤
9 −6
C11
C=⎣ 4 2⎦ = (2.19)
C21
−3 1
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 38
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 39
To determine the unknowns x1, x2, and x3, we begin by dividing the first equa-
tion by the coefficient of its x1 term to obtain
x1 + 1.2x2 − 0.6x3 = 13.2
9x1 − x2 + 2x3 = 8 (2.21b)
8x1 − 7x2 + 4x3 = −39
Next, we eliminate the unknown x1 from the second and third equations by suc-
cessively subtracting from each equation the product of the coefficient of its x1
term and the first equation. Thus, to eliminate x1 from the second equation, we
multiply the first equation by 9 and subtract it from the second equation.
Similarly, we eliminate x1 from the third equation by multiplying the first equa-
tion by 8 and subtracting it from the third equation. This yields the system of
equations
x1 + 1.2x2 − 0.6x3 = 13.2
− 11.8x2 + 7.4x3 = −110.8 (2.21c)
− 16.6x2 + 8.8x3 = −144.6
With x1 eliminated from all but the first equation, we now divide the second
equation by the coefficient of its x2 term to obtain
x1 + 1.2x2 − 0.6 x3 = 13.2
x2 − 0.6271x3 = 9.39 (2.21d)
− 16.6x2 + 8.8 x3 = −144.6
Next, the unknown x2 is eliminated from the first and the third equations, suc-
cessively, by multiplying the second equation by 1.2 and subtracting it from the
first equation, and then by multiplying the second equation by −16.6 and sub-
tracting it from the third equation. The system of equations thus obtained is
x1 + 0.1525x3 = 1.932
x2 − 0.6271x3 = 9.39 (2.21e)
− 1.61 x3 = 11.27
Focusing our attention now on the unknown x3, we divide the third equation by
the coefficient of its x3 term (which is −1.61) to obtain
x1 + 0.1525x3 = 1.932
x2 − 0.6271x3 = 9.39 (2.21f)
x3 = −7
Finally, we eliminate x3 from the first and the second equations, successively,
by multiplying the third equation by 0.1525 and subtracting it from the first
equation, and then by multiplying the third equation by −0.6271 and subtract-
ing it from the second equation. This yields the solution of the given system of
equations:
x1 = 3
x2 = 5 (2.21g)
x3 = −7
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 40
or, equivalently,
x1 = 3; x2 = 5; x3 = −7 (2.21h)
To check that this solution is correct, we substitute the numerical values of
x1, x2, and x3 back into the original equations (Eq. 2.21(a)):
5(3) + 6(5) − 3(−7) = 66 Checks
EXAMPLE 2.11 Solve the system of simultaneous equations given in Eq. 2.21(a) by the Gauss–Jordan
method.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 41
−7
To check our solution, we substitute the numerical value of x back into Eq. (1). This yields
⎡ ⎤⎡ ⎤ ⎡ ⎤
5 6 −3 3 15 + 30 + 21 = 66
⎣ 9 −1 2 ⎦ ⎣ 5 ⎦ = ⎣ 27 − 5 − 14 = 8⎦ Checks
8 −7 4 −7 24 − 35 − 28 = −39
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 42
Start
Input G(N, N + 1) = [A P]
I=1
no
I ≤ N?
yes
C = G(I, I )
J=1
no
J ≤ N + 1?
yes
G(I, J) = G(I, J) / C
J=J+1
K=1
no
K ≤ N?
yes
yes
K = I?
no
D = G(K, I )
M= I
no
M ≤ N + 1?
yes
G(K, M) = G(K, M) − G(I, M)*D
M=M+ 1
K=K+ 1
I=I+ 1
Output G
Stop
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 43
Matrix Inversion
The procedure for determining inverses of matrices by the Gauss–Jordan
method is similar to that described previously for solving simultaneous equa-
tions. The procedure involves forming an augmented matrix G composed of
the matrix A that is to be inverted and a unit matrix I of the same order as A;
that is,
G = [A I]
(2.24)
n × 2n n × n n×n
Elementary operations are then applied to the rows of the augmented matrix to
reduce A to a unit matrix. Matrix I, which was initially the unit matrix, now
represents the inverse matrix A−1; thus,
⎧
⎨ [A I]
G= −−−−−−−−− elementary operations (2.25)
⎩
[I A−1 ]
EXAMPLE 2.12 Determine the inverse of the matrix shown using the Gauss–Jordan method.
⎡ ⎤
13 −6 6
A = ⎣ −6 12 −1 ⎦
6 −1 9
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 44
0 0 0.9998
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 45
Summary 45
SUMMARY
In this chapter, we discussed the basic concepts of matrix algebra that are nec-
essary for formulating the matrix methods of structural analysis:
m
Ci j = Aik Bk j (2.6)
k=1
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 46
PROBLEMS
Section 2.3
2.1 Determine the matrices C = A + B and D = A − B if 2.9 Show that (ABC)T = CTBTAT by using the following
⎡ ⎤ ⎡ ⎤ matrices
3 8 −1 5 9 −2
⎡ ⎤
A = ⎣ 8 −7 −4 ⎦ B = ⎣ −9 6 3⎦ −9 0
−1 −4 5 2 −3 −4 ⎢ 13 20 ⎥ 15 −1 −4
A=⎢ ⎣ 8 −3 ⎦
⎥ B=
2.2 Determine the matrices C = 2A + B and D = A − 3B if 6 16 9
⎡ ⎤ ⎡ ⎤ −11 −5
8 −6 −3 3 2 −3 ⎡ ⎤
⎢ 1 −2 0⎥ ⎢ −4 3 0⎥ −7 10 6 0
A=⎢ ⎣ −6
⎥ B=⎢ ⎥
C = ⎣ −1 2 −8 −2 ⎦
5 −1 ⎦ ⎣ 2 −8 6⎦
−2 8 0 −1 4 −7 16 12 2 8
2.3 Determine the products C = AB and D = BA if 2.10 Determine the matrix triple product C = BTAB if
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
3 40 −10 −25 5 7 −3
A = [ 4 −6 2 ] B = ⎣ 1⎦ A = ⎣ −10 15 12 ⎦ B = ⎣ −7 8 4⎦
−5 −25 12 30 3 −4 9
2.4 Determine the products C = AB and D = BA if 2.11 Determine the matrix triple product C = BTAB if
⎡ ⎤
4 6
300 −100
⎢ −7 −5 ⎥ −1 3 −5 2 A=
A=⎣ ⎢ ⎥ B= −100
1 −9 ⎦
200
−13 −4 7 6
−3 11 0.6 0.8 −0.6 −0.8
B=
−0.8 0.6 0.8 −0.6
2.5 Determine the products C = AB and D = BA if
2.12 Develop a computer program to determine the matrix
⎡ ⎤ ⎡ ⎤
4 −6 1 3 5 0 triple product C = BTAB, where A is a square matrix of
A = ⎣ −6 5 7⎦ B = ⎣5 7 −2 ⎦ any order. Check the program by solving Problems 2.10
1 7 8 0 −2 9 and 2.11 and comparing the results to those determined by
hand calculations.
2.6 Determine the products C = AB if 2.13 Determine the derivative dA/dx if
⎡ ⎤ ⎡ ⎤
12 −11 10 ⎡ ⎤ −2x 2 3sin x −7x
⎢ 0 13 −1 5 A = ⎣ 3sin x cos2 x −3x 3 ⎦
2 −4 ⎥
A=⎢
⎣ −7
⎥ B = ⎣ 16 −9 0⎦
8⎦ −7x −3x 3sin2 x
3
9
−3 20 −7
6 15 −5
2.14 Determine the derivative d(A + B)/dx if
2.7 Develop a computer program to determine the matrix ⎡ ⎤ ⎡ ⎤
product C = AB of two conformable matrices A and B of −3x 5 2x 2 −x
any order. Check the program by solving Problems 2.4–2.6 ⎢ 4x 2 −x 3 ⎥ ⎢ −12x 8⎥
A=⎢
⎣ −7
⎥ B=⎢ ⎥
and comparing the computer-generated results to those 5x ⎦ ⎣ 2x 3 −3x 2 ⎦
determined by hand calculations. 2x 3 −x 2 −1 6x
2.8 Show that (AB)T = BTAT by using the following matrices
2.15 Determine the derivative d(AB)/dx if
⎡ ⎤
21 10 16 ⎡ ⎤
7 −4 ⎡ ⎤ ⎡ ⎤
⎢ −15 11 0 ⎥ 4x 2 −5x 2 −5x 3 −x
A=⎢ ⎣ 13
⎥ B = ⎣ −1 9⎦
20 −9 ⎦ A=⎣ 2 −3x 3
−x ⎦ B=⎣ 6 −3x ⎦
2
3 −6
7 −17 14 −5x 2 −x 7 2x 2 4x
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
26201_02_ch02_p023-047.qxd 12/1/10 4:59 PM Page 47
Problems 47
2.16 Determine the partial derivatives ∂A/∂x, ∂A/∂y, and 2.22 20x1 − 9x2 + 15x3 = 354
∂A/∂z, if − 9x1 + 16x2 − 5x3 = −275
⎡ 2 ⎤
x −y 2 2z 2 15x1 − 5x2 + 18x3 = 307
A = ⎣ −y 2 3x y −yz ⎦
2.23 4x1 − 2x2 + 3x3 = 37.2
2z 2 −yz 4x z
L 3x1 + 5x2 − x3 = −7.2
2.17 Calculate the integral 0 A d x if
⎡ ⎤ x1 − 4x2 + 2x3 = 30.3
−5 −3x 2
⎢ 4x −x 3 ⎥ 2.24 6x1 + 15x2 − 24x3 + 40x4 = 190.9
A=⎢ ⎣ 2x 4
⎥
6⎦ 15x1 + 9x2 − 13x3 = 69.8
5x 2 −x −24x1 − 13x2 + 8x3 − 11x4 = −96.3
L
2.18 Calculate the integral 0 A dx if 40x1 − 11x3 + 5x4 = 119.35
⎡ ⎤ 2x1 − 5x2 + 8x3 + 11x4 =
2x − sin x 2 cos2 x 2.25 39
A = ⎣ − sin x 5 −4x ⎦
3
10x1 + 7x2 + 4x3 − x4 = 127
−4x 3 (1 − x 2 )
2 cos2 x −3x1 + 9x2 + 5x3 − 6x4 = 58
L
2.19 Calculate the integral 0 AB d x if x1 − 4x2 − 2x3 + 9x4 = −14
⎡ ⎤
−2x x2 2.26 Develop a computer program to solve a system of simulta-
−x 3 2x 2 3
A= B = ⎣ 5 −2x ⎦ neous equations of any size by the Gauss–Jordan method.
2x −x 2 2x 3
3x 3 −3 Check the program by solving Problems 2.21 through
2.25 and comparing the computer-generated results to
2.20 Determine whether the matrices A and B given below are
those determined by hand calculations.
orthogonal matrices.
2.27 through 2.30 Determine the inverse of the matrices shown
⎡ ⎤
−0.28 −0.96 0 0 by the Gauss–Jordan method.
⎢ 0.96 −0.28 0 0 ⎥ ⎡ ⎤
A=⎢ ⎥ 5 3 −4
⎣ 0 −0.28 −0.96 ⎦
0 2.27 A = ⎣ 3 8 −2 ⎦
0 0 0.96 −0.28 −4 −2 7
⎡ ⎤ ⎡ ⎤
−0.28 0.96 0 0 6 −4 1
⎢ 0.96 −0.28 0 ⎥
B=⎢
0 ⎥ 2.28 A = ⎣ −1 9 3⎦
⎣ 0 0 −0.28 0.96 ⎦ 4 2 5
0 0 0.96 −0.28 ⎡ ⎤
7 −6 3 −2
⎢ −6 4 −1 5⎥
Section 2.4 2.29 A = ⎢
⎣ 3 −1
⎥
8 9⎦
2.21 through 2.25 Solve the following systems of simultane- −2 5 9 2
ous equations by the Gauss–Jordan method. ⎡ ⎤
5 −7 −3 11
2.21 2x1 − 3x2 + x3 = −18 ⎢ 10 −6 −13 2⎥
2.30 A = ⎢
⎣ −1 12
⎥
−9x1 + 5x2 + 3x3 = 18 8 −4 ⎦
4x1 + 7x2 − 8x3 = 53 −9 7 −5 6
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.