0% found this document useful (0 votes)
119 views

Chapter Two

This document discusses different methods for solving systems of linear equations, including matrix representation, Cramer's rule, inverse method, Gaussian elimination, and Gauss-Jordan elimination. Cramer's rule uses determinants to find solutions. The inverse method solves the system by pre-multiplying both sides by the inverse of the coefficient matrix. Gaussian elimination reduces the system to an upper triangular form through elementary row operations. Gauss-Jordan elimination performs further row operations to obtain the identity matrix and directly read off the solutions. These methods allow solving systems of linear equations with as many equations as unknowns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views

Chapter Two

This document discusses different methods for solving systems of linear equations, including matrix representation, Cramer's rule, inverse method, Gaussian elimination, and Gauss-Jordan elimination. Cramer's rule uses determinants to find solutions. The inverse method solves the system by pre-multiplying both sides by the inverse of the coefficient matrix. Gaussian elimination reduces the system to an upper triangular form through elementary row operations. Gauss-Jordan elimination performs further row operations to obtain the identity matrix and directly read off the solutions. These methods allow solving systems of linear equations with as many equations as unknowns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Chapter two

1. System of Linear Equations


1.1. Matrix representation of linear equations
One of the uses of matrix algebra is to find solution for a system of linear equations. Therefore,
for a system of equations where the number of equations equals the number of variables involved
we can have a solution using matrix algebra, expressing the equations in their matrix equivalent.
Consider; 3X+4Y-2Z=10
X+2Y-Z = 2
5X-3Y+2Z= -5…………………………………………….. (2.1)
The above systems of equations could be represented by using matrices as;

( )( ) ( )
3 4 −2 x 10
1 2 −1 y = 2
5 −3 2 z −5
1.2. Solving system of linear equations
2.1.1. Cramer rule
Cramer’s rule provides a simplified method of solving a system of linear equations by using
determinants. Given a system of linear equations with equal number of equations and variables
where the matrix expression is given as;
AX=B……where, A = the coefficient matrix
X = the variable matrix
B = the constant matrix
Cramer’s rule states that
| A i|
Xi=
| A|
Where, X i = the ith unknown variable i9n the series of equations
| A|= the determinant of the original coefficient matrix
| Ai|=the determinatnt of a special matrix formed from the original coefficient matrix A by
replacing the coefficients of X i with the column vector of constants.
Given; a x 1+ b x 2=h
c x1 +d x 2=g
The equations can be represented as;

( ac db )( xx )=( hg)……….where, |ac db|≠ 0


1

1
x=
|h
g
b
d|= hd −gb
|ac d|
1
b ad−bc

x=
| a
c g| ag−ch
h
=
|ac d|
2
b ad−bc

Example: Solve the following system of equations using Cramer’s rule.


6 x 1+ 5 x 2=49
3 x 1+ 4 x 2=32
Exercise: Solve the following system of equations using Cramer’s rule.
1. 7 p1− p2− p3 =0
10 p1−2 p 2+ p 3=8
6 p1 +3 p 2−2 p 3=7
2.1.2. Inverse method
If a given system of linear equations is expresses as; AX = B, pre-multiplying both sides by A -1
gives, A-1 AX = A-1 B hence X = A-1 B.
Example: use inversion method to solve the system of linear equations below.
6 x 1+ 5 x 2=49
3 x 1+ 4 x 2=32
Example 2: solve the following sets of equations using inversion method.
7 p1− p2− p3 =0
10 p1−2 p 2+ p 3=8
6 p1 +3 p 2−2 p 3=7

Exercise: find the solution for the following system of linear equations by using Cramer’s rule or
inversion method.

1. 3x+4y-2z=10 p1−6 p2 −2 p3 =26


X+2y-z = 2 −2 p 2+ 7 p 3− p1=24
5x-3y+2z = -5 3. 2 x1 +3 x 2+ 4 x 3=16
2. 11 p 1− p2− p3=31 x 2=8−8 x 3−x 1

2
x 1+ x3 =8−2 x 2
4. 2 x1 +2 x 2+3 x 3=3
x 2+ x3 =2
x 1+ x2 + x 3=4

3
2.1.3. Gaussian elimination
Suppose we have the following set of equations
X +2 y−z =2
3 x+ 4 y −2 z=10
5 x−3 y +2 z =−5 …………………………………2.2.
We first try to eliminate x from the last two equations by adding to each of these equations a
proper multiple of the first equation. To eliminate the 3x term in (2.2), we multiply [2.2a) by -3
and add this new equation to (2.2b). The result is the following calculation:
−3 x−6 y +3 z=−6
3 x+ 4 y −2 z=10
−2 y + z=4
Similarly, by adding -5 times (2.2a) to (2.2c), we obtain a new third equation −13 y +7 z=−15 .
Our system is transformed to give;
x +2 y −z=2
−2 y + z=4
−13 y +7 z=−15……………………………………2.3
In transforming system of equations (from 2.2 to 2.3) we used only one operation: we added a
multiple of one equation to another. This operation is reversible. There are two other reversible
operations one often uses to transform a system of equations: 1) multiplying both sides of an
equation by a nonzero scalar and 2) interchanging two equations.
These three operations are called the elementary equation operations. Since equals arc always
added to or subtracted from equals or multiplied by the same scalar, the set of solutions which
solve the original system will also solve the transformed system. In fact, since these three
operations are reversible, any solution of the transformed system will also be a solution of the
original system. Consequently, both systems will have the exact same set of solutions.
Fact: if one system of linear equations is derived from another by elementary equation
operations, then both systems have the same solutions; that is, the systems are equivalent.
Let us return to our elimination procedure and continue working on system (2.3). Having
eliminated x from the last two equations, we now want to eliminate y from the last equation.
Hence we will get;
x +2 y −z=2

