• Tidak ada hasil yang ditemukan

Handout CIV 208 Analisis Numerik CIV 208 P4 5 6

N/A
N/A
Protected

Academic year: 2017

Membagikan "Handout CIV 208 Analisis Numerik CIV 208 P4 5 6"

Copied!
45
0
0

Teks penuh

(1)

Respect, Professionalism, & Entrepreneurship

Metode Eliminasi

Pertemuan – 4, 5, 6

Mata Kuliah : Analisis Numerik Kode : CIV - 208

(2)

Respect, Professionalism, & Entrepreneurship

Sub Pokok Bahasan :

Eliminasi Gauss

Eliminasi Gauss JordanDekomposisi LU

(3)

Respect, Professionalism, & Entrepreneurship

This topic deals with simultaneous linear algebraic equations that can be represented generally as

where the a’s are constant coefficients and the b’s are constants.

The technique described in this chapter is called Gauss elimination because it involves combining equations to eliminate unknowns.

a11.x1 + a12.x2 + … + a1n.xn = b1 a21.x1 + a22.x2 + … + a2n.xn = b2

……

(4)

Respect, Professionalism, & Entrepreneurship

Before proceeding to the computer methods,

we will describe several methods that are appropriate for solving small (n≤3) sets of simultaneous equations and that do not require a computer.

These are the graphical method, Cramer’s

(5)

Respect, Professionalism, & Entrepreneurship

For example : solve

3x1 + 2x2 = 18 - x1 + 2x2 = 2

The solution is the

intersection of the two lines

at x1=4 and x2=3.

This result can be checked by

substituting these values into the original equations to yield

(6)

Respect, Professionalism, & Entrepreneurship

Another method is use elimination

The elimination of unknowns by combining

equations is an algebraic approach that can be illustrated for a set of two equations:

(7)

Respect, Professionalism, & Entrepreneurship

• Eq. (1) might be multiplied by a21and Eq. (2)

by a11to give

a11a21x1+a12a21x2=b1a21 (3) a21a11x1+a22a11x2=b2a11 (4)

Subtracting Eq. (3) from Eq. (4) will, therefore,

eliminate the x1 term from the equations to yield

(8)

Respect, Professionalism, & Entrepreneurship

which can be solved for

x2 can then be substituted into Eq. (1), which can be

solved for

example : Use the elimination to solve

(9)
(10)

Respect, Professionalism, & Entrepreneurship

Gauss Elimination

In the previous section, the elimination of unknowns was used to solve

a pair of simultaneous equations. The procedure consisted of two steps: 1. The equations were manipulated to eliminate one of the unknowns from the equations. The result of this elimination step was that we had one equation with one unknown.

2. Consequently, this equation could be solved directly and the result back-substituted into one of the original equations to solve for the remaining unknown.

This basic approach can be extended to large sets of equations by

developing a systematic scheme or algorithm to eliminate unknowns and to back-substitute.

(11)

Respect, Professionalism, & Entrepreneurship

The Gauss Elimination is designed to solve a

general set of n equations:

As was the case with the solution of two

equations, the technique for n equations

consists of two phases: elimination of unknowns and solution through back substitution.

a11.x1 + a12.x2 + … + a1n.xn = b1 (5.a)

a21.x1 + a22.x2 + … + a2n.xn = b2 (5.b) ……

(12)

Respect, Professionalism, & Entrepreneurship

The initial step will be to eliminate the first unknown, x1, from the second through the nth equations.

To do this, multiply Eq. (5.a) by a21/a11to give

Subtracted from Eq. (5.b) to give

(13)

Respect, Professionalism, & Entrepreneurship

The procedure is then repeated for the

remaining equations.

For instance, Eq. (5.a) can be multiplied by

a31/a11and the result subtracted from the third equation.

Repeating the procedure for the remaining

(14)

Respect, Professionalism, & Entrepreneurship

• Eq. (5.a) is called the pivot equation and a11 is

called the pivot coefficient or element

