Linear Equations and Inequalities Overview
Linear Equations and Inequalities Overview
1
Linear Equations and
Inequalities
a1 x1 + a2 x2 + · · · + an xn = b (1.1)
where the coefficients a1 , a2 , . . . , an , and constant term b are real constant and
the a ’s are not all zero.
■ Example 1.1 The following are linear equations:
#
x + 3x = 7, 2x 1 + x 2 − x 3 = 2 6
#
2x 1 − x 2 + 3x 3 + 5x 4 = 0, x1 + x2 + · + xn = 1
x + 2y 2 = 1, 3x + 2y − x y = 4
#
2 cos x − y = 3, 2 x1 − x2 = 6
Observe that a linear equation does not involve any products or roots of
variables. All variables occur only to the first power and do not appear, for
example, as arguments of trigonometric, logarithmic, or exponential functions.
12 =
1, 2 = 2
1 =
2, 4: - 1
let x = t , then y = 2t .
↓ EIR
These formula describe the solution set in term of the arbitrary parameter t .
Particular numerical solutions can be obtained by substituting specific values
fort. For example, let t = 1, we have the solution x = 1 and y = 2 and if we let
t = 0, then the solution x = 0 and y = 0. ■
a 11 x 1 + a 12 x 2 + · · · + a 1n x n = b1
a 21 x 1 + a 22 x 2 + · · · + a 2n x n = b2 (1.2)
.. ..
. .
a m1 x 1 + a m2 x 2 + · · · + a mn x n = bm
2,3154:5 -
·
: *
-
n
·
·
-1 -
5x + y = 3
2x − y = 4
1. 2. 3.
/
x − 2y = −1 x − 2y = −1 x − 2y = −1
-
+
↓
−x + 3y = 3 −x + 2y = 3 −x + 2y = 1
ฯ: 3
Solution. &: 2 &: d
21: 3
1. Adding the two equations together gives y = 2, and then we find that
x = 3. We can check that x = 3, y = 2 is a solution of the system and it is
the unique solution. Geometrically, this means that the lines represented
by the equations in the system intersect at the single point (3, 2).
1 -
* & / ↳
-1
M - 27 :-1
·
1 . ·
/ ↓
-; ·
To explain the possibilities that can occur in solving systems of linear equa-
tions, consider the linear system
a1 x + b1 y = c1
a2 x + b2 y = c2
in which the graphs of the equations are lines in the x y -plane. The graphs of
these equations are lines, which we denote by l 1 and l 2 . A pair of numbers (x, y)
satisfies both equations in the system if and only if the point (x, y) lies on both l 1
and l 2 . Each solution (x, y) of this system corresponds to a point of intersection
of the lines, so there are three possibilities:
1. The lines l 1 and l 2 may be parallel and distinct, in which case there is no
intersection and consequently no solution.
2. The lines l 1 and l 2 may intersect at only one point, in which case the
system has exactly one solution.
3. The lines l 1 and l 2 may coincide, in which case there are infinitely many
points of intersection (the points on the common line) and consequently
infinitely many solutions.
Figure 1.2
:ENG PR ( 23: ( 0, 2)
I >, - 3
-
2.0, 0)
We now extend that concept to linear inequalities in two variables, as we in-
troduce a procedure that is used to graph their solution sets.
Definition 1.2.1 A linear inequality in two variables is an inequality that
can be written in one of the forms
ax + b y > c, ax + b y ≤ c, ax + b y > c, or ax + b y ≥ c
where a, b, and c are real numbers and a and b are not both 0.
Solution.
The graph of a linear inequality is a picture that represents the set of all
points whose coordinates satisfy the inequality. In general, such graphs are
regions bounded by a line. We call those regions half-planes, and we use a
two-step procedure to find them.
1. Replace the inequality sign by an equal sign, and sketch the graph of
the resulting equation.
(Use a dashed line for > or < and a solid line for ≥ or ≤.)
2. Test one point in each of the regions formed by the graph in Step 1. If
the point satisfies the inequality, shade the entire region to denote that
every point in the region satisfy the inequality.
a
of
mores
21- 2426
my
21 - 34 56
Solution.
x + y ≥−1
x − y ≥1
To solve a system of inequalities means to find all of its solutions. This can
be done by graphing each inequality on the same set of axes and finding the
points that are common to every graph in the system.
In this case, however, we are not looking for an intersection of two lines, but
an intersection of two regions. This region represents the solution set of the
system. For systems of linear inequalities, it is helpful to find the vertices of the
solution region.
In general, to solve system of linear inequalities, we will follow these steps.
Solving system of linear inequalities
2. Use shading to highlight the intersection of the graphs (the region where
the graphs overlap). The points in this region are the solutions of the
system.
3. As an informal check, pick a point from the region where the graphs
intersect and verify that its coordinates satisfy each inequality of the
original system.
x + y ≥−1
x − y ≥1
Solution.
· 2 ·
· 1 -
( / # ·:
&
-
-2 -
y > 3x
2x + y < 4
a>&
Solution. 7) &
-
Y 3 33
-
-ร
<
↳
->
& -ร
- -
-ร
&
↳ I
#
-
#
-
·
-ร
·
-ร
*
-ร
·
x ≤ 1
y ≤ 2
2x − y ≤ 4
Solution.
↓
·> 2
I ·
- 2 9 ·
· 4
Chapter 3
Systems of Linear Equations
where the coefficients a1 , a2 ,..., an , and constant term b are real constants and
not all a i equal zero.
Observe that a linear equation does not involve any product of variables, a square of
a variable, or a square root of a variable. All variables occur only to the first power
and do not appear as argument for trigonometric, logarithmic, or exponential
function.
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 66
A system of linear equations (or a linear system) is a finite set of linear equations
in the variables x1 , x 2 ,..., x n .
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 67
Solution
(a) Adding the two equations together gives 2 x 6 , so x 3 , and then we find
that y 2 . We can check that x 3 , y 2 is a solution of the system and it
is the unique solution.
(b) The second equation in this system is just twice the first, so the solutions of
the system are the solutions of the first equation. Thus, this system has
infinitely many solutions.
(c) The sum of x and y cannot have a difference 5 and [Link], this system
has no solutions.
To explain the possibilities that can occur in solving systems of linear equations,
consider a linear equation in two variables x and y has the form ax by c .
When one of a and b is nonzero, this is the equation of a line in the xy plane.
Thus a system of two linear equations in the variables x and y consists of a pair of
equations
a1 x b1 y c1 (a1 , b1 not both zero )
a2 x b2 y c 2 (a2 , b2 not both zero )
The graphs of these equations are lines, say l1 and l2 . Since a point ( x , y ) lies on a
line if and only if the numbers x and y satisfy the equation of the line, the solution
of the system of equations will correspond to points of intersection of l1 and l2 .
There are three possibilities:
(a) the lines l1 and l2 may be parallel, in which case there is no intersection and
consequently no solution to the system; (see Figure 1(a))
(b) the lines l1 and l2 may intersect at only one point, in which case the system
has exactly one solution; (see Figure 1(b))
(c) the lines l1 and l2 may coincide, in which case there are infinitely many
points of intersection and consequently infinitely many solutions to the
system. (see Figure 1(c))
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 68
Every system of linear equations has either no solution, exactly one solution,
or infinitely many solutions.
Figure 1(b) and Figure 1(c) show consistent systems, while Figure 1(a) shows
inconsistent system.
3- 2: 1
-::: ↑
will be written in matrix form;
a11 a12 a1n x1 b1 1
2-
&
a21 a22 a2 n x 2 b2 /
a
m1 am2 amn x n bm
x1 b1
x2 b2
or AX B where A [ aij ]mn , X and B .
x b
n m
:A. 1: B
[Link] Jantarakhajorn
ข่มี
มี
MMA103 Applied Linear Algebra for Management 69
8z
z
15
0 · :Tel:
the coefficient matrix is
/
3 1 6
1 0 8
1 2 1
the augmented matrix is
3 1 6 1
-
1 0 8 18*
1 2
1 0
Remark When constructing an augmented matrix, the variables must be written in
the same order in each equation.
Not that if a variable is missing (as y is in the second equation), its coefficient 0 is
entered in the appropriate position in the matrix.
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 70
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 71
x y z 2 1 1 1 2
3x 3y 2z 16 3 3 2 16
2x y z 9 2 1 1 9
Subtract 3 times the first equation Subtract 3 times the first row
from the second equation from the second row.
x y z 2 1 1 1 2
5z 10 0 0 5 10
2x y z 9 2 1 1 9
Subtract 2 times the first equation Subtract 2 times the first row
from the third equation from the third row
x y z 2 1 1 1 2
5z 10 0 0 5 10
y 3z 5 0 1 3 5
x y z 2 1 1 1 2
y 3z 5 0 1 3 5
5z 10 0 0 5 10
Observe that the final matrix is the augmented matrix for the final system. So we will
work with matrices in stead of equations since it is simple matter to reinsert the
variables before proceeding with the back substitution method.
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 72
The procedure for reducing a matrix to row echelon form is called Guassian
elimination. The procedure produce a reduced row echelon is called Guass -Jordan
elimination.
23 ( S 02 3 ⑧
1. -
& / / 3
2 y 3 z 8 1,5> Ry ="
~
S * & & 2
3y z 5
&23 ⑧
2x 1
The
corresponding system is
-1. 2 -S 22-
4- 22=- S
y 2z 5
-24,0R2
x 5 S IS
&
3
·7+
2 =
& 2 3 ⑧
2 : 2
2. 1 1
2
3 &
K=
0, 4:1,
x2 2 x3 3x4 4
2 3 3 - 1 3 2:2
x1 3 - 4 I 3
042 -
3x2 3x3 x4 3
2 3
-2R, 1
2 x1 -SR, URy
0
&
1 - - - -
2 14- 14-
S
15
7 x2 4 x3 x4 5 rnc- eusasantet
s
5 x1
:ห,
-2 R2 + R ·1 1 2 3 4
3
0 1 - - - - 5
#posted
& ·44 -
5
3.
by no
ไ
2 ↳
2y z 3
1
x 23 - 1
3- 2 - 1
- a
2x 5y z 4
- -
↳
-24, 5R2 - .. fe
3x 2y z 5 R, 5 R3
-3 4
3- 8- 4-
23
ORctRy -, 2
↳ -2RctR, ?? - la
4. 0
&
1
0
-
-
3
18
-I d
-8 4 &4 3
x y 2 z 4t 5 -21 + 23
&
Sky + RC 1 0 0
& /
2x 2y 3z t 3 R, + R,
-7
o a 1 3
3x 3y 4 z 2t 1 :12 = 2 , 3 : 1, 2 :3
1 1- 2 4 S
2 2 -3
3
3 3- 4- 2
1
4 5
-24, FR
11 -
2
2
set: t=w, then 2: - > + > W
& & 1 - T -
siritcarren
2 4 5 45 : 5
-ERROR, -
1 1 :- 1 54 - 22 x
y
a o . &
are
nous so we
คู่
MMA103 Applied Linear Algebra for Management 73
0 2 3 8 1 1 2 5
2 3 1 5 R1 R3 2 3 1 5
1 1 2 5 0 2 3 8
1 1 2 5
2R1 R2 R2 0 5 5 15
0 2 3 8
1 1 2 5
1R
5 2 0 1 1 3
0 2 3 8
1 1 2 5
2R2 R3 R3 0 1 1 3
0 0 1 2
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 74
A system of linear equations is said to be homogenous if all the constant terms are
zero.
Every homogenous system of linear equations is consistent, since all such systems
have x1 ...,. x2 ...,....,
.x
n .... as a solution. This solution is called trivial
.
solution; if there are other solutions, they are called nontrivial solution.
We can investigate whether the linear equations system has solution by considering
the rank of its augmented matrix, coefficient matrix and the number of variable.
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 75
2 1 0 0 1
0 2 0 1 1
3 1 6 1 0 2 0
0 0 0 1 0
A 0 1 8 B 0 1 0 0 C
0 0 0 0 3
0 0 1 0 0 0 1
0 0 0 0 0
0 0 0 0 0
4 0 1 2 0
0 0 2 4 2
D
0 0 2 4 2
0 0 0 0 2
We have
3 3 .....
4 ..... rank (D) ..........
3 ..... rank (B) .......... ..... rank(C ) ..........
rank( A) ..........
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 76
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 77
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 78
det( A1 ) 40 10 det( A2 ) 72 18
x1 x2
det( A) 44 11 det( A) 44 11
det( A3 ) 152 38
x3 .
det( A) 44 11
3 2 & 3
& / -
&
- 2 ·
&
/ S
-2
5 - 2
A: , it
Pet CA) : 3 2 & Y 2.
& 1 - 1 I (
is
4 +6
↳- 2 +
+ & t
- &
: (3- 2) - (- 1) (
Id +6) = 13 =- - 15
A: : to
Pet CA,
A: ,
il ai GetCAe): ( 194) | 3 grescribed
↳ =- 35 (+) ( IS-< s: - 15
21 : LetAs): :
By :
Get CA,
Get ( AS
[Link] Jantarakhajorn
der): its: 1 *
ue:
Set LA)
MMA103 Applied Linear Algebra for Management 79
Exercise 3.3
1. Solve each of the following systems by Gaussian elimination.
x1 x 2 2 x 3 8
(a) x1 2 x2 3 x3 1 ans. ( x1 3, x 2 1, x 3 2 )
3 x1 7 x2 4 x3 10
2 x1 2 x2 2 x3 0
(b) 2 x1 5 x2 2 x3 1 ans. ( x1 71 , x 2 71 , x 3 0 )
8 x1 x2 4 x3 1
x y 2z w 1
2 x y 2 z 2w 2
(c)
x 2y 4z w 1
3x 3w 3
ans. ( x s 1, y 2r , z r , w s )
2b 3c 1
(d) 3a 6b 3c 2 ans. Inconsistent.
6a 6b 3c 5
2. Solve each of the systems in Exercise1 by Gauss-Jordan elimination.
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 80
Observe that this method is good for solving a sequence of linear systems
AX B1 , AX B2 , AX B3 ,....., AX Bk
Each of which has the same coefficient matrix A . If A is invertible, then the
solutions X A1B1 , X A1B2 , X A1B3 ,....., X A1Bk can be obtained
with one matrix inversion and k matrix multiplications.
I / & 1 &
-
-
/ I do
& - 2 2 1 &
$ 1- I I "I &
R,2R3
~1
& & ·I
& 2 & I a
* * ( /9
x 1 &
,
a &
0
I
& /
Ry + R2
-
" Pa
·0 1
&
/ -
· - & ·
2. eccells is
1 .
B:
( -
I a
↳
-IR, 0
Ru
&
~ &
-
[Link] Jantarakhajorn
-
MMA103 Applied Linear Algebra for Management 81
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 82
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 83
Exercise 3.5
1. Solve each of the following systems by Gauss-Jordan and Gaussian
elimination
(a)
x1 x 2 2 x 3 8
x1 2x2 3x3 1 Ans. (3,1,2)
3 x1 7x2 4 x3 10
(b)
2 x1 2 x2 2 x3 0
1 1
2 x1 5x2 2 x3 1 Ans. , ,0
7 7
8 x1 x2 4 x3 1
(c)
x y 2z w 1
2 x y 2 z 2w 2
x 2y 4z w 1
3x 3w 3
Ans. x s 1, y 2t , z t , w s
2. Solve each of the following systems by Cramer’s Rule, where it applies.
(a)
4 x1 5 x 2 2
3 2 1
11 x 1 x 2 2 x 3 3 Ans. , ,
11 11 11
x1 5 x 2 2 x 3 1
(b)
x1 3 x 2 x 3 4
30 38 40
2 x1 x 2 2 Ans. , ,
11 11 11
4 x1 3x3 0
(c)
[Link] Jantarakhajorn
MMA103 Applied Linear Algebra for Management 84
3 x1 x2 x3 4
x1 7 x2 2 x3 1 Ans. Cramer’s Rule does not
2 x1 6x2 x3 5
apply.
3. Find the condition that b’s must satisfy for the system to be consistent.
(a)
6 x1 4 x 2 b1
3 x1 2 x2 b2
x1 2 x2 5 x3 b1
(b) 4 x1 5 x2 8 x3 b2
3 x1 3 x2 3 x3 b3
[Link] Jantarakhajorn
A system of linear equations is considered inconsistent if the rank of the augmented matrix [A|B] is greater than the rank of the coefficient matrix A alone, i.e., rank([A|B]) > rank(A). This implies that the system has no solution, as there is no point that satisfies all of the equations simultaneously. Geometrically, this can be interpreted as the lines represented by the equations being parallel and distinct, with no points of intersection .
For a system of two linear equations in two variables, there are three possible configurations: (1) If the lines represented by the equations are parallel and distinct, the system has no solution (inconsistent). (2) If the lines intersect at exactly one point, there is a unique solution (consistent system with a single solution). (3) If the lines coincide, they overlap completely, giving infinitely many solutions (consistent system with infinite solutions).
Gauss-Jordan elimination works by transforming the system of equations into its reduced row-echelon form using row operations. This form clearly indicates the rank of the matrix and the presence of free variables. If all columns containing leading 1s (pivots) align with non-zero rows in the augmented matrix, the system is consistent, with solutions available. Conversely, a row of zeros in the coefficient matrix accompanying a non-zero entry in the augmented part indicates inconsistency and no solutions .
Geometric interpretation helps in understanding solutions to systems of linear inequalities by visualizing them as half-planes in the coordinate system. The intersection of these half-planes forms a region that represents all possible solutions. Unlike linear equations, which are represented by lines where solutions are points of intersection, solutions to inequalities fill this feasible region, bounded by the line representing the equation version of the inequality .
The primary advantage of solving linear systems using matrix inversion, compared to methods like row reduction, is its efficiency in handling multiple systems sharing the same coefficient matrix. Once the inverse is computed, it provides a straightforward way to obtain solutions for different right-hand sides with the same A matrix using simple matrix multiplication. This reduces computational effort significantly when dealing with repeated solutions .
Cramer's Rule can be applied to a system of linear equations when the system is square, meaning there are as many equations as there are variables, and the coefficient matrix A has a non-zero determinant (det(A) ≠ 0). This condition guarantees a unique solution to the system, which can be found by computing the determinants of matrices formed by replacing the columns of A with the constants from the system .
Matrix inversion can solve a system of linear equations Ax = B by finding the inverse of the coefficient matrix A, provided that A is a square matrix and invertible (det(A) ≠ 0). The solution is given by x = A^(-1)B. This method is particularly efficient when solving multiple linear systems with the same coefficient matrix but different constant matrices, as the inverse can be computed once and used for all such systems .
For a consistent system of linear equations, if the rank of the coefficient matrix A equals the rank of the augmented matrix [A|B], the system has solutions. If this rank equals the number of variables, the system has a unique solution. Otherwise, there are infinitely many solutions, as some variables are free, and the solutions form a line or plane of intersection in the transformed variable space .
Adding two linear equations can help in solving them by eliminating one of the unknowns in the system, making it possible to solve for the other variable. Geometrically, this process corresponds to finding the point of intersection of the lines represented by the linear equations. For example, in the system x - 2y = -1 and -x + 3y = 3, adding the two equations eliminates x and solves for y, giving y = 2. Substituting back, we find x = 3, confirming that the lines intersect at the point (3, 2), which is the unique solution to the system .
The solution set of a linear equation can be expressed in terms of an arbitrary parameter to show all possible solutions. For example, for the equation 0 = 3 - x + y, we can assign any value to x (let's call it t) and solve for y, yielding y = 3 + t. Thus, the solution set can be represented as (t, 3 + t), where t is an arbitrary real number. This method effectively captures all points on the line described by the equation .