4
−2 y + z=4
1
z=−41……………………………………2.4
2
Since each equation in (2.4) has one fewer variable than the previous one, this system is
particularly amenable to solution by substitution. Using the so called back substitution method
we solve [2.4], hence z=−82, y=−43∧x =6.
This method of reducing a given system of equations by adding a multiple of one equation to
another or by interchanging equations until one reaches a system of the form (2.4) and then
solving (2.4) via back substitution is called Gaussian elimination. The important characteristic
of system (2.4) is that each equation contains fewer variables than the previous equation. At each
stage of the Gaussian elimination process, we want to change some coefficient of our linear
system to 0 by adding a multiple of an earlier equation to the given one.
For example, if you want to use the coefficient a 3 k, in the third equation to eliminate the
coefficient a 5 k in the fifth equation, we add (--a 5 k/a 3 k) times the third equation to the fifth
equation, to get a new fifth equation whose kth coefficient is 0. The coefficienta 3 k is then called a
pivot. And we say that we “pivot on a 3 k to eliminatea 5 k.” At each stage of the elimination
procedure; we use a pivot to eliminate all coefficients directly below: it.
Zero can never be a pivot in this process. If you want to eliminate x i from a subsystem of
equations and if the coefficient of x i is zero in the first equation of this subsystem and nonzero
in a subsequent equation, you will have to reverse the order of these two equations before
proceeding.
2.1.4. Gauss-Jordan method (for n×n) system of equations
We did not use the operation of transforming an equation by simply multiplying it by a nonzero
scalar. There is a variant of Gaussian elimination, called Gauss- Jordan eliminations which use
all three elementary equation operations. This method starts like Gaussian elimination, by
transforming (2.2) to (2.4). After reaching system (2.4), multiply each equation in (2.4) by a
scalar so that the first nonzero coefficient is 1:
x +2 y −z=2
1
y− z=−2
2
z=−82……………………………………2.5

5
Now, instead of using back substitution, use Gaussian elimination methods from the bottom
equation to the top to eliminate all but the first term on the left-hand side in each equation in
(2.5). This operation results in x=6 , y=−43∧z=−82, which needs no further work to see the
solution.
To use the gauss Jordan elimination method for solving linear equation systems, express the
system of linear equations as augmented matrix and apply repeated row operations to the
augmented matrix until the coefficient matrix is reduced to identity matrix. Then the solution can
be read from the remaining elements in the column vector. An augmented matrix ( A/ B ) is the
coefficient matrix A with the column vector of constants B set alongside it separated by a line.
Example: ax+by = C
dx-ey = F

Then A = ( ad −eb ) and X = ( xy ) and B=(CF ) the augmented matrix could be written as;
A/B = (
d −e f )
a b c

If we use elementary row operations so that we generate the following matrix in the process;

A/B = (10 0 h
1 g )
The solution to the system will then be; x = h and y = g.
Example; solve the following system of linear equations by Gauss-Jordan elimination method.
a) 2 x1 +3 x 2=17
x 1+ 2 x 2=10
b) 2 x1 +2 x 2+3 x 3=3
x 2+ x3 =2
x 1+ x2 + x 3=4
The following are some possible scenarios which may result from Gauss-Jordan elimination
result for a system of n×n equations.
i. Unique solution exists

( )
1 0 0 a
0 1 0 b
0 0 1 c
ii. No solution may be obtained

6
( )
1 0 0 a
0 1 e b
0 0 0 c
example: x + y=9
x + y=8
Where a, b, c, e ≠ 0
iii. Infinite number of solutions may exist

( )
1 0 d a
0 1 e b
0 0 0 0
example : 2 x + y=12
4 x+2 y=24
Where a, b, c, d, e ≠ 0
2.2. Homogenous systems of linear equations
If all right-hand side values of equation (2.1) are only zeros, the system is called homogenous. A
homogenous system will always have the so called trivial solution (i.e x = y = z = 0).
The homogenous system of linear equations with n equations and n unknowns;
a 11 x1 + a12 x 2+ …+a1 n x n=0
a 21 x1 + a22 x 2+ …+a 2n x n=0
⋮ ⋮⋮ ⋮⋮
a n1 x 1+ an 2 x 2 +…+ ann x n=0

Has nontrivial solution if and only if the coefficient matrix A = ( a ij )(n ×n) is singular (i.e. iff,| A|=0
). If the matrix A is nonsingular a homogenous equation system can yield only a trivial solution.
Example; check for which values of λ the following system of equations has non trivial solution?
5x+2y+z = λ x
2x+y = λ y
X+z = λ z
Exercise: prove that the homogenous system of equations;
ax+by+cz = 0
bx+cy+az = 0
cx+ay+bz = 0
has nontrivial solution iff, a 3+ b3 +c 3−3 abc=0.
7
2.3. Economic applications
1. Assume there are two commodities in a market system of an economy. Suppose also that the
demand and supply functions of the two goods are provided below.
Qdx =10−2 p1 + p2Qdy =15+ p1− p 2

Qsx =−2+3 p1
Qsy =−1+2 p2
What is the general equilibrium solution for the above two commodity market model?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy