3 Linear Programming 3 1 Linear Algebra Square










































- Slides: 42

3. Linear Programming 3. 1 Linear Algebra

Square n-by-n Matrix

Solution of Simultaneous Linear Equations

Cramer’s Theorem (Solution of Linear Systems by Determinants) If a linear system of n equations in the same number of unknowns x 1, … , xn has a nonzero coefficient determinant D = det A, the system has precisely one solution. This solution is given by the formulas where Dk is the determinant obtained from D by replacing in D the kth column by the column with the entries b 1, … , bn.

Gaussian Elimination Forward Elimination pivot 2 u+ v+ w= 1 4 u+ v = -2 -2 u + 2 v + w = 7 Backward Substitution (1) (2) (3) Step 1: equation (2) +(– 2) x equation (1) Step 2: equation (3) + (+1) x equation (1) 2 u+ v+ w = 1 (4) v -2 w =-4 (5) pivot (-1) 3 v+2 w = 8 (6) Step 3: equation (6) + (+3) x equation (5) 2 u+ v+ w = 1 (7) - v - 2 w = -4 (8) - 4 w = -4 (9) w=1 v=2 u = -1

Elementary Transformation of Matrices – (i)

Elementary Transformation of Matrices – (ii)

Elementary Transformation of Matrices – (iii)

Elementary Row Operation Any row manipulation can be accomplished by pre-multiplication of elementary matrices!


Elementary Column Operation Any column manipulation can be accomplished by post-multiplication of elementary matrices!

Gaussian Elimination = Triangular Factorization


Upper triangular Lower triangular

Conclusions


Implications

Row Exchange

Elimination with Row Exchange

Round Off Error

Singular matrix

Second Point: Even a well-conditioned matrix can be ruined by a poor algorithm.

If a calculator is capable of keeping only 3 digits, then Gaussian elimination gives the wrong answer!!! 0

Third Point A computer program should compare each pivot with all the other possible pivots in the same column. Choosing the largest of these candidates, and exchanging the corresponding rows so as to make this largest value pivot, is called partial pivoting.

Solution of m Equations with n Unknowns (m<n) – Example 1 pivot

Echelon Form

Solution of m Equations with n Unknowns (m<n) – Example 2 pivot

CONCLUSION To any m-by-n matrix A there corresponds 1. a square (i. e. , m-by-m) permutation matrix R, 2. a square (i. e. , m-by-m) lower triangular matrix L with unit diagonal, and 3. an m-by-n echelon matrix U, such that RA = LU

Homogeneous Solution for Example 1 pivot



Subspace A subspace of a vector space is a subset that satisfies two requirements: 1. If we add any two vectors x and y in the subspace, the sum x+y is still in the subspace. 2. If we multiply any vector x in the subspace by any scalar c, the multiple cx is still in the subspace. Note that the zero vector belongs to every subspace.

Conclusions • Every homogeneous system Ax=0, if it has more unknowns than equations (n>m), has infinitely many nontrivial solutions. • The dimension of nullspace is the number of free variables (which is larger than or equal to n-m>0). • The nullspace is a subspace of Rⁿ.

Inhomogeneous Solution of Example 1


Conclusion The system Ax=b is solvable if and only if the vector b can be expressed as a linear combination of the columns of A, i. e.


Conclusions

homogeneous solution Ax=0 particular soln

CONCLUSIONS • Suppose the m-by-n matrix A is reduced by elementary operations and row exchanges to a matrix U in echelon form. • Let there be r nonzero pivots; the last m-r rows of U are zero. Then there will be r basic variables and n-r free variables, corresponding to the columns of U with and without pivots respectively. • Note that

CONCLUSIONS • The nullspace, formed of solutions to Ax=0, has the n-r free variables as the independent parameters, i. e. , its dimension is also n-r. If r=n ( ), there are no free variables and the null space contains only x=0. • Solution always exists for every right side b iff r=m<n. In this case, since U has no zero rows, Ux=c can be solved by back-substitution.

CONCLUSIONS • If r<m<n, then U will have m-r zero rows and there are m-r constraints on b in order for Ax=b to be solvable. If the particular solution exists, then every other solution differs from it by a vector in the nullspace of A. • The number r is called the rank of the matrix A.
LINEAR PROGRAMMING Linear Programming Linear programming is a
LINEAR PROGRAMMING Pengertian Linear Programming LP Linear Programming
Linear Algebra Chapter 6 Linear Algebra with Applications
Linear Algebra A gentle introduction Linear Algebra has
Linear Algebra and Matrices Linear Algebra and Matrices
Linear programming integer linear programming mixed integer linear
Linear programming integer linear programming mixed integer linear
1 Linear Equations in Linear Algebra LINEAR INDEPENDENCE
1 Linear Equations in Linear Algebra LINEAR INDEPENDENCE
Relational Algebra Relational Algebra Relational algebra was defined
Relational Algebra Lecture 4 Relational Algebra Relational Algebra
Relational Algebra Relational Algebra Relational algebra was defined
BOOLEAN ALGEBRA Boolean Algebra 1 BOOLEAN ALGEBRA REVIEW
Completing the Square Objective To complete a square
Our Town Square Whyville Square Growth 1200day numedeon
Squares Square Roots Perfect Squares Lesson 12 Square
2 square tests 2 square goodnessoffit Freq Subject
4 6 Square Roots 4 6 Estimating Square
Lesson 1 Square and Square Roots Cubes and
Survival Analysis From Square One to Square Two
Solving Quadratic Equations Square Root Method The square
Factoring Polynomials by Completing the Square Perfect Square
SECTION 7 1 SQUARE AND SQUARE ROOTS Copyright
Common Square Dance Terms Square the Set Homewhere
and Square Roots 3 8 Squares and Square
Cantebury Square Apartments In Troy MI Cantebury Square
Factoring Perfect Square Trinomial A Perfect Square Trinomial
Perfect Square Roots Approximating NonPerfect Square Roots 8
FOUR SQUARE QUESTIONS 1 4 Square Questions B
Balancing Rations Pearson Square Pearson Square n n
Teddy Roosevelt and the Square Deal Square Deal
2 Chi Square Test X Chi Square is
Punnett Square Notes 1 A Punnett Square is
Unit 2 SIMPLIFY SQUARE ROOTS Simplifying Square Roots
Teddy Roosevelts Square Deal Theodore Roosevelt Square Deal
CENTRAL SQUARE REVISITED MAKING IMPROVEMENTS AT CENTRAL SQUARE
Squares Square Roots Perfect Squares Lesson 12 Square
Chapter 3 Square and Square Roots Class VIII
WELCOME TO LONDON Trafalgar Square Trafalgar Square There
1 6 Square Root and Completing the Square
Cervantes Square is the main square of Alcal
Square Roots Knowing your square root Take a