Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Maxwell's equations wikipedia , lookup
Unification (computer science) wikipedia , lookup
Two-body problem in general relativity wikipedia , lookup
Equations of motion wikipedia , lookup
BKL singularity wikipedia , lookup
Perturbation theory wikipedia , lookup
Calculus of variations wikipedia , lookup
Schwarzschild geodesics wikipedia , lookup
Differential equation wikipedia , lookup
Computational electromagnetics wikipedia , lookup
1 โ METHODS OF SOLVING A LINEAR SYSTEM โ ECHELON FORM ๐ฅ + 3๐ฆ โ 2๐ง = 5 3๐ฅ + 5๐ฆ + 6๐ง = 7 2๐ฅ + 4๐ฆ + 3๐ง = 8 Consider the following linear system : There are several algorithms for solving a system of linear equations. 1. Elimination of variables โ no matrices Substitution: The simplest method for solving a system of linear equations is to repeatedly eliminate variables. 2. Row reduction (Gaussian elimination) โ Augmented matrix In row reduction, the linear system is represented as an augmented matrix: 1 [3 2 3 5 4 โ2 5 6 | 7] 3 8 This matrix is then modified using elementary row operations until it reaches reduced echelon form. There are three types of elementary row operations: Type 1: Interchange equations โ Swap the positions of two rows. Type 2: Multiply equation โ Multiply a row by a nonzero scalar. Type 3: Any of these equations can be replaced by a multiple of itself ± a multiple of another equation without changing the outcome โ Add to one row a scalar multiple of another. The augmented matrix produced always represents a linear system that is equivalent to the original. The following computation shows Gauss-Jordan elimination applied to the matrix above: Combine two at the time to eliminate one variable (for example ๐ฅ from two equations) and then combine these two to eliminate the second variable from one of them (for example ๐ฆ) ๐ฅ + 3๐ฆ โ 2๐ง = 5 3๐ฅ + 5๐ฆ + 6๐ง = 7 2๐ฅ + 4๐ฆ + 3๐ง = 8 1 [3 2 [๐ 2 โ 3๐ 1 ] ~ 3 โ2 5 5 6 | 7] 4 3 8 [๐ 2 โ 2๐ 3 ] ~ ~ ๐ฅ + 3๐ฆ โ 2๐ง = 5 โ2๐ง = โ4 โ2๐ฆ + 7๐ง = โ2 1 [0 0 3 0 โ2 ๐ฅ + 3๐ฆ โ 2๐ง = 5 โ4๐ฆ + 12๐ง = โ8 2๐ฅ + 4๐ฆ + 3๐ง = 8 1 [0 2 3 โ4 4 [๐ 3 โ 2๐ 1 ] โ2 5 12 | โ8] 3 8 ๐ 2 = ๐ 3 ๐ 3 = โ๐ 2 โ2 5 โ2| โ4] 7 โ2 ~ ~ ~ ~ ๐ฅ + 3๐ฆ โ 2๐ง = 5 โ4๐ฆ + 12๐ง = โ8 โ2๐ฆ + 7๐ง = โ2 1 [0 0 3 โ4 โ2 โ2 5 12 | โ8] 7 โ2 ๐ฅ + 3๐ฆ โ 2๐ง = 5 โ2๐ฆ + 7๐ง = โ2 2๐ง = 4 1 [0 0 3 โ2 0 โ2 5 7 | โ2] 2 4 The last matrix is in reduced row echelon form โ augmented matrix with the zeroes in the bottom left corner. It represents the solution of the system of three linear equations. ๐=๐ ๐ฒ=๐ ๐ = โ๐๐ (โ2y + 2 โ 7 = โ2 ) (๐ฅ + 3 โ 8 โ 2 โ 2 = 5) 2 โ THE MEANING OF THE SOLUTIONS THE A LINEAR SYSTEM MAY BEHAVE IN ANY OF THREE POSSIBLE WAYS 1. The system has a single unique solution. 2. The system has no solution. 3. The system has infinitely many solutions. Geometric interpretation 2โD โ For a system involving two variables (x and y), each linear equation determines a line on the xy-plane. Because a solution to a linear system must satisfy all of the equations, the solution set is the intersection of these lines, and is hence either unique solution: a single point no solution: the empty set infinitely many solutions: a line parallel lines The slopes are equal โ no common points coincident lines The slopes are equal โ one common point โ all points are common 3โD โ For three variables, each linear equation determines a plane in 3-D space, and the solution set is the intersection of these planes. Thus the solution set may be a plane, a line, a single point, or the empty set. โ For n variables, each linear equation determines a hyperplane in n-D space. The solution set is the intersection of these hyperplanes, which may be a flat of any dimension. A ๐ × ๐ homogeneous system of linear equations has a unique solution (the trivial solution) if and only if its determinant is non-zero. If this determinant is zero, then the system has an infinite number of solutions. 3 โ SOLUTIONS OF A LINEAR SYSTEM USING AUGMENTED MATRIX IN ECHELON FORM using row reduction (Gaussian elimination) for augmented matrix to get echelon form System a11x1 + a12x2 + a13x3 = b1 a 21x1 + a 22x2 + a23x3 = b2 a 31x1 + a32x2 + a33x3 = b3 Augmented form of the matrix of coefficients of the system ๐11 ๐ [ 21 ๐31 ๐12 ๐22 ๐32 ๐13 ๐1 ๐23 | ๐2 ] ๐33 ๐3 Echelon form ๐ [0 0 ๐ ๐ ๐ ๐ โ ๐ฆ&๐ฅ ๐ ๐ | ๐] โ ๐ง = โ 0 โ ๐ ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐: ๐๐ ๐๐๐๐๐๐๐๐: ๐ โ โ 0 โ ๐ง =โ โ ๐ฆ&๐ฅ (๐ ๐๐๐ฆ ๐๐ ๐๐๐ฆ ๐๐๐ก ๐๐ 0) โ = 0 ๐๐๐ ๐ โ 0 โ 0 โ ๐ง = ๐ โ 0 ๐คโ๐๐โ ๐๐ ๐๐๐ ๐ข๐๐ โ ๐กโ๐๐๐ ๐๐ ๐๐ ๐ ๐๐๐ข๐ก๐๐๐ ๐ ๐ฆ๐ ๐ก๐๐ ๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐๐๐: โ = 0 ๐๐๐ ๐ = 0 โ ๐ง ๐๐๐ ๐๐ ๐๐๐ฆ ๐๐ข๐๐๐๐, ๐ ๐ ๐ค๐ ๐ค๐๐๐ก๐: ๐ง = ๐ก ๐คโ๐๐๐ ๐ก โ ๐ ๐ฅ = ๐ฅ(๐ก) ๐ฆ = ๐ฆ(๐ก) ๐ง=๐ก Parametric representation of infinitely many solutions is not unique. We expressed the variable which was not free (z) in terms of the parameter. We eliminated from row 3 variables x and y. It does not have to be that way. We could eliminate z and y to get x, and then express y and z. One can solve for any of the variables. Of course, the solution set will look different. However, it will still represent the same solutions. ๐ข๐๐๐๐ข๐ ๐ ๐๐๐ข๐ก๐๐๐: 1 1 [0 2 0 0 ๐๐ ๐ ๐๐๐ข๐ก๐๐๐: 1 [0 0 ๐๐๐๐๐๐๐ก๐๐๐ฆ ๐๐๐๐ฆ ๐ ๐๐๐ข๐ก๐๐๐๐ : 1 1 [0 2 0 0 1 1 2| 2] โ ๐ง = 2 3 6 1 1 1 2 2| 2] โ ๐ง โ 0 = 3 0 0 3 ๐ฆ = โ1 ๐ฅ = 0 ๐(0, โ1,2) ๐๐๐ ๐ข๐๐ 1 1 ๐งโ0=0 โ ๐ง =๐ก๐๐ 2| 2] โ โ ๐ก๐๐ข๐ ๐๐๐ ๐๐๐ฆ ๐ง 0 0 ๐ฆ =1โ๐ก ๐ฅ=0 4 โ INTERSECTION OF TWO or MORE PLANES