Multi Variable Calculus 02
Multi Variable Calculus 02
1.1 Linear Systems and their solutions 1.2 Elementary Row Operations
Chapter 1
Announcement Tutorial and lab balloting begins tomorrow Last chance to sign up virtual tutorial class Hardcopies of introductory handouts Watch introductory lecture on webcast Practice Session starts next week: SL1 lecture group: Tuesday SL2 lecture group: Thursday
Chapter 1
Section 1.1
Linear Systems and their solutions
Objective What is a linear equation and a linear system? What is a general solution of a LE/LS? What is the geometrical interpretation? How to find a general solution of a LE? Other terminologies consistent/inconsistent LS
Chapter 1 Linear Systems & Gaussian Elimination 3
Discussion 1.1.1
e.g. x + y = 1 y is hidden x=2 is represented algebraically by y = -3 x is hidden a linear equation in the variables x and/or y General form ax + by = c A line in the xy-plane
a, b, c represent some real numbers constants a and b are not both zero
Chapter 1
Definition 1.1.2
A linear equation in 3 variables ax + by + cz = d
geometrical meaning: plane
A linear equation in n variables a1x1 + a2x2 + + anxn = b variables: x1, x2, , xn also called the unknowns constants: a1, a2, , an and b
coefficients
Chapter 1
constant term
5
Example 1.1.3.1
The following are (specific) linear equations: a) x + 3y = 7 b) x1 + 2x2 + 2x3 + x4 = x5 c) y = x 0.5z + 4.5 d) x1 + x2 + + xn = 1 a1x1 + a2x2 + + anxn = b
Chapter 1
Example 1.1.3.2
The following are not linear equations: a) xy = 2
cross term not linear in q and f linear in sin(q) and cos(f) square terms
Chapter 1
Example 1.1.3.3
ax + by + cz = d 0x + 0y + cz = d 0x + by + 0z = d ax + 0y + 0z = d x not all a, b, c are zero horizontal plane (^ z-axis) vertical plane (^ y-axis) vertical plane (^ x-axis)
What if there is only one zero coefficient? If d = 0, the plane passes through origin If a, b, c all non-zero, the plane is slanting
Chapter 1 Linear Systems & Gaussian Elimination 8
Definition 1.1.4
a1x1 + a2x2 + + anxn = b real numbers s1, s2, , sn If the equation is satisfied, x1 = s1, x2 = s2, , xn = sn
variables: x1, x2, , xn constants: a1, a2, , an, b a solution of the linear equation
A linear equation has (infinitely) many solutions unless it has only one variable The set of all solutions: solution set An expression that give us all solutions: general solution
Chapter 1 Linear Systems & Gaussian Elimination 9
y x
Example 1.1.5.1
4x 2y = 1 some solutions
x =1 y = 1.5 x = 1.5 y = 2.5 x = 1 y = 2.5
general solution
set x = t (parameter) substitute t for x in the equation express y in terms of t
Chapter 1 Linear Systems & Gaussian Elimination
x =t y = 2t
1 2
10
Example 1.1.5.1
4x 2y = 1 some solutions
x =1 y = 1.5 x = 1.5 y = 2.5 x = 1 y = 2.5
general solution
set x = t (parameter) substitute t for x in the equation express y in terms of t
x =t y = 2t
1 2
x = 1s+ 2 y = s
1 4
11
Additional example
xy+z=1 general solution set x = t and y = s (parameters) substitute t for x and s for y in the equation express z in terms of t and s
x y z
Chapter 1
= t = s = 1t + s
12
Geometrical interpretation
Example 1.1.5.3(a)
equation x+y=1 represents a line in xy-plane general solutions x = 1 s y = s Rewrite: (x, y) = (1 s, s) represents coordinates of points on the line
(1 s, s)
x
x+y=1
Chapter 1 Linear Systems & Gaussian Elimination 13
Geometrical interpretation
Example 1.1.5.3(b)
equation x+y=1 regarded as x + y + 0z = 1 represents a plane in 3D space
x+y=1
general solutions
x y z
= 1 s = s = t
(1 s, s, t )
x
Chapter 1 Linear Systems & Gaussian Elimination 14
Definition 1.1.6
A system of linear equations (or a linear system)
Chapter 1
16
Definition 1.1.6
a11 x1 + a12 x2 + a x +a x + 12 2 21 1 am1 x1 + am2 x2 + + a1n xn = b1 + a2n xn = b2 + amn xn = bm
real numbers s1, s2, , sn If all the equations are satisfied, x1 = s1, x2 = s2, , xn = sn
a solution of the linear system
solution set and general solution of the system are defined similarly as before.
Chapter 1 Linear Systems & Gaussian Elimination 17
Solution of a LS
Example 1.1.7
4 x1 x2 + 3x3 = 1 3x + x + 9 x = 4 2 3 1
x1 = 1, x2 = 2, x3 = 1 is a solution x1 = 1, x2 = 8, x3 = 1 is not a solution
Chapter 1
18
Solution of a LS
Remark 1.1.8
Not all systems of linear equations have solutions.
x 2x
+ y + 2y
= 4 = 6
x+y=3
This system has no solution The two equations contradict each other
Chapter 1
19
Definition 1.1.9
A system of linear equations no solution at least one solution
inconsistent system
x + y 2 x + 2y
Chapter 1
consistent system
4 x1 x2 + 3x3 = 1 3x + x + 9 x = 4 2 3 1
20
= 4 = 6
Solution of a LS
Remark 1.1.10
Every system of linear equations has either no solution exactly one solution or infinitely many solutions
Chapter 1
21
Geometrical interpretation
Discussion 1.1.11
In the xy-plane, the system
a1 x + b1y = c1 a x +by =c 2 2 2
represent two straight lines. 1) l1 and l2 are parallel lines
( l1 ) ( l2 )
l2
Linear Systems & Gaussian Elimination 22
Chapter 1
Geometrical interpretation
Discussion 1.1.11
In the xy-plane, the system
a1 x + b1y = c1 a x +by =c 2 2 2
represent two straight lines.
( l1 ) ( l2 )
2) l1 and l2 are not parallel lines. The system has exactly one solution l1 l2
Chapter 1
23
Geometrical interpretation
Discussion 1.1.11
In the xy-plane, the system
a1 x + b1y = c1 a x +by =c 2 2 2
represent two straight lines.
( l1 ) ( l2 )
3) l1 and l2 are the same lines. The system has infinitely many solutions l1 l2
Chapter 1
24
Geometrical interpretation
In the xy-plane, the system represent three lines. If the three lines are not parallel to each other, how many solutions does the system have?
no solution
Chapter 1
Geometrical interpretation
( p1 ) ( p2 ) ( p3 )
Discuss geometrically when the system has no solution, one solution and infinitely many solutions.
Chapter 1
26
Section 1.2
Elementary Row Operations
Objective What are the three elementary row operations? How to perform ERO on an augmented matrix? What is meant by row equivalence between two augmented matrices? Other terminologies augmented matrix of a LS
Chapter 1 Linear Systems & Gaussian Elimination 27
Definition 1.2.1
linear system m equations n variables
a11 x1 + a12 x 2 + a x +a x + 12 2 21 1 am1 x1 + am 2 x 2 + + a1 n x n = b1 + a2 n x n = b2 + amn x n = bm
augmented matrix
a11 a21 a m1
a12 a22 am 2
a1 n a2 n amn
b1 b2 bm
rectangular array
Example 1.2.2
Consider the system of linear equations:
x1 2 x1 3x1
x2 + + 4 x2 + 6 x2
+ 2 x3 3 x3 5 x3
= 9 = 1 = 0
1 1 2 9 2 4 3 1 3 6 5 0
Chapter 1
29
Definition 1.2.4
augmented matrix
a11 a21 a m1 a12 a22 am 2 a1 n a2 n amn b1 b2 bm
Consider the following three operations on the augmented matrix: 1. Multiply a row by a nonzero constant. 2. Interchange two rows. 3. Add a multiple of one row to another row. These are called elementary row operations.
Chapter 1 Linear Systems & Gaussian Elimination 30
Definition 1.2.4
1 1 2 9 2 4 3 1 3 6 5 0
Add 2 times of first row to second row
2 2 4
18
1 1 2 9 4 6 1 19 3 6 5 0
only second row is changed
Chapter 1 Linear Systems & Gaussian Elimination
1 1 2 9 3 6 5 0 2 4 3 1
31
Discussion 1.2.3
Elementary row operations
+ a1 n x n = b1 + a2 n x n = b2 + amn x n = bm
1. Multiply a row by a nonzero constant. 2. Interchange two rows. 3. Add a multiple of one row to another row. These are the basic steps for solving linear system. Correspond to the following action on the system 1. Multiply an equation by a nonzero constant. 2. Interchange two equations. 3. Add a multiple of one equation to another equation.
Chapter 1 Linear Systems & Gaussian Elimination 32
Example 1.2.5
x 2x 3x + y 2y + 9y + 3z + 2z = 0 = 4 = 3 (1) (2) (3) 1 1 3 2 2 2 3 9 0 0 4 3
This is equivalent to adding 2 times of the first row of the matrix to the second row.
Chapter 1 Linear Systems & Gaussian Elimination 33
Example 1.2.5
x 3x y + 4y + 9y + 3z 4z = 0 = 4 = 3 (1) (4) (3) 1 1 3 0 4 4 3 9 0 0 4 3
+ y 4y 6y
+ 3z 4z 9z
= 0 = 4 = 3
1 1 3 0 4 4 0 6 9
0 4 3
This is equivalent to adding 3 times of the first row of the matrix to the third row.
Chapter 1 Linear Systems & Gaussian Elimination 34
Example 1.2.5
x y + 4y 6y + 3z 4z 9z = 0 = 4 = 3 (1) (4) (5) 1 1 3 0 4 4 0 6 9 0 4 3
Add 6/4 times of Equation (4) to Equation (5) to obtain Equation (6).
x y + 4y + 3z 4z 15z = 0 = 4 = 9 (1) (4) (6)
1 1 3 0 4 4 0 0 15 0 4 9
This is equivalent to adding 6/4 times of the second row of the matrix to the third row.
Chapter 1 Linear Systems & Gaussian Elimination 35
Example 1.2.5
x y + 4y 3z + 4z 15z = 0 = 4 = 9 (1) (4) (6)
By Equation (6),
z = 3/5.
Substituting z = 3/5 into Equation (4), 4y 4(3/5) = 4 y = 2/5. Substituting y = 2/5 and z = 3/5 into Equation (1) x + (2/5) + 3(3/5) = 0 x = 11/5.
This gives the solution of the linear system
Chapter 1 Linear Systems & Gaussian Elimination 36
Definition 1.2.6
Two augmented matrices are row equivalent (to each other) if one can be obtained from the other by a series of elementary row operations. In example 1.2.5,
1 1 3 2 2 2 3 9 0 0 4 3
1 1 3 0 4 4 3 9 0 0 4 3
1 1 3 0 4 4 0 6 9
0 4 3
1 1 3 0 4 4 0 0 15
0 4 9
Chapter 1
37
Theorem 1.2.7
If augmented matrices of two linear systems are row equivalent, then the two systems have the same set of solutions. Linear System X same solutions Linear System Y
row equivalent
Example 1.2.8
All augmented matrices in Example 1.2.5 are row equivalent.
1 1 3 2 2 2 3 9 0 0 4 3
1 1 3 0 4 4 3 9 0 0 4 3
1 1 3 0 4 4 0 6 9
0 4 3
1 1 3 0 4 4 0 0 15
0 4 9
So all systems of linear equations in Example 1.2.5 have the same solution.
x 2x 3x y + 2y + 9y + 3z + 2z = 0 = 4 = 3 (1) (2) (3)
x 3x
y + 4y + 9y
+ 3z 4z
= 0 = 4 = 3
x
Chapter 1
+ y 4y 6y
+ 3z 4z 9z
= 0 = 4 = 3
+ y 4y
+ 3z 4z 15z
= 0 = 4 = 9
Problem 1.2.9
To see why Theorem 1.2.7 is true, we only need to check that every elementary row operation applied to an augmented matrix will not change the solution set of the corresponding linear system. 1. Multiply a row by a nonzero constant 2. Interchange two rows 3. Add a multiple of one row to another
Chapter 1
40
Lets revise
1. A linear equation with two or more variables has infinitely many solutions. 2. A linear system has either no solution, exactly one solution, or infinitely many solutions. 3. Elementary row operations do not change the solution set of a linear system. 4. Two linear systems have the same solution set if their augmented matrices are row equivalent.
Chapter 1 Linear Systems & Gaussian Elimination 41