Linear Algebra Linear Equation To Gauss
Linear Algebra Linear Equation To Gauss
Linear Equations in n
Variables
• A linear equation in n variables x1, x2, x3, …, xn has the
form a1x1 + a2 x2 + … + an xn = b.
1
a. 3x + 2y =7 b. x + y − πz = 2
2
2
c. (sinπ)x1 − 4x2 =e d. xy + z = 2
The set of all solutions of a linear equation is called its solution set, and when
you have found this set, you have solved the equation. To describe the entire
solution set of a linear equation, use a parametric representation.
Parametric Representation
of a Solution Set
Solve the linear equation x1 + 2x2 = 4.
To find the solution set of an equation involving two variables, solve for
one of the variables in terms of the other variable. Solving for x1 in
terms of x2, you obtain x1 = 4 − 2x2.
In this form, the variable x2 is free, which means that it can take on any
real value. The variable x1 is not free because its value depends on the
value assigned to x2.
Parametric Representation
of a Solution Set
To represent the infinitely many solutions of this equation, it
is convenient to introduce a third variable t called a
parameter. By letting x2 = t, you can represent the solution
set as x1 = 4 − 2t, x2 = t, t is any real number.
Exercise:
1. 3x + 2y − z = 3
3 2
2. + −1=0
y x
Systems of Linear
Equations
Definition of Terms
x − 2y + 3z = 9 x − 2y + 3z = 9
−x + 3y = − 4 y + 3z = 5
2x − 5y + 5z = 17 z=2
Solving a System of Linear Equations
(Using Back-Substitution in Row-
Echelon Form)
x − 2y = 5 x − 2y + 3z = 9
y=−2 y + 3z = 5
z=2
Solving a System of Linear Equations
(Using Back-Substitution in Row-
Echelon Form)
Two systems of linear equations are equivalent when they have
the same solution set.
x − 2y + 3z = 9
−x + 3y = − 4
2x − 5y + 5z = 17
An Inconsistent System
x1 − 3x2 + x3 = 1
2x1 − x2 − 2x3 = 2
x1 + 2x2 − 3x3 = − 1
A System with Infinitely
Many Solutions
x2 − x3 = 0
x1 − 3x3 = − 1
−x1 + 3x2 = 1
Exercises
A. Determine whether equation is linear
Matrix
An alternative method of identifying elements
in a matrix is to use a subscript notation.
Matrices are often identified with italicized or
bold capital letters. So A, B, C or A, B, C can
be used as labels to identify matrices.
−1 2 7 5
B =! 0 2 −1 0
8 17 21 6
The element located at row 2 and column 3
of this matrix can be indicated by writing
(2,3) or b23 . This number is b23 = -1
Matrix
A matrix that includes the entire linear
system is called an augmented matrix.
5x − y + 9z = 2
4x + 2y − z = 18
x + y + 3z = 6
5 −1 9
its coefficient matrix is A = 4 2 −1 and its
1 1 3
5 −1 9 2
augmented matrix is A = 4 2 −1 18
1 1 3 6
Solving a System Using Elementary
Operations
2 −1 5 2 −1 5
M = ! 1 33 6 →! 17 4 8
17 4 8 1 33 6
Solving a System Using Elementary
Operations
2 −1 5 4 −2 10
2R1→R1 = 1 33 6 → 1 33 6
17 4 8 17 4 8
Solving a System Using Elementary
Operations
2 −1 5 0 −67 −7
-2R2 + R1→R1 = 1 33 6 → 1 33 6
17 4 8 17 4 8
Solving a System Using Elementary
Operations
−2 11 0 19
0 16 −1 7
A=
0 0 11 21
0 0 0 14
1 0 0 0
1 0 8
[0 0 0 ]
0 1 0 −6
A= B = 0 0 −2 .
0 0 1 2
0 0 0 0
A is a row canonical form while B is not.
Gaussian Elimination
Method
x + y − 5z = 15
−x + 2y − 3z = 4
3 −7 2 1
A= 1 1 −5 15
−1 2 −3 4
Find the solution of the
system
Step 2. Identify the pivot. (Objective: to write the matrix into an upper triangular
form).
3 −7 2 1
A= 1 1 −5 15
−1 2 −3 4
R1 + 3R3 → R3
R1 − 3R2 → R2
R2 − 10R3 → R3
Find the solution of the
system
Now the matrix is triangular. Or we can say it is in echelon form. This
means that:
✓Row 3 has one nonzero coefficient: it is also to the right of the first
nonzero coefficient in row 2.
2x1 + x2 + 7x3 = 6
Solution:
-R3/5, R1 – 4R3, R2 + R3
Gauss-Jordan Method
Assignment
A. Use Gaussian Elimination to solve the following systems.
1. 2y − z = 1
−x + 2y − z = 0
x − 4y + z = 2
2. −x + y + z = −1
x + y + z = 1
x + 2y + z = 2
Assignment
B. Use Gauss-Jordan Elimination to solve the ffg.
1. 4x2 − 3x3 = 3
2. x1 + x2 + x3 + x4 = 1,