
108 CHAPTER 3. VECTORS AND MATRICES
>
RHS2:=value(RHS2);
RHS2 :=
2 R
3
π
3
Adding the two surface integral contributions, RHS1 and RHS2 , completes the
evaluation of the right-hand side of the divergence theorem.
>
RHS:=RHS1+RHS2;
RHS :=
5 R
3
π
3
The results RHS and LHS are identical, confirming the divergence theorem.
3.3 Matrices
A general matrix A of order m ×n is of the form
A =
⎛
⎜
⎜
⎝
a
11
a
12
a
13
... a
1n
a
21
a
22
a
23
... a
2n
... ... ... ... ...
a
m1
a
m2
a
m3
... a
mn
⎞
⎟
⎟
⎠
the index m labeling the row and n the column. Each number a
jk
in A is called
an element. If the number of columns equals the number of rows, the matrix
is said to be square. A matrix having only one row is called a row matrix or a
row vector, while a matrix having only one column is called a column matrix or
column vector. Some basic properties of matrices are as follows:
(a) Addition and Subtraction: If two matrices A=(a
jk
)andB =(b
jk
)areof
the same order, then A ± B =(a
jk
± b
jk
).
(b) Multiplication: If A=(a
jk
)andλ is any scalar, then λA= Aλ=(λa
jk
).
If A=(a
jk
)isanm ×n matrix and B =(b
jk
)isann ×p matrix, then the
product AB (or A · B) is a matrix C =(c
jk
), where c
jk
=
n
i=1
a
ji
b
ik
.
The new matrix C is of order m ×p.
(c) Transpose: The transpose A
T
of a matrix A =(a
jk
)isA
T
=(a
kj
), i.e.,
interchange rows and columns.
(d) Hermitian matrix: If A =(a
jk
), then the complex conjugate matrix is
A
∗
=(a
∗
jk
). The Hermitian conjugate (or adjoint) matrix A
†
=(A
T
)
∗
.A
square matrix is Hermitian if A
†
= A.
(e) Inverse of a matrix: If A is a non-singular matrix (i.e., its determi-
nant det(A) = 0), then the inverse matrix A
−1
is of the form A
−1
=
(A
jk
)
T
/det(A), where (A
jk
) is the matrix of cofactors A
jk
.(Thecofactor
A
jk
is equal to (−1)
j+k
times the resulting determinant of A obtained by
removing all the elements of the jth row and kth column.) It follows that
AA
−1
= A
−1
A = I,whereI is the unit matrix with each element along
its principal diagonal equal to 1 and all off-diagonal elements 0.
Other matrix properties will be introduced in the recipes of this section.