Lecture 03
Lecture 03
Lecture 3
Linear equations:
where a1, a2 , , an and b are constants and the “a’s” are not all zero.
Note: A linear equation does not involve any products or square roots of variables. All
variables occur only to the first power and do not appear, as arguments of trigonometric,
logarithmic, or exponential functions.
A finite set of linear equations is called a system of linear equations or linear system. The
variables in a linear system are called the unknowns.
For example,
4 x1 − x2 + 3x3 = −1
3x1 + x2 + 9 x3 = −4
is a linear system of two equations in three unknowns x1, x2, and x3.
am1 x1 + am 2 x2 + + amn xn = bm
When two lines intersect in R2, we get system of linear equations with two unknowns
a1 x + b1 y = c1
For example, consider the linear system
a2 x + b2 y = c2
The graphs of these equations are straight lines in the xy-plane, so a solution (x, y) of this
system is infect a point of intersection of these lines.
1. The lines may be parallel and distinct, in which case there is no intersection and
consequently no solution.
2. The lines may intersect at only one point, in which case the system has exactly
one solution.
3. The lines may coincide, in which case there are infinitely many points of
intersection (the points on the common line) and consequently infinitely many
solutions.
A linear system is said to be consistent if it has at least one solution and it is called
inconsistent if it has no solutions.
Thus, a consistent linear system of two equations in two unknowns has either one
solution or infinitely many solutions – there is no other possibility.
x2
x1
l2 3
l1 (a)
(a) x1 − 2 x2 = −1 (b) x1 − 2 x2 = −1
− x1 + 2 x2 = 3 − x1 + 2 x2 = 1
x2 x2
2
2
x1
l2 3 3
l1
l1 (a) (b)
In this case, the graph of each equation is a plane, so the solutions of the system, If any
correspond to points where all three planes intersect; and again we see that there are only
three possibilities – no solutions, one solution, or infinitely many solutions as shown in
figure.
Theorem 1: Every system of linear equations has zero, one or infinitely many solutions;
there are no other possibilities.
x − y =1
Example 1: Solve the linear system
2x + y = 6
Solution:
7
Adding both equations, we get x = . Putting this value of x in 1st equation, we
3
4 7 4
get y = . Thus, the system has the unique solution x = , y = .
3 3 3
Geometrically, this means that the lines represented by the equations in the system
⎛7 4⎞
intersect at a single point ⎜ , ⎟ and thus has a unique solution.
⎝3 3⎠
x+ y =4
Example 2: Solve the linear system
3x + 3 y = 6
Solution:
Multiply first equation by 3 and then subtract the second equation from this. We obtain
0=6
This equation is contradictory.
Geometrically, this means that the lines corresponding to the equations in the original
system are parallel and distinct. So the given system has no solution.
4x − 2 y = 1
Example 3: Solve the linear system
16 x − 8 y = 4
Solution:
−16 x + 8 y = −4
16 x − 8 y = 4
0 =0
Thus, the solutions of the system are those values of x and y that satisfy the single
equation 4 x − 2 y = 1
Geometrically, this means the lines corresponding to the two equations in the original
system coincide and thus the system has infinitely many solutions.
Parametric Representation:
The first approach yields the following parametric equations (by taking y=t in the
equation 4 x − 2 y = 1 )
4 x − 2t = 1, y = t
1 1
x= + t, y = t
4 2
We can now obtain some solutions of the above system by substituting some numerical
values for the parameter.
1 3
Example: For t = 0 the solution is ( , 0). For t = 1, the solution is ( ,1) and for t = −1
4 4
1
the solution is (− , −1) etc.
4
x − y + 2z = 5
Example 4: Solve the linear system 2 x − 2 y + 4 z = 10
3x − 3 y + 6 z = 15
Solution:
Since the second and third equations are multiples of the first.
Geometrically, this means that the three planes coincide and those values of x, y and z
that satisfy the equation x − y + 2 z = 5 automatically satisfy all three equations.
x = 5 + t1 − 2t2 , y = t1 , z = t2
Some solutions can be obtained by choosing some numerical values for the parameters.
x − y + 2z = 5
1 − 2 + 2(3) = 5
1− 2 + 6 = 5
5=5
Matrix Notation:
x1 − 2 x2 + x3 = 0
Given the system 2 x2 − 8 x3 = 8
−4 x1 + 5 x2 + 9 x3 = −9
⎡ 1 −2 1 ⎤
With the coefficients of each variable aligned in columns, the matrix ⎢⎢ 0 2 −8⎥⎥
⎢⎣ −4 5 9 ⎥⎦
is called the coefficient matrix (or matrix of coefficients) of the system.
An augmented matrix of a system consists of the coefficient matrix with an added column
containing the constants from the right sides of the equations. It is always denoted by Ab
⎡ 1 −2 1 0 ⎤
Ab = ⎢⎢ 0 2 −8 8 ⎥⎥
⎢⎣ −4 5 9 −9 ⎥⎦
In order to solve a linear system, we use a number of methods. 1st of them is given
below.
Successive elimination method: In this method the x1 term in the first equation of a
system is used to eliminate the x1 terms in the other equations. Then we use the x2 term
in the second equation to eliminate the x2 terms in the other equations, and so on, until
we finally obtain a very simple equivalent system of equations.
x1 − 2 x2 + x3 = 0
Example 5: Solve 2 x2 − 8 x3 = 8
−4 x1 + 5 x2 + 9 x3 = −9
Solution: We perform the elimination procedure with and without matrix notation,
and place the results side by side for comparison:
x1 − 2 x2 + x3 = 0 ⎡ 1 −2 1 0 ⎤
2 x2 − 8 x3 = 8 ⎢ 0 2 −8 8 ⎥
⎢ ⎥
−4 x1 + 5 x2 + 9 x3 = −9 ⎢
⎣ −4 5 9 −9 ⎥⎦
To eliminate the x1 term from third equation add 4 times equation 1 to equation 3,
4 x1 − 8 x2 + 4 x3 = 0
−4 x1 + 5 x2 + 9 x3 = −9
−3 x2 + 13 x3 = −9
The result of the calculation is written in place of the original third equation:
x1 − 2 x 2 + x 3 = 0 ⎡1 −2 1 0 ⎤
2 x2 − 8 x3 = 8 ⎢0 2 −8 8 ⎥
⎢ ⎥
− 3 x2 + 1 3 x3 = − 9 ⎢⎣0 −3 13 −9 ⎥⎦
To eliminate the x2 term from third equation add 3 times equation 2 to equation 3,
Now using 3rd equation eliminate the x3 term from first and second equation i.e. multiply
3rd equation with 4 and add in second equation. Then subtract the third equation from first
equation we get
x1 − 2 x 2 = − 3 ⎡1 −2 0 −3⎤
x2 = 16 ⎢0 1 0 16 ⎥
⎢ ⎥
x3 = 3 ⎢⎣0 0 1 3 ⎥⎦
⎧ x1 = 29 ⎡1 0 0 29 ⎤
⎪ ⎢ ⎥
⎨ x2 = 16 ⎢0 1 0 16 ⎥
⎪x = 3 ⎢⎣0 0 1 3 ⎥⎦
⎩ 3
To verify that (29, 16, 3) is a solution, substitute these values into the left side of the
original system for x1, x2 and x3 and after computing, we get
The results agree with the right side of the original system, so (29, 16, 3) is a solution of
the system.
1. (Replacement) Replace one row by the sum of itself and a nonzero multiple of
another row.
2. (Interchange) Interchange two rows.
3. (Scaling) Multiply all entries in a row by a nonzero constant.
Note: If the augmented matrices of two linear systems are row equivalent, then the two
systems have the same solution set.
Row operations are extremely easy to perform, but they have to be learnt and practice.
1. Is the system consistent; that is, does at least one solution exist?
2. If a solution exists is it the only one; that is, is the solution unique?
We try to answer these questions via row operations on the augmented matrix.
Solution:
First obtain the triangular matrix by removing x1 and x2 term from third equation and
removing x2 from second equation.
x1 − 2 x2 + x3 = 0 ⎡ 1 −2 1 0 ⎤
x2 − 4 x3 = 4 ⎢ 0 1 −4 4 ⎥
⎢ ⎥
−4 x1 + 5 x2 + 9 x3 = −9 ⎢⎣ −4 5 9 −9 ⎥⎦
x1 − 2 x2 + x3 = 0 ⎡1 −2 1 0 ⎤
x2 − 4 x3 = 4 ⎢ 0 1 −4 4 ⎥
⎢ ⎥
− 3x2 + 13 x3 = −9 ⎢⎣ 0 −3 13 −9 ⎥⎦
x1 − 2 x 2 + x3 = 0 ⎡1 −2 1 0 ⎤
x 2 − 4 x3 = 4 ⎢0 1 −4 4 ⎥
⎢ ⎥
x3 = 3 ⎢⎣0 0 1 3 ⎥⎦
x1 − 2(16) + 3 = 0
x1 = 29
So a solution exists and the system is consistent and has a unique solution.
To eliminate the 5x1 term in the third equation, add –5/2 times row 1 to row 3:
⎡ 2 −3 2 1 ⎤
⎢0 1 −4 8 ⎥⎥
⎢
⎢⎣ 0 −1/ 2 2 −3 / 2 ⎥⎦
Next, use the x2 term in the second equation to eliminate the –(1/2) x2 term from the third
equation. Add ½ times row 2 to row 3:
⎡ 2 −3 2 1 ⎤
⎢ 0 1 −4 8 ⎥
⎢ ⎥
⎢⎣ 0 0 0 5 / 2 ⎥⎦
2 x1 − 3 x2 + 2 x3 = 1
x2 − 4 x3 = 8
0 = 2.5
There are no values of x1, x2, x3 that will satisfy because the equation 0 = 2.5 is never
true.
Hence original system is inconsistent (i.e., has no solution).
Exercises:
1. State in words the next elementary “row” operation that should be performed on the
system in order to solve it. (More than one answer is possible in (a).)
a. x1 + 4 x2 − 2 x3 + 8 x4 = 12 b. x1 − 3x2 + 5 x3 − 2 x4 = 0
x2 − 7 x3 + 2 x4 = −4 x2 + 8 x3 = −4
5 x3 − x4 = 7 2 x3 = 7
x3 + 3 x4 = −5 x4 = 1
2. The augmented matrix of a linear system has been transformed by row operations into
the form below. Determine if the system is consistent.
⎡1 5 2 −6 ⎤
⎢0 4 −7 2 ⎥
⎢ ⎥
⎢⎣0 0 5 0 ⎥⎦
5 x1 − x2 + 2 x3 = 7
−2 x1 + 6 x2 + 9 x3 = 0
−7 x1 + 5 x2 − 3x3 = −7
2 x1 − x2 = h
−6 x1 + 3x2 = k
x2 + 5 x3 = −4 x1 − 5 x2 + 4 x3 = −3
5. x1 + 4 x2 + 3x3 = −2 6. 2 x1 − 7 x2 + 3 x3 = −2
2 x1 + 7 x2 + x3 = −1 2 x1 − x2 − 7 x3 = 1
x1 + 2 x2 =4 2 x1 − 4 x3 = −10
7. x1 − 3 x2 − 3x3 = 2 8. x2 + 3x3 = 2
x2 + x3 = 0 3x1 + 5 x2 + 8 x3 = −6
Determine the value(s) of h such that the matrix is augmented matrix of a consistent
linear system.
⎡ 1 −3 h ⎤ ⎡ 1 h −2 ⎤
9. ⎢ ⎥ 10. ⎢ ⎥
⎣ −2 6 −5⎦ ⎣ −4 2 10 ⎦
Find an equation involving g, h, and that makes the augmented matrix correspond to a
consistent system.
⎡ 1 −4 7 g ⎤ ⎡ 2 5 −3 g ⎤
11. ⎢⎢ 0 3 −5 h ⎥⎥ 12. ⎢⎢ 4 7 −4 h ⎥⎥
⎢⎣ −2 5 −9 k ⎥⎦ ⎢⎣ −6 −3 1 k ⎥⎦
Find the elementary row operations that transform the first matrix into the second, and
then find the reverse row operation that transforms the second matrix into first.
⎡1 3 −1 5 ⎤ ⎡1 3 −1 5 ⎤
15. ⎢⎢ 0 1 −4 2 ⎥⎥ , ⎢⎢0 1 −4 2 ⎥⎥
⎢⎣ 0 2 −5 −1⎥⎦ ⎢⎣0 0 3 −5⎥⎦