Docsity

Matrix Equation Ax = b: Definition, Examples, and Properties, Slides of Operating Systems

Toggle sidebar
bg1
THE MATRIX EQUATION AX =B[1.4]
The matrix equation Ax =b
Definition: If Ais an m×nmatrix, with columns a1, ..., an,
and if xis in Rn, then the product of Aand x, denoted
by Ax is the linear combination of the columns of Ausing
the corresponding entries in xas weights; that is,
Ax = [a1, a2,··· , an]
x1
x2
.
.
.
xn
=x1a1+x2a2+···xnan
äAx is defined only if the number of columns of Aequals
the number of entries in x
E-2
Example:
Let A=
1−1 2
3 0 −2
0−2 3
and x=
2
−1
3
Then:
Ax = 2 ×
1
3
0
−
−1
0
−2
+ 3 ×
2
−2
3
=
9
0
11
E-3
The matrix equation Ax =b
äWe can now write a system of linear equations as a
vector equation involving a linear combination of vectors.
äFor example,
the system
x1+ 2x2−x3= 4
−5x2+3x3= 1 is equivalent to
x1"1
0#+x2"2
−5#+x3"−1
3#="4
1#
äThe linear combination on
the left-hand side is a matrix-
vector product Ax with:
A="1 2 −1
0−5 3 #, x =
x1
x2
x3
E-4
Docsity.com
pf3

Partial preview of the text

Download Matrix Equation Ax = b: Definition, Examples, and Properties and more Slides Operating Systems in PDF only on Docsity!

THE MATRIX EQUATION AX = B [1.4]

The matrix equation Ax = b

Definition: If A is an m×n matrix, with columns a 1 , ..., an, and if x is in Rn, then the product of A and x, denoted by Ax is the linear combination of the columns of A using the corresponding entries in x as weights; that is,

Ax = [a 1 , a 2 , · · · , an]

x 1 x 2 ... xn

= x 1 a 1 + x 2 a 2 + · · · xnan

ä Ax is defined only if the number of columns of A equals the number of entries in x

E-

Example:

Let A =

 and^ x^ =

 Then:

Ax = 2 ×

 + 3^ ×

The matrix equation Ax = b

ä We can now write a system of linear equations as a vector equation involving a linear combination of vectors.

ä For example, the system

x 1 + 2x 2 −x 3 = 4 − 5 x 2 +3x 3 = 1

is equivalent to

x 1

[

]

  • x 2

[

]

  • x 3

[

]

[

]

ä The linear combination on the left-hand side is a matrix- vector product Ax with:

A =

[

]

, x =

x 1 x 2 x 3

ä So: Can write above system as Ax = b with b =

[

]

ä Ax = b is called a matrix equation.

ä A is the coefficient matrix, b is the right-hand side

ä So we have 3 different ways of writing a linear system

  1. As a set of equations involving x 1 , ..., xn
  2. In an augmented matrix form
  3. In the form of the matrix equation Ax = b

ä It is important to realize that these are just 3 different ways to look at the same equations. Nothing has changed

  • the solution is the same. Just the notation is different.

E-

Existence of a solution

ä The equation Ax = b has a solution if and only if b can be written as a linear combination of the columns of A Theorem Let A be an m×n matrix. Then the following four statements are all mathematically equivalent.

  1. For each b in Rm^ , the equation Ax = b has a solution.
  2. Each b in Rm^ is a linear combination of the columns ofA.
  3. The columns of A span Rm
  4. A has a pivot position in every row.

E-

Proof

First: 1, 2, 3 are mathematically equivalent. They just restate the same fact which is represented by statement 3.

ä So, it suffices to show (for an arbitrary matrix A) that (1) and (4) are either both true or false.

ä Let U be an echelon form of A. Given b in Rm, we can row reduce the augmented matrix [Ab] to an augmented matrix [U d] for some d in Rm

[Ab] :→: [U d]

ä If statement (4) is true, then each row of U contains a pivot position, and there can be no pivot in the augmented column.

ä So Ax = b has a solution for any b, and (1) is true. ä If (4) is false, then the last row of U is all zeros. ä Let d be any vector with a 1 in its last entry. Then [U d] represents an inconsistent system. ä Since row operations are reversible, [U d] can be trans- formed back into the form [Ab]. ä The new system Ax = b is also inconsistent, and (1) is false.