Holik in everything!

Jihoon's Life story.

Archive for the ‘math’ tag

Linear Equations in Linear Algebra (2)

View Comments

Row Reduction and Echelon Forms

Given a matrix, a leading entry of a row refers to the leftmost nonzero entry in a nonzero row.

Echelon form and reduced echelon form

A rectangular matrix is in echelon form (or row echelon form) if it has the following three properties.

  • All nonzero rows are above any rows of all zeros.
  • Each leading entry of a row is in a column to the right of the leading entry of the row above it.
  • All entries in a column below a leading entry are zeros.

If a matrix in echelon form satisfies the following additional conditions, then it is in reduced echelon form (or reduced row echelon form).

  • The leading entry in each nonzero row is 1.
  • Each leading 1 is the only nonzero entry in its column.

Example)

</p>
<p>\begin{bmatrix}</p>
<p>2 & -3 & 2 & 1 \\</p>
<p>0 & 1 & -4 & 8 \\</p>
<p>0 & 0 & 0 & 5/2</p>
<p>\end{bmatrix}</p>
<p>

A matrix in echelon form

</p>
<p>\begin{bmatrix}</p>
<p>1 & 0 & 0 & 29 \\</p>
<p>0 & 1 & 0 & 16 \\</p>
<p>0 & 0 & 1 & 3</p>
<p>\end{bmatrix}</p>
<p>

A matrix in reduced echelon form

Theorem 1. Uniqueness of the Reduced Echelon Form

Each matrix is row equivalent to one and only one reduced echelon matrix.

Pivot Positions

A pivot position in a matrix A is a location in A that corresponds to a leading 1 in the reduced echelon form of A. A pivot column is a column of A that contains a pivot position.

A pivot is a nonzero number in a pivot position that is used as needed to create zeros via row operations.

The Row Reduction Algorithm

This algorithm produces a matrix in echelon form.

  1. Begin with the leftmost nonzero column. This is a pivot column. The pivot position is at the top.
  2. Select a nonzero entry in the pivot column as a pivot. If necessary, interchange rows to move this entry into the pivot position.
  3. Use row replacement operations to create zeros in all positions below the pivot.
  4. Cover (or ignore) the row containing the pivot position and cover all rows, if any, above it. Apply steps 1-3 to the submatrix that remains. Repeat the process until there are no more nonzero rows to modify.
  5. Beginning with the rightmost pivot and working upward and to the left, create zeros above each pivot. If a pivot is not 1, make it 1 by a scaling operation.

Example

Step 1. Pivot column is the leftmost column which contains {0, 3, 3}.

</p>
<p>\begin{bmatrix}</p>
<p>0 & 3 & -6 & 6 & 4 & -5 \\</p>
<p>3 & -7 & 8 & -5 & 8 & 9 \\</p>
<p>3 & -9 & 12 & -9 & 6 & 15</p>
<p>\end{bmatrix}</p>
<p>

Step 2. Interchange rows 1 and 3. Pivot is the ’3′ of row 1.

</p>
<p>\begin{bmatrix}</p>
<p>3 & -9 & 12 & -9 & 6 & 15 \\</p>
<p>3 & -7 & 8 & -5 & 8 & 9 \\</p>
<p>0 & 3 & -6 & 6 & 4 & -5</p>
<p>\end{bmatrix}</p>
<p>

Step 3. Add -1 times row 1 to row 2.

</p>
<p>\begin{bmatrix}</p>
<p>3 & -9 & 12 & -9 & 6 & 15 \\</p>
<p>0& 2 & -4 & 4 & 2 & -6 \\</p>
<p>0 & 3 & -6 & 6 & 4 & -5</p>
<p>\end{bmatrix}</p>
<p>

Step 4. Cover row 1 because it contains the pivot position. The next pivot is ’2′ of row 2 for step 2.

</p>
<p>\begin{bmatrix}</p>
<p>3 & -9 & 12 & -9 & 6 & 15 \\</p>
<p>0& 2 & -4 & 4 & 2 & -6 \\</p>
<p>0 & 0 & 0& 0 & 1 & 4</p>
<p>\end{bmatrix}</p>
<p>

Add -3/2 times the row 2 to the row 1 for step 3, and repeat the process until there are no more nonzero rows to modify.

Step 5. Create zeros above the rightmost pivot in row 3 by applying row 1 + (-6)*row 3 and row 2 + (-2)*row 3.

</p>
<p>\begin{bmatrix}</p>
<p>3 & -9 & 12 & -9 & 0 & -9 \\</p>
<p>0& 2 & -4 & 4 & 0 & -14 \\</p>
<p>0 & 0 & 0& 0 & 1 & 4</p>
<p>\end{bmatrix}</p>
<p>

Makes the next pivot 1. Scale the row 2 by 1/2.

</p>
<p>\begin{bmatrix}</p>
<p>3 & -9 & 12 & -9 & 0 & -9 \\</p>
<p>0& 1 & -2 & 2 & 0 & -7 \\</p>
<p>0 & 0 & 0& 0 & 1 & 4</p>
<p>\end{bmatrix}</p>
<p>

