<< Chapter < Page Chapter >> Page >
This module is part of the collection, A First Course in Electrical and Computer Engineering . The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

We are now equipped to set up systems of linear equations as matrix- vector equations so that they can be solved in a standard way on a computer.Suppose we want to solve the equations from Example 1 from "Linear Algebra: Introduction" for x 1 and x 2 using a computer. Recall that Equations 1 and 2 from Linear Algebra: Introduction are

x 1 + x 2 = 85 x 1 1 . 2 = x 2 1 . 5 - 1 . 2

The first step is to arrange each equation with all references to x 1 in the first column, all references to x 2 in the second column, etc., and all constants on the right-hand side:

x 1 + x 2 = 85 0 . 3 x 1 - 1 . 2 x 2 = 0 .

Then the equations can be converted to a single matrix-vector equation. The coefficients form a matrix, keeping their same relative positions, and the variables and constants each form a vector:

1 1 0 . 3 - 1 . 2 x 1 x 2 = 85 0 .

Equation 3 is of the general form

A x = b

where in this case

A = 1 1 0 . 3 - 1 . 2 , x = x l x 2 , b = 85 0 .

Given any A R n × n and b R n , MATLAB can solve Equation 4 for x (as long as a solution exists). Key ideas in the solution process are the identity matrix and the inverse of a matrix.

When the matrix A is the 1 × 1 matrix a , the vector x is the l-vector x , and the vector b is the l-vector b , then the matrix equation A x = b becomes the scalar equation

a x = b .

The scalar a - 1 is the inverse of the scalar a , so we may multiply on both sides of Equation 6 to obtain the result

a - 1 ( a x ) = a - 1 b 1 x = a - 1 b .

We would like to generalize this simple idea to the matrix equation A x = b so that we can find an inverse of the matrix A , called A - 1 , and write

A - 1 ( A x ) = A - 1 b I x = A - 1 b .

In this equation the matrix I is the identity matrix

I = 1 0 0 ... 0 0 1 0 ... 0 0 0 1 ... 0 0 0 0 ... 1 .

It is clear that the identity matrix I and the inverse of a matrix, A - 1 , play a key role in the solution of linear equations. Let's study them in more detail.

The Matrix Identity. When we multiply a scalar by 1, we get back that same scalar. For this reason, the number 1 is called the multiplicative identity element. This may seem trivial, but the generalization to matrices is more interesting. The question is, is there a matrix that, when it multipliesanother matrix, does not change the other matrix? The answer is yes. The matrix is called the identity matrix and is denoted by I . The identity matrix is always square, with whatever size is appropriate for the matrix multiplication.The identity matrix has l's on its main diagonal and 0 ' s everywhere else. For example,

I 5 = [ 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 ] .

The subscript 5 indicates the size. In terms of the unit coordinate vectors e i , we can also write the n × n identity matrix as

I n = | | | e 1 e 2 ... e n | | | .

For any matrix A R n × p , we have

A = I n A .

For p = 1 , we obtain the following special form for any vector x R n :

x = I n x .

This last equation can be written as the sum

x = i = 1 n x i e i .

This is a special case of one of the results you proved in Exercise 3 from "Linear Algebra: Matrices" . Figure 1 illustrates Equation 14 and shows how the vector x can be broken into component vectors x i e i , each of which lies in the direction of one coordinate axis. The values of the x i ' s are the coordinates of x , and their magnitudes are also the lengths of the component vectors.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A first course in electrical and computer engineering. OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10685/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A first course in electrical and computer engineering' conversation and receive update notifications?

Ask