a11.x1 + a12.x2 + a13.x3 + …. + a1n.xn = b1 (6.a) a/

22.x2 + a/23.x3 + …. + a/2n.xn = b/2 (6.b)

a/

32.x2 + a/33.x3 + …. + a/3n.xn = b/3 (6.c)

……… a/

(15)

Respect, Professionalism, & Entrepreneurship

Now repeat the above to eliminate the

second unknown from Eq. (6.c) through (6.d).

To do this multiply Eq. (6.b) by a’32/a’22, and

subtract the result from Eq. (6.c).

Perform a similar elimination for the

(16)

Respect, Professionalism, & Entrepreneurship

The procedure can be continued using the

remaining pivot equations.

The final manipulation in the sequence is to

use the (n−1)th equation to eliminate the xn−1term from the nth equation.

a11.x1 + a12.x2 + a13.x3 + …. + a1n.xn = b1

a/

22.x2 + a/23.x3 + …. + a/2n.xn = b/2

a//

33.x3 + …. + a//3n.xn = b//3

………

a//

(17)

Respect, Professionalism, & Entrepreneurship

now solve for xn :

This result can be back-substituted into the

(18)

Respect, Professionalism, & Entrepreneurship

The procedure, which is repeated to evaluate

(19)
(20)

Respect, Professionalism, & Entrepreneurship

Example 1

Use Gauss elimination to solve x1 − 2x2 + 2x3= 1

2x1 + x2 − 3x3= −3

(21)

Respect, Professionalism, & Entrepreneurship

Gauss-Jordan Elimination

The Gauss-Jordan method is a variation of

Gauss elimination.

The major difference is that when an unknown

is eliminated in the Gauss-Jordan method, it is eliminated from all other equations rather

than just the subsequent ones.

In addition, all rows are normalized by dividing

them by their pivot elements.

Thus, the elimination step results in an

identity matrix rather than a triangular matrix

Consequently, it is not necessary to employ

(22)

Respect, Professionalism, & Entrepreneurship

Example 2

Use Gauss-Jordan elimination to solve

x1 − 2x2 + 2x3= 1 2x1 + x2 − 3x3= −3

−3x1 + x2 − x3 = 4

(23)

Respect, Professionalism, & Entrepreneurship

LU Decomposition

As described in previous lesson, Gauss elimination is designed to solve systems of linear algebraic

equations,

[A]{X}={B} (1)

(24)

Respect, Professionalism, & Entrepreneurship

LU decomposition methods separate the

time-consuming elimination of the matrix [A] from the manipulations of the right-hand side {B}.

Thus, once [A] has been “decomposed,”

multiple right-hand-side vectors can be evaluated in an efficient manner.

Interestingly, Gauss elimination itself can be

(25)

Respect, Professionalism, & Entrepreneurship

Equation (1) can be rearranged to give

[A]{X}−{B}=0 (2)

Suppose that Eq. (2) could be expressed as an upper triangular system:

(3)

Equation (3) can also be expressed in matrix notation and rearranged to give

(26)

Respect, Professionalism, & Entrepreneurship

Assume that there is a lower diagonal matrix

with 1’s on the diagonal, (5)

That has the property that when Eq. (4) is

(27)

Respect, Professionalism, & Entrepreneurship

If this equation holds, it follows from the rules

for matrix multiplication that

[L][U]=[A] (7)

and

(28)
(29)

Respect, Professionalism, & Entrepreneurship

Gauss elimination can be used to decompose [A] into [L] and [U]. For example :

(9)

The first step in Gauss elimination is to multiply row 1 by the factor

and subtract the result from the second row to eliminate a21.

(30)

Respect, Professionalism, & Entrepreneurship

Similarly, row 1 is multiplied by

And the result subtracted from the third row to eliminate a31The final step is to multiply the modified second row by

and subtract the result from the third row to eliminate a’32

11 31 31

a a

f

22 32 32

a a f

(31)

Respect, Professionalism, & Entrepreneurship

• The value of f21, f31, f32 actually are the

element of [L].

(32)