Create a zero above the pivot by adding 9 times row 2 to row 1.

</p>
<p>\begin{bmatrix}</p>
<p>3 & 0 & -6 & 9 & 0 & -72 \\</p>
<p>0& 1 & -2 & 2 & 0 & -7 \\</p>
<p>0 & 0 & 0& 0 & 1 & 4</p>
<p>\end{bmatrix}</p>
<p>

Scale row 1 to make the last pivot 1.

</p>
<p>\begin{bmatrix}</p>
<p>1 & 0 & -2 & 3 & 0 & -24 \\</p>
<p>0& 1 & -2 & 2 & 0 & -7 \\</p>
<p>0 & 0 & 0& 0 & 1 & 4</p>
<p>\end{bmatrix}</p>
<p>

Solutions of Linear Systems

Basic variables and free variables

Consider the following linear system.

</p>
<p>\begin{bmatrix}<br />
1&0&-5&1\\</p>
<p>0&1&1&4\\</p>
<p>0&0&0&0<br />
\end{bmatrix}</p>
<p>

The variables x_{1} and x_{2} corresponding to pivot columns in the matrix are called basic variables. The other variable, x_{3}, is called a free variable.

The above system has the following solution which gives an explicit description of all solutions. These solutions are called general solutions.

</p>
<p>\begin{array}{cc}</p>
<p>x_{1} = 1 + 5x_{3}\\</p>
<p>x_{2} = 4 – x_{3}\\</p>
<p>x_{3} $ is free$</p>
<p>\end{array}</p>
<p>

Existence and Uniqueness Questions

Theorem 2. Existence and Uniqueness Theorem

A linear system is consistent if and only if the rightmost column of the augmented matrix is not a pivot column – that is, if and only if an echelon form of the augmented matrix has no row of the form

[ 0 ... 0 b ] with b nonzero

If a linear system is consistent, then the solution set contains either (i) a unique solution, when there are no free variables, or (ii) infinitely many solutions, when there is at least one free variable.

Share

Written by Jihoon

September 14th, 2010 at 5:22 pm

Posted in Math

Tagged with , ,

Linear Equations in Linear Algebra (1)

View Comments

Systems of Linear Equations

Basic Notations

Linear equation

An equation that can be written in the following form

a_{1}x_{1} + a_{2}x_{2} ++ a_{n}x_{n} = b

A system of linear equations (linear system)

Collection of one or more linear equations involving the same variables

ex)

</p>
<p>\begin{array}{cc}</p>
<p>2x_{1} – x_{2} + 1.5x_{3} = 8 \\<br />
x_{1} – 4x_{3} = -7</p>
<p>\end{array}</p>
<p>

Solution of a linear system

A list (s_{1}, s_{2},, s_{n}) of numbers that makes each equation a true statement when the values s_{1},, s_{n} are substituted for x_{1},, x_{n} respectively.

Equivalent

Two linear systems are called equivalent if they have the same solution set.

Consistency and inconsistency

A linear system is consistent if it has either one or infinitely many solutions; a system is inconsistent if it has no solution.

Matrix Notations

Coefficient matrix and augmented matrix

Given the system

</p>
<p>\begin{array}{cc}</p>
<p>x_{1} – 2x_{2} + x_{3} = 0 \\</p>
<p>2x_{2} – 8x_{3} = 8 \\</p>
<p>-4x_{1} + 5x_{2} + 9x_{3} = -9</p>
<p>\end{array}</p>
<p>

the matrix

</p>
<p>\begin{bmatrix}<br />
1&-2&1\\</p>
<p>0&2&-8\\</p>
<p>-4&5&9<br />
\end{bmatrix}</p>
<p>

is called the coefficient matrix of the above system, and

</p>
<p>\begin{bmatrix}<br />
1&-2&1&0\\</p>
<p>0&2&-8&8\\</p>
<p>-4&5&9&-9<br />
\end{bmatrix}</p>
<p>

is called the augmented matrix of the system.

Solving a Linear System

The basic strategy to solve a linear system is to replace one system with an equivalent system that is easier to solve.

Elementary Row Operations

  1. (Replacement) Replace one row by the sum of itself and a multiple of another row.
  2. (Interchange) Interchange two rows.
  3. (Scaling) Multiply all entries in a row by a nonzero constant.

Given two matrices, if there is a sequence of elementary row operations that transforms one matrix into the other, they are row equivalent.

If the augmented matrices of two linear systems are row equivalent, then the two systems have the same solution set.

Existence and Uniqueness Questions

It is needed to determine that a particular linear system contains either no solution, one solution, or infinitely many solutions.

If the system has one or infinitely many solutions, the system is consistent. Otherwise, it is inconsistent.

Share

Written by Jihoon

September 14th, 2010 at 4:41 pm

Posted in Math

Tagged with , ,