1-Introduction to Systems of Linear Equations (1)
1-Introduction to Systems of Linear Equations (1)
❑ 16𝑥 − 8𝑦 = 4
◼ Eliminate 𝑥 from the second Eq. by adding −4 times the first Eq. to the second.
❑ 4𝑥 − 2𝑦 = 1
❑ 0 = 0
◼ The second Eq. does not impose any restrictions on 𝑥 and 𝑦 and hence can be omitted.
◼ Geometrically, this means that the lines corresponding to the two equations in the
original system coincide.
◼ To describe the solution set, solve the first equation for 𝑥 in terms of 𝑦 to obtain
1 1
❑ 𝑥= + 𝑦
4 2
◼ Then assign an arbitrary value 𝑡 (called a parameter)
1 1
❑ 𝑥= + 𝑡, 𝑦=𝑡
4 2
Electrical Engineering Department Dr. Ma'moun Abdullah Al-Smadi 12
Example
◼ Solve the linear system
❑ 𝑥 − 𝑦 + 2𝑧 = 5
❑ 2𝑥 − 2𝑦 + 4𝑧 = 10
❑ 3𝑥 − 3𝑦 + 6𝑧 = 15
◼ since the second and third equations are multiples of the first.
◼ Geometrically, this means that the three planes coincide and that
those values of 𝑥,𝑦, and 𝑧 that satisfy the first equation
◼ Assigning arbitrary values 𝑟 and 𝑠 (parameters) to ,𝑦, and 𝑧, and then
expressing the solution by the three parametric equations
◼ 𝑥 = 5 + 𝑟 − 2s, 𝑦 = 𝑟, 𝑧=𝑠
Electrical Engineering Department Dr. Ma'moun Abdullah Al-Smadi 13
Augmented Matrices
◼ The location of the +’𝑠, the 𝑥’𝑠, and the = ‘𝑠 can be abbreviated by writing only
the rectangular array of numbers.
◼ This is called the augmented matrix for the system.
◼ It must be written in the same order in each equation as the unknowns and the
constants must be on the right
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥n = 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥n = 𝑏2
⋮ ⋮ ⋱ ⋮ ⋮
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥n = 𝑏𝑚
◼ The basic method for solving a linear system is to replace the given
system by a new system that has the same solution set but which is
easier to solve.
◼ Since the rows of an augmented matrix correspond to the equations in
the associated system, new systems is generally obtained in a series of
steps by applying the following three types of operations to eliminate
unknowns systematically..
◼ The corresponding operations on the rows of the augmented matrix:
1. Multiply a row through by a nonzero constant.
2. Interchange two rows.
3. Add a constant times one row to another.
in the lower row occurs farther to the right than the leading 1 in the higher row.
◼ A reduced row echelon form is a row echelon form with additional property of
❑ each column contains a leading 1 has zeros everywhere else.
0 1 −2 0 1
1 0 0 4 1 0 0
0 0 0 1 3 , 0 0
0 1 0 7 , 0 1 0,
0 0 0 0 0 0 0
0 0 1 −1 0 0 1
0 0 0 0 0
◼ Matrices in row echelon form but not reduced row echelon form.
1 4 −3 7 1 1 0 0 1 2 6 0
0 1 6 2 , 0 1 0 , 0 0 1 −1 0
0 0 1 5 0 0 0 0 0 0 0 1
∗ ∗ 0 1 ∗ 0 0 0 ∗ ∗ 0 ∗
1 0 0 0 1 0 0 ∗ 1 0
∗ ∗ 0 0 0 1 0 0 ∗ ∗ 0 ∗
❑
0 1 0 0 , 0 1 0 ∗ , 0 1 , 0 0 0 0 1 0 ∗ ∗ 0 ∗
0 0 1 0 0 0 1 ∗ 0 0 0 0
0 0 0 0 0 1 ∗ ∗ 0 ∗
0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 ∗
◼ Suppose that the augmented matrix for a linear system in the unknowns
𝑥1, 𝑥2 , 𝑥3 𝑎𝑛𝑑 𝑥4 has been reduced by elementary row operations as
follow
1 0 0 0 3
0 1 0 0 −1
0 0 1 0 0
0 0 0 1 5
◼ Thus, the system has a unique solution, namely
❑ 𝑥1 = 3, 𝑥2 = −1, 𝑥3 = 0 𝑎𝑛𝑑 𝑥4 = 5 .
0 0 −2 0 7 12
2 4 −10 6 12 28
2 4 −5 6 −5 −1
◼ Step 1: Locate the leftmost column that does not consist entirely of zeros.
0 0 −2 0 7 12
2 4 −10 6 12 28 𝐿𝑒𝑓𝑡𝑚𝑜𝑠𝑡 𝑛𝑜𝑛𝑧𝑒𝑟𝑜 𝑐𝑜𝑙𝑢𝑚𝑛
2 4 −5 6 −5 −1
◼ Step 2: Interchange the top row with another row, to bring a nonzero entry
to top of the column found in Step1
2 4 −10 6 12 28
𝑇ℎ𝑒 1′ 𝑠𝑡 𝑎𝑛𝑑 2′ 𝑒𝑑 𝑟𝑜𝑤𝑠 𝑖𝑛 𝑡ℎ𝑒
0 0 −2 0 7 12
𝑝𝑟𝑒𝑐𝑒𝑑𝑖𝑛𝑔 𝑚𝑎𝑡𝑟𝑖𝑥 𝑤𝑒𝑟𝑒 𝑖𝑛𝑡𝑒𝑟𝑐ℎ𝑎𝑛𝑔𝑒𝑑.
2 4 −5 6 −5 −1
◼ Step 3: If the entry that is now at the top of the column found in Step1 is a,
multiply the first row by 1/a in order to introduce a leading 1.
1 2 −5 3 6 14 𝑇ℎ𝑒 1𝑠𝑡 𝑟𝑜𝑤 𝑜𝑓 𝑡ℎ𝑒 𝑝𝑟𝑒𝑐𝑒𝑑𝑖𝑛𝑔
0 0 −2 0 7 12
𝑚𝑎𝑡𝑟𝑖𝑥 𝑤𝑎𝑠 𝑚𝑢𝑙𝑡𝑖𝑝𝑙𝑖𝑒𝑑 𝑏𝑦 1/2.
2 4 −5 6 −5 −1
◼ Step 4: Add suitable multiples of the top row to the rows below so that all
entries below the leading 1 become zeros
1 2 −5 3 6 14 −2 𝑡𝑖𝑚𝑒𝑠 𝑡ℎ𝑒 1𝑠𝑡 𝑟𝑜𝑤 𝑜𝑓 𝑡ℎ𝑒
0 0 −2 0 7 12
𝑝𝑟𝑒𝑐𝑒𝑑𝑖𝑛𝑔 𝑚𝑎𝑡𝑟𝑖𝑥 𝑤𝑎𝑠 𝑎𝑑𝑑𝑒𝑑 𝑡𝑜 𝑡ℎ𝑒 3𝑟𝑑 𝑟𝑜𝑤.
0 0 5 0 −17 −29
◼ Step 5: Now cover the top row in the matrix and begin again with Step1
applied to the submatrix that remains. Continue in this way until the
entire matrix is in row-echelon form
1 2 −5 3 6 14
𝐿𝑒𝑓𝑡𝑚𝑜𝑠𝑡 𝑛𝑜𝑛𝑧𝑒𝑟𝑜
0 0 −2 0 7 12
𝑐𝑜𝑙𝑢𝑚𝑛 𝑖𝑛 𝑡ℎ𝑒 𝑠𝑢𝑏𝑚𝑎𝑡𝑟𝑖𝑥
0 0 5 0 −17 −29
1 2 −5 3 6 14 𝑇ℎ𝑒 1𝑠𝑡 𝑟𝑜𝑤 𝑖𝑛 𝑡ℎ𝑒 𝑠𝑢𝑏𝑚𝑎𝑡𝑟𝑖𝑥
7
0 0 1 0 −2 −6 𝑤𝑎𝑠 𝑚𝑢𝑙𝑡𝑖𝑝𝑙𝑖𝑒𝑑 𝑏𝑦 − 1/2 𝑡𝑜
0 0 5 0 −17 −29 𝑖𝑛𝑡𝑟𝑜𝑑𝑢𝑐𝑒 𝑎 𝑙𝑒𝑎𝑑𝑖𝑛𝑔 1.
1 2 −5 3 6 14
7
0 0 1 0 − −6 𝐿𝑒𝑓𝑡𝑚𝑜𝑠𝑡 𝑛𝑜𝑛𝑧𝑒𝑟𝑜 𝑐𝑜𝑙𝑢𝑚𝑛 𝑖𝑛
2
1 𝑡ℎ𝑒 𝑛𝑒𝑤 𝑠𝑢𝑏𝑚𝑎𝑡𝑟𝑖𝑥
0 0 0 0 1
2
◼ Adding −2 times the first row to the second and fourth rows gives
1 3 −2 0 2 0 0
0 0 −1 −2 0 −3 −1
0 0 5 10 0 15 5
0 0 4 8 0 18 6
◼ Multiplying the second row by −1 and then adding −5 times the new
second row to the third row and −4 times the new second row to the
fourth row gives
1 3 −2 0 2 0 0
0 0 1 2 0 3 1
0 0 0 0 0 0 0
0 0 0 0 0 6 2
1 3 −2 0 2 0 0
2 6 −5 −2 4 −3 0
0 0 5 10 0 15 0
2 6 0 8 4 18 0
❑ 𝑥3 + 2𝑥4 = 0 ⇒ 𝑥3 = −2𝑥4
❑ 𝑥6 = 0
1 −3 7 2 5
0 1 2 −4 1
0 0 1 6 9
0 0 0 0 1
❑ The last row corresponds to the equation