Professional Documents
Culture Documents
Systems of Linear
Equations
Topic Outline
1.Systems of Linear Equations
2. Matrices
3. Applications of systems of Linear
Equations
Linear Equations
are
a1x+a2y+a3z=b
where
+...+anxn =b
a 11 x 1 + a 12 x 2 + ... a 1 n x n = b 1
a 21 x 1 + a 22 x 2 + ... a 2 n x n = b 2
...
...
a m 1 x 1 + a m 2 x 2 + ... a mn x n = b m
Types of Systems
Definition 5: A system of linear equations that
has a solution is called a consistent system
while a system of linear equations that has no
solution is called an inconsistent system.
Definition 6: An underdetermined system of
linear equations is one with more variables
than equations.
Example:
x1 +2x2 3x3 =4
2x1 x2 +4x3 =3
2x1 2x2 =3
x1 +7x2 =0
Elementary Linear Algebra by Ron Larson and David Falvo
Inconsistent system
No solution
Dependent system
Infinite solution
3. Addition or Elimination
4. Cramers Rule
5. Gauss-Jordan Elimination
6. Use of Inverse of a Matrix
Solving Systems of Linear Equations
1.Graphical Method
Solve the system:
y = 3x 2
y = x 6
Solution:
(-1,-5)
Solving Systems of Linear Equations
2.Substitution Method
Solve the
system
x + y = 10
2x +y = 15
Solution:
Solving Systems of Linear Equations
3.Addition Method
Solve the
system
5x +3y = -19
8x +3y =-25
Solution:
Matrices
Definition 8: If m and n are positive integers, then an mxn matrix is a
rectangular array of numbers where aij is the entry located in the ith
row and jth column
.
.
.
am1 am2 am3
... a1n
... a2n
... a3n
.
.
... amn
m rows
n columns
Operations on Matrices
Addition of Matrices
Example:
14 52+13 41=14++31
52+14=54 19
tA = t[aij ] = [taij ]:
Example
1 2
3(1) 3(2)
34 2 = 3(4) 3(2)
Subtraction of matrices
Matrix subtraction is defined for two matrices
A = [aij ] and B = [bij ] of the same size; that is
A - B = [aij ] - [bij ] = [aij - bij ]
Example:
1 2 3 1 13 2+1 2 3
4 51 4=41 54=3 1
Multiplication of Matrices
If A is an mxn matrix and B is an nxp matrix, then their matrix
product AB is the mxp matrix whose entries are given by dot product of
the corresponding row of A and the corresponding column of B:
AB = A i 1 B 1 j + A i 2 B 2 j + ... + A in B nj = , A ir B rj
r =1
where 1 i m and 1 j p.
Example :
Let
A=0
2 andB= 2
1 1
5
Solution :
=
10 23 02 51 14 [[01 32]]0022 [[01
32]]5511 [[01 32]]1414=64 1410 138
Zero matrix
Examples :
1 0
I2 =
0
1
1 0 0
I 3 = 0 1 0
0 0 1
Square matrices
A square matrix is a matrix with the same number of
rows and columns. An nxn matrix is known as a square
matrix of order n.
A square matrix A is called invertible or non-singular if
there exists a matrix B such that
AB = BA =In.
Moreover, if B exists, it is unique and is called the
inverse of matrix A, denoted A1.
1 2
1 2
Let A = 1 1 and B = 1 1
Solution:
1 2 1 2
1 0
AB = 1 1 1 1 = 0 1 and
1 21 2
1 0
BA = 1 11 1 = 0 1
Determinants
Definition 9:
The determinant of a matrix is the real
number associated to a given matrix A.
Determinant: Matrix of
order 3
0 2 1
Solution:
0 2 10 2
A = 34 01 21
A= 3 1 23
4 0 14 0
A= 0(1)(1)+2(2)(4)+1(0)(3)4(1)(1)0(2)(0)1(3)(2) =14
Cofactor Expansion
Let A be a square matrix of order n. Then the
determinant of A is given by
n
det(A) = A =
j=1
Cij =(1)
Mij
and where the minor Mij is the of the element aij is the
determinant matrix obtained by deleting the ith row
and the jth column of A.
0 2 1
A = 3 1 2 4
0 1
Solution: Using the cofactor expansion of the
1st row:
1+11 2
Recall:
0 2 1
C11 = (1)0
= 1,
1
C
2
A = 34 01 21 12 = (1)1+ 34
= 5, and
1
1
C13 = (1)1+334
Thus we have
0 = 4
A =a11C11+ a12C12 +
a13C13
A =0(1)+2(5)+1(4)=14
4.Cramers Rule
Solve the
system
2x + 9y = 8 x +
5y =4
Solution:
(4,0)
Introduction : GaussJordan Elimination
Ri Rj
2. Multiply a row by a nonzero constant.
cRi Ri
3. Add a multiple of a row to another row.
Rj+cRi Rj
Examples:
0 1 0 5
A=0 0 1 3
Matrix A is in RREF.
0 0 0 0
1 2 3 4 Matrix B is not in B= 0 2 1
1 RREF.
0 0
5. Gauss-Jordan Elimination
1.Write down the augmented matrix of the
system of linear equations.
2.Derive the reduced echelon form of the
augmented matrix using elementary row
operations.
3.Write down the system of equations
corresponding to the reduced echelon form.
This system gives the solution of the system
of equations.
Example:
101 1 101 1 10
+R2 R21R2
150 1 50 1
105
1R2 +R1 R1
015
R2
5
Inverse of a matrix
When det(A)0, the inverse of a 2x2
matrix A is obtained using
1
A =
A
1
d
c
Example:
x1 + x2 = 10
2x1 +x2 = 15
AX=Y 1 1x1 10 2
1x2=15
1 1
A-1: 2 1
x1 1 110 5
X=A-1Y
x2=2 115=5
andx2 =5
Lets make
equations alive!
Some Applications
Curve Fitting
Networks
Cryptography
Application of Systems
of Equations to
Geometry
Curve Fitting
1. Find a polynomial whose graph passes
through the points. The points are often
measurements in an experiment.
2. The x-coordinates are called base points. It
can be shown that if the base points are all
y= a0 +a1x+a2x2
Now we solve for the values of
a0 , a1 , and a2
a 0 + a1 + a 2 = 6 a 0 + 2a 2 +
are (1,6),(2,3)
and (3,2).
4a 3 = 3 a 0 + 3a 2 + 9a 2 =
2
and using Gauss Jordan Elimination gives
y=116x+x2
What is a NETWORK?
a network is a series of points or nodes
interconnected by communication paths.
Examples:
1.Street (Traffic) network
2.Circuit network
STREET
(TRAFFIC)
NETWORK
Assumptions:
1.Assume that the streets are one way.
2. By Kirchhoffs first Law, the flow into
an intersection is equal to the flow out.
The following diagram shows part of the central section of a
campus. Find the amount of the traffic between each of four
intersection .
70
120
A:
B:
C:
x4+120 = x1 + 250
x3 + 115 = x4 + 175
x2 + 630 = x3 + 390
120
D:
x1 + 70 = x2 + 120
RREF
as a linear system :
Electric
Circuit
A simple Electric
Circuit is a closed
connection
of
batteries, resistors,
and Wires. It consists
of voltage, loops and
current nodes.
The following physical
quantities are measured in an
electrical circuit; Current,: Denoted by I measured in Amperes (A).
Resistance ,: Denoted by R measured in Ohms ( W ) .
I1
I1
8 volts
2 ohms
2 ohms
I3
I3
D
1 ohm
I2
I2
C
4 ohms
16 volts
I2 +I1 =I3 or
I1 +I2 I3 =0
Applying Kirchhoffs second Law to the loops ABDA and
CBDC, we obtain the equations
A
I1
I1
8 volts
2 ohms
2 ohms
B
1 ohm
I3
D
I3
I2
I2
C
4 ohms
16 volts
2I1
4I2 +1I3 =16
+1I3 +2I1 = 8
I1 + I2 I3 = 0
4I1
+ I3 = 8
4I2 + I3 = 16
1 1 1 0
4 0 1 8
0 4 1 16
RREF
1 0 0 1
0103
0 0 1 4
Therefore, the currents are:
I1 =1 , I2 = 3, andI3 =4
Cryptography
Example1:
MATH IS MAGICAL
using the encoding matrix
4 3
A=3 2
M A T H
I S
M A GI C A L
13 1 20 8 27 9 19 27 13 1 7 9 3 1 12
We assign 27 for every space between words.
RECALL:
M A T H
I S
M A G I C A L
13 1 20 8 27 9 19 27 13 1 7 9 3 1 12
13 20 27 19 13 7 3 12
1 , 8 , 9 ,27, 1 ,9,1,27
Use these columns as the columns of the matrix:
13202719137 312
1 8 9 271 9 1 27
4 31320 2719137 3 12
=
3 2 1 8 9 27 1 9 1 27
Thus the encoded message is:
Example2:
Decode the message
__________________
which was encoded using the
matrix
4 3 A=3
2
Solution:
or the inverse of
4 3 A=3
2
RECALL:
A
Thus,
= A1 dc ab
A1 = 81+9 23 34=23 34
This matrix will serve as the decoding matrix.
23 34[ ]=
The message is
Try this!
Decode the message
Which was encoded using the matrix
Workshop!
11:00-11:20
11:20-11:30
Group discussions
Group reports
References:
Linear Algebra with Applications by Gareth Williams