Respect, Professionalism, & Entrepreneurship

Example 1

Solve the equation below, using LU

(33)

Respect, Professionalism, & Entrepreneurship

Crout Decomposition

An alternative approach involves a [U]

matrix with 1’s on the diagonal.

This is called Crout decomposition.

The Crout decomposition approach

generates [U] and [L] by sweeping

(34)

Respect, Professionalism, & Entrepreneurship

Crout Decomposition can be implemented by the following concise series of formulas

(35)

Respect, Professionalism, & Entrepreneurship

Example 2

Repeat example 1 using Crout Decomposition

(36)

Respect, Professionalism, & Entrepreneurship

Gauss-Seidel Iteration

Iterative or approximate methods provide an

alternative to the elimination methods

The Gauss-Seidel method is the most

commonly used iterative method.

Assume that we are given a set of n

equations:

(37)

Respect, Professionalism, & Entrepreneurship

Suppose that for conciseness we limit ourselves to a 3×3 set of equations.

(38)

Respect, Professionalism, & Entrepreneurship

Now, we can start the solution process by choosing guesses for the x’s.

A simple way to obtain initial guesses is to assume that they are all zero.

These zeros can be substituted into Eq. (2.a), which can be used to calculate a new value for x1 = b1/a11.

Then, we substitute this new value of x1 along with the previous guess of zero for x3 into Eq. (2.b) to compute a

new value for x2.

(39)

Respect, Professionalism, & Entrepreneurship

Then we return to the first equation and

repeat the entire procedure until our solution converges closely enough to the true values.

Convergence can be checked using the

criterion

s j

i j i j i i,

a . %

x x x

   

100

(40)

Respect, Professionalism, & Entrepreneurship

Example 1

Use the Gauss-Seidel method to obtain the solution of the system

Recall that the true solution is x1=3, x2=−2.5, and x3=7.

(41)

Respect, Professionalism, & Entrepreneurship

Jacobi Iteration

An alternative approach, called Jacobi

iteration, utilizes a somewhat different tactic.

Rather than using the latest available x’s, this

technique uses Eq. (2) to compute a set of new x’s on the basis of a set of old x’s.

Thus, as new values are generated, they are

(42)

Respect, Professionalism, & Entrepreneurship

(43)

Respect, Professionalism, & Entrepreneurship

Example 2

Use the Jacobi Iteration method to obtain the solution of the system

Recall that the true solution is x1=3, x2=−2.5, and x3=7.

(44)

Respect, Professionalism, & Entrepreneurship

(45)

Respect, Professionalism, & Entrepreneurship

Homework

Referensi

Dokumen terkait

Kepatuhan mengkonsumsi obat diukur menggunakan kuesioner MMAS ( Morisky Medication Adherence Scale ) merupakan kuesioner yang digunakan untuk melihat

tidak mengikuti pembelajaran muatan lokal pencak silat yang berorientasi. pada

Kelemahan penelitian ini antara lain dikarenakan penelitian dilakukan tanpa follow up sehingga sulit untuk menetapkan mekanisme sebab akibat karena pengukuran

bahwa berdasarkan pertimbangan sebagaimana dimaksud dalam huruf a dan untuk melaksanakan ketentuan Pasal 4 ayat (4) Undang-Undang Nomor 19 Tahun 2003 tentang

PENGARUH MUATAN LOKAL PENCAK SILAT TERHAD AP RESPEK D AN PERCAYA D IRI SISWA SEKOLAH MENENGAH PERTAMA SUKABUMI.. Universitas Pendidikan Indonesia | repository.upi.edu |

Hasil penelitian ini menunjukkan bahwa Profitabilitas yang diproksikan dengan Return on Asset berpengaruh negatif signifikan terhadap Bond Rating, Leverage yang

Tujuan: Mengetahui hubungan antara status DM dengan status PAP pada pasien Hipertensi Metode: Penelitian ini merupakan penelitian analitik observasional dengan desain

Personal Protec Equipment Used : Safety Shoes, Glasses, Work Wear, And Health