Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

System of equations


Published on

  • Be the first to comment

  • Be the first to like this

System of equations

  1. 1. SYSTEM OF EQUATIONS<br />María Isabel Cadena Veloza<br />Numerical Methods<br />
  2. 2. CRAMER:<br />Cramer's rule is a process that helps you solve systems of linear equations having the same number of equations and variables. A method that applies the determinants.An example with all its steps.Solve the following system of equations:<br />      3x - 2y = 4       6x + y = 13<br />GRAPHICAL METHODS<br />
  3. 3. Find first determinant of the coefficients of the variables. You call the primary determinant and you name with a D.<br />D = (3) (a) - (6) (-2) = 15<br /> You notice that the determinant of the coefficient matrix gave us 15. Continue with the process. Look at the procedure for finding the determinant for the variable x.Replaces the column of coefficients in the variable x with the values of the constants. Then observed the process:<br />Dx = (4) (a) - (13) (-2) = 4 + 26 = 30<br />
  4. 4. To find the value of x, divide the value determined by the primary determinant Dx D. That is, calculateNow look at how you find the value of y.Dy is calculated using the determinant<br />D = (3) (13) - (6) (4) = 39-24 = 15<br />Note that in thisdecisivechange in thesecondcolumnbytheconstant.<br /> To find the value and divide the value found for D by the major determinant D. That is, calculate y = 1.<br />
  5. 5. Conclude that the solution of the system is (2,1). This means that the two lines represented by the original equations intersect at a point with coordinates (2,1). <br /> Remember that if the system is in intersecting lines call it consistent.<br />
  6. 6. ELIMINATION OF MYSTERIES: <br /> In The Method of Elimination (Addition and Subtraction), as its name says, we must remove one of the unknowns, are these, for example: x, y, z; this is done by multiplying one of the equations by any number, positive or negative (all components of the equation will be affected by this issue), and already making another addition with the unknown equation chosen excess must be removed (= 0).<br />
  7. 7. Example:<br />2x +3 y = 2 - -> equation 1x-2y = 8 - -> equation 2<br />SOLUTION:<br />to eliminate the unknown coefficients are reversed as shown equations acontinuación:<br />striking out “y“<br />2 (2x +3 y = 2)3 (x-2y = 8)<br />2 is the coefieciente of “y" two and the equation 3 is the ratio of “y" the one. being so:<br />4x +6 y = 43x-6y = 24<br />Now if you can remove the "y" and now clears the "x" to get its value<br />7x = 28x = 28 / 7x = 4<br />
  8. 8. replaced only after the value<br />"x" to any of the two equations to get the "y“<br />2x +3 y = 2<br />2 (4) +3 y = 2<br />8 +3 y = 2<br />3y = 2-8<br />3y =- 6<br />y =- 6 / 3<br />y = 2<br />
  9. 9. SIMPLE GAUSS<br /> It is quite hard to solve non-linear systems of equations, while linear systems are quite easy to study. There are numerical techniques which help to approximate nonlinear systems with linear ones in the hope that the solutions of the linear systems are close enough to the solutions of the nonlinear systems. We will not discuss this here. Instead, we will focus our attention on linear systems.<br /> For the sake of simplicity, we will restrict ourselves to three, at most four, unknowns. The reader interested in the case of more unknowns may easily extend the following ideas.<br /> Definition. The equation <br /> ax + by + cz + dw = h<br /> where a , b , c , d , and h are known numbers, while x , y , z , and w are unknown numbers, is called a linear equation . If h =0, the linear equation is said to be homogeneous . A linear system is a set of linear equations and a homogeneous linear system is a set of homogeneous linear equations. <br />
  10. 10. For example, <br />and <br />are linear systems, while <br />is a nonlinear system (because of y 2 ). The system <br />is an homogeneous linear system. <br />
  11. 11. Gaussian Elimination. Consider a linear system.<br />1.Construct the augmented matrix for the system;<br />2.Use elementary row operations to transform the augmented matrix into a triangular one;<br />3.Write down the new linear system for which the triangular matrix is the associated augmented matrix;<br />4.Solve the new system. You may need to assign some parametric values to some unknowns, and then apply the method of back substitution to solve the new system.<br />Let us summarize the procedure: <br />
  12. 12. Example. Use Gaussian elimination to solve the linear system <br />The associated augmented matrix is <br />We keep the first row and subtract the first row multiplied by 2 from the second row. We get <br />This is a triangular matrix. The associated system is <br />Clearly the second equation implies that this system has no solution. Therefore this linear system has no solution. <br />
  13. 13. This procedure differs from the Gaussian method in which when you delete an unknown, is removed from all remaining equations, ie, the preceding equation as well as pivot to follow.Solve the following set of equations<br />3.0 X1 - 0.1 X2 - 0.2 X3 = 7.8500 <br />0.1 X1 + 7.0 X2 - 0.3 X3 = - 19.3 <br /> 0.3 X1- 0.2 X2 + 10 X3 = 71.4000<br />GAUSS JORDAN<br />
  14. 14. First we express the coefficients and the vector of independent terms as an augmented matrix.<br /> The first line is normalized by dividing by 3 to obtain:<br />
  15. 15. The term X1 can be removed from the second row by subtracting 0.1 times the first in the second row. In a similar way, subtracting 0.3 times the first in the third line delete the term with the third row X1.<br /> Then, the second line is normalized by dividing by 7.00333:<br />
  16. 16. Reducing X2 terms in the first and third equation is obtained:<br /> The third line is normalized dividing by 10 010: <br />
  17. 17. Finally, the terms with X3 be reduced in the first and second equation to get: <br />Note that back substitution is required for the solution.<br />