Professional Documents
Culture Documents
Phu Luc
Phu Luc
Phu Luc
Simultaneous Equations
and Matrix Inversion
In circuit analysis, we often encounter a set of simultaneous equations
having the form
a x a x p a x b
a x a x p a x b (A.1)
o o o
a x a x p a x b
where there are n unknown x , x , p , x to be determined. Equation
(A.1) can be written in matrix form as
a a p a x b
a a p a x b
≥ p ¥ ≥ ¥ ≥ ¥ (A.2)
o o o o o
a a p a x b
This matrix equation can be put in a compact form as
AX B (A.3)
where
a a p a x b
a a p a x b
A ≥ ¥, X ≥ ¥, B ≥ ¥ (A.4)
o o p o o o
a a p a x b
A is a square (n n) matrix while X and B are column matrices.
There are several methods for solving Eq. (A.1) or (A.3). These
include substitution, Gaussian elimination, Cramer’s rule, matrix inver-
sion, and numerical analysis.
¢
x
¢
¢
x (A.5)
¢
o
¢
x
¢
A
Appendix A Simultaneous Equations and Matrix Inversion A-1
¢ a M a M a M p ( 1) a M (A.8)
a a a a a a a a a a a a a a a
a a a (A.11)
In summary:
¢
x , k 1, 2, . . . , n (A.12)
¢
One may use other methods, such You may not find much need to use Cramer’s method described in
as matrix inversion and elimination. this appendix, in view of the availability of calculators, computers, and
Only Cramer’s method is covered software packages such as MATLAB, which can be used easily to solve
here, because of its simplicity and a set of linear equations. But in case you need to solve the equations
also because of the availability of by hand, the material covered in this appendix becomes useful. At any
powerful calculators. rate, it is important to know the mathematical basis of those calcula-
tors and software packages.
Solution:
The given set of equations is cast in matrix form as
4 3 x 17
c d c d c d
3 5 x 21
The determinants are evaluated as
4 3
¢ 4 5 ( 3)( 3) 11
3 5
17 3
¢ 17 5 ( 3)( 21) 22
21 5
4 17
¢ 4 ( 21) 17 ( 3) 33
3 21
Appendix A Simultaneous Equations and Matrix Inversion A-3
Hence,
¢ 22 ¢ 33
x 2, x 3
¢ 11 ¢ 11
Find the solution to the following simultaneous equations: Practice Problem A.1
3x x 4, 6x 18x 16
Solution:
In matrix form, the given set of equations becomes
25 5 20 x 50
£ 5 10 4§ £x § £ 0§
5 4 9 x 0
We apply Eq. (A.11) to find the determinants. This requires that we
repeat the first two rows of the matrix. Thus,
25 5 20
25 5 20 5 10 4
¢ 5 10 4 5 4 9
5 4 9 25 5 20
5 10 4
25 50 20
25 50 20 5 0 4
¢ 5 0 4 5 0 9
5 0 9 25 50 20
5 0 4
Practice Problem A.2 Obtain the solution of this set of simultaneous equations:
3x x 2x 1
x 6x 3x 0
2x 3x 6x 6
Answer: x 3 x ,x 2.
X A B (A.13)
where A is the inverse of A. Matrix inversion is needed in other
applications apart from using it to solve a set of equations.
By definition, the inverse of matrix A satisfies
A A AA I (A.14)
Appendix A Simultaneous Equations and Matrix Inversion A-5
0A 0 a a c (A.20)
C
A (A.21)
0A 0
For a 2 2 matrix, if
a b
A c d (A.22)
c d
A-6 Appendix A Simultaneous Equations and Matrix Inversion
its inverse is
1 d b 1 d b
A c d c d (A.23)
0 0
A c a ad bc c a
For a 3 3 matrix, if
a a a
A £a a a § (A.24)
a a a
we first obtain the cofactors as
c c c
C £c c c § (A.25)
c c c
where
a a a a a a
c , c , c ,
a a a a a a
a a a a a a
c , c , c ,
a a a a a a
a a a a a a
c , c , c
a a a a a a
(A.26)
The determinant of the 3 3 matrix can be found using Eq. (A.11).
Here, we want to use Eq. (A.20), i.e.,
0A0 a c a c a c (A.27)
The idea can be extended n 7 3, but we deal mainly with 2 2 and
3 3 matrices in this book.
Solution:
We first express the two equations in matrix form as
2 10 x 2
c d c d c d
1 3 x 7
or
AX B ¡ X A B
where
2 10 x 2
A c d, X c d, B c d
1 3 x 7
The determinant of A is 0 A 0 2 3 10( 1) 16, so the inverse
of A is
1 3 10
A c d
16 1 2
Appendix A Simultaneous Equations and Matrix Inversion A-7
Hence,
1 3 10 2 1 64 4
X A B c d c d c d c d
16 1 2 7 16 16 1
i.e., x 4 and x 1.
Solve the following two equations by matrix inversion. Practice Problem A.3
2y y 4, y 3y 9
Answer: y 3, y 2.
Determine x , x , and x for the following simultaneous equations using Example A.4
matrix inversion.
x x x 5
x 2x 9
4x x x 2
Solution:
In matrix form, the equations become
1 1 1 x 5
£ 1 2 0§ £x § £ 9§
4 1 1 x 2
or
AX B ¡ X A B
where
1 1 1 x 5
A £ 1 2 0§, X £x §, B £ 9§
4 1 1 x 2
We now find the cofactors
2 0 1 0 1 2
c 2, c 1, c 9
1 1 4 1 4 1
1 1 1 1 1 1
c 2, c 5, c 3
1 1 4 1 4 1
1 1 1 1 1 1
c 2, c 1, c 3
2 0 1 0 1 2
A-8 Appendix A Simultaneous Equations and Matrix Inversion
Practice Problem A.4 Solve the following equations using matrix inversion.
y y 1
2y 3y y 1
y y y 3
Answer: y 6, y 2, y 5.
Appendix B
Complex Numbers
A-9
A-10 Appendix B Complex Numbers
(B.9)
The first two forms are related by Eqs. (B.5) and (B.6). In Section B.3
we will derive Euler’s formula, which proves that the third form is also
equivalent to the first two.
Example B.1 Express the following complex numbers in polar and exponential form:
(a) z 6 j8, (b) z 6 j8, (c) z 6 j8, (d) z 6 j8.
Solution:
Notice that we have deliberately chosen these complex numbers to fall
in the four quadrants, as shown in Fig. B.2.
(a) For z 6 j8 (1st quadrant),
8
r 26 8 10, u tan 53.13
6
Hence, the polar form is 10 53.13 and the exponential form is 10e .
(b) For z 6 j8 (4th quadrant),
8
r 26 ( 8) 10, u 360 tan 306.87
6
Appendix B Complex Numbers A-11
Convert the following complex numbers to polar and exponential forms: Practice Problem B.1
(a) z 3 j4, (b) z 5 j12, (c) z 3 j9, (d) z 7 j.
Convert the following complex numbers into rectangular form: Example B.2
(a) 12 60 , (b) 50 285 , (c) 8e , (d) 20e .
Solution:
(a) Using Eq. (B.6),
12 60 12 cos( 60 ) j12 sin( 60 ) 6 j10.39
Note that u 60 is the same as u 360 60 300 .
(b) We can write
50 285 50 cos 285 j50 sin 285 12.94 j48.3
(c) Similarly,
8e 8 cos 10 j8 sin 10 7.878 j1.389
(d) Finally,
20e 20 cos( p 3) j20 sin( p 3) 10 j17.32
Find the rectangular form of the following complex numbers: Practice Problem B.2
(a) 8 210 , (b) 40 305 , (c) 10e , (d) 50e .
Answer: (a) 6.928 j4, (b) 22.94 j32.77, (c) 8.66 j5, (d) j50.
A-12 Appendix B Complex Numbers
Example B.3 If A 2 j5, B 4 j6, find: (a) A*(A B), (b) (A B) (A B).
Solution:
(a) If A 2 j5, then A* 2 j5 and
A B (2 4) j(5 6) 6 j
so that
A*(A B) (2 j5)(6 j) 12 j2 j30 5 7 j32
Appendix B Complex Numbers A-13
(b) Similarly,
A B (2 4) j(5 6) 2 j11
Hence,
A B 6 j (6 j)( 2 j11)
A B 2 j11 ( 2 j11)( 2 j11)
12 j66 j2 11 23 j64
0.184 j0.512
( 2) 11 125
Answer: (a) 103 j26, (b) 5.19 j 6.776, (c) 6.045 j11.53.
Solution:
(a) Since there are terms in polar and exponential forms, it may be best
to express all terms in polar form:
2 j5 22 5 tan 5 2 5.385 68.2
(2 j5)(8e ) (5.385 68.2 )(8 10 ) 43.08 78.2
2 j4 2 40 2 j4 2 cos( 40 ) j2 sin( 40 )
3.532 j2.714 4.454 37.54
Thus,
(2 j5)(8e ) 43.08 78.2
9.672 40.66
2 j4 2 40 4.454 37.54
(b) We can evaluate this in rectangular form, since all terms are in that
form. But
j(3 j4)* j(3 j4) 4 j3
(2 j) 4 j4 1 3 j4
( 1 j6)(2 j) ( 1 j6)(3 j4) 3 4j j18 24
27 j14
Hence,
j(3 j4)* 4 j3 ( 4 j3)( 27 j14)
( 1 j6)(2 j) 27 j14 27 14
108 j56 j81 42
0.1622 j0.027
925
A-14 Appendix B Complex Numbers
and that
0e 0 2 cos u sin u 1
Replacing u by u in Eq. (B.23) gives
e cos u j sin u (B.25)
Adding Eqs. (B.23) and (B.25) yields
1
cos u (e e ) (B.26)
2
Appendix B Complex Numbers A-15
1
sin u (e e ) (B.27)
2j
Useful Identities
The following identities are useful in dealing with complex numbers.
If z x jy r u, then
zz* x y r (B.28)
2z 2x jy 2re 2r u 2 (B.29)
z (x jy) r nu r e r (cos nu j sin nu) (B.30)
z (x jy) r u n 2pk n
(B.31)
k 0, 1, 2, p , n 1
ln(re ) ln r ln e ln r ju j2k p
(B.32)
(k integer)
1
j
j
e 1
(B.33)
e 1
e j
e j
Re(e ) Re(e e ) e cos t
(B.34)
Im(e ) Im(e e ) e sin t
b 2b 4ac
x ,x
2a
A-16
Appendix C Mathematical Formulas A-17
C.4 Derivatives
If U U(x), V V(x), and a constant,
d dU
(aU ) a
dx dx
d dV dU
(UV ) U V
dx dx dx
A-18 Appendix C Mathematical Formulas
dU dV
V U
d U dx dx
a b
dx V V
d
(aU ) naU
dx
d dU
(a ) a ln a
dx dx
d dU
(e ) e
dx dx
d dU
(sin U ) cos U
dx dx
d dU
(cos U ) sin U
dx dx
a dx ax C
U dV UV V dU (integration by parts)
U
U dU C, n 1
n 1
dU
ln U C
U
a
a dU C, a 7 0, a 1
ln a
1
e dx e C
a
e
xe dx (ax 1) C
a
e
x e dx (a x 2ax 2) C
a
ln x dx x ln x x C
1
sin ax dx cos ax C
a
1
cos ax dx sin ax C
a
x sin 2ax
sin ax dx C
2 4a
x sin 2ax
cos ax dx C
2 4a
Appendix C Mathematical Formulas A-19
1
x sin ax dx (sin ax ax cos ax) C
a
1
x cos ax dx (cos ax ax sin ax) C
a
1
x sin ax dx (2ax sin ax 2 cos ax a x cos ax) C
a
1
x cos ax dx (2ax cos ax 2 sin ax a x sin ax) C
a
e
e sin bx dx (a sin bx b cos bx) C
a b
e
e cos bx dx (a cos bx b sin bx) C
a b
sin(a b)x sin(a b)x
sin ax sin bx dx C, a b
2(a b) 2(a b)
cos(a b)x cos(a b)x
sin ax cos bx dx C, a b
2(a b) 2(a b)
sin(a b)x sin(a b)x
cos ax cos bx dx C, a b
2(a b) 2(a b)
dx 1 x
tan C
a x a a
x dx x
x a tan C
a x a
dx 1 x 1 x
a tan b C
(a x) 2a x a a a
sin ax dx 0
cos ax dx 0
p
sin ax dx cos ax dx
2
0, m n even
sin mx cos nx dx 2m
, m n odd
m n
0, m n
sin mx sin nx dx sin mx sin nx dx
p, m n
A-20 Appendix C Mathematical Formulas
p
, a 7 0
2
sin ax
dx 0, a 0
x
p
, a 6 0
2
f (x) f ¿ (x)
lim lim
h(x) h ¿ (x)
where the prime indicates differentiation.