• Tidak ada hasil yang ditemukan

Systems of Linear Algebraic Equations

N/A
N/A
Protected

Academic year: 2018

Membagikan "Systems of Linear Algebraic Equations"

Copied!
45
0
0

Teks penuh

(1)

SISTEM PERSAMAAN LINEAR

Systems of Linear Algebraic Equations

(2)

http://istiarto.staff.ugm.ac.id

Sistem Persamaan Linear

2

q 

Acuan

q  Chapra, S.C., Canale R.P., 1990, Numerical Methods for Engineers,

2nd Ed., McGraw-Hill Book Co., New York.

(3)

http://istiarto.staff.ugm.ac.id

Sistem Persamaan Linear

3

q 

Serangkaian n persamaan linear:

n n

nn n

n

n n

n n

c x a x

a x a

c x a x

a x a

c x a x

a x a

= +

+ +

= +

+ +

= +

+ +

... .

. .

... ...

2 2 1 1

2 2

2 22 1

21

1 1

2 12 1

11

(4)

http://istiarto.staff.ugm.ac.id

Metode Penyelesaian

q 

Penyelesaian

q  Grafis

q  Cramer

q  Eliminasi

q 

Penyelesaian langsung

q  Eliminasi Gauss

q  Gauss-Jordan

q 

Iteratif

q  Jacobi

q  Gauss-Seidel

q  Successive Over Relaxation

4

(5)

http://istiarto.staff.ugm.ac.id

Metode Grafis

5

x2 = …

x = …

x

2

(6)

http://istiarto.staff.ugm.ac.id

Metode Grafis

6

x

2

x

1

x

2

x

1

x

2

x

1

ill-conditioned system

singular system

singular system

sejajar berimpit

(7)

http://istiarto.staff.ugm.ac.id

Metode Cramer

7

q 

Variabel tak diketahui, x

i

, merupakan perbandingan dua determinan

matriks

q  Penyebut : determinan, D, matriks koefisien sistem persamaan

q  Pembilang : determinan matriks koefisien sistem persamaan seperti penyebut,

namun koefisien kolom ke i diganti dengan koefisien ci

q 

Contoh

q  3 persamaan linear

3 3

33 2

32 1

31

2 3

23 2

22 1

21

1 3

13 2

12 1

11

c x

a x

a x a

c x

a x

a x a

c x

a x

a x a

= +

+

= +

+

= +

(8)

http://istiarto.staff.ugm.ac.id

Metode Cramer

8

det

(9)

http://istiarto.staff.ugm.ac.id

Determinan Matriks

9

q 

Matriks bujur sangkar: n

×

n

q 

Mencari determinan matriks

q  Hitungan manual

q  MSExcel, dengan fungsi =MDETERM()

q 

Contoh hitungan determinan matriks 2

×

2 dan 3

×

3

[ ]

⎥

⎦ ⎤ ⎢

⎣ ⎡ = =

22 21

12 11

a a

a a

A A

[ ]

⎥ ⎥ ⎥

⎦ ⎤

⎢ ⎢ ⎢

⎣ ⎡

= =

33 32

31

23 22

21

13 12

11

a a

a

a a

a

a a

a

(10)

http://istiarto.staff.ugm.ac.id

Determinan Matriks

10

21 12 22

11 22

21

12 11

det a a a a

a a

a a

D = A = =

(

22 33 23 32

)

12

(

21 33 23 31

)

13

(

21 32 22 31

)

11

32 31

22 21

13 33

31

23 21

12 33

32

23 22

11

33 32

31

23 22

21

13 12

11

det

a a a

a a a

a a

a a a

a a

a a

a a

a a

a a

a

a a

a a

a

a a

a

a a

a

a a

a

a a

a

D

+

− −

=

+

= =

(11)

http://istiarto.staff.ugm.ac.id

Metode Cramer

11

q 

Contoh: 3 persamaan linear

⎪ det

(12)

http://istiarto.staff.ugm.ac.id

Metode Cramer

12

059 . 631 det = A1 = 353 . 210

059 . 631

det det

1 = = =

A A1

x 2.5

353 . 210

883 . 525 det

det

2 = −

353 . 210

471 . 1472

det det

3 = = =

A A

3

(13)

http://istiarto.staff.ugm.ac.id

Metode Eliminasi

13

q 

Contoh: 2 persamaan linear

(14)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

14

q 

Strategi

q  Forward elimination

q  Back substitution

q 

Contoh

q  3 persamaan linear

3 3

33 2

32 1

31

2 3

23 2

22 1

21

1 3

13 2

12 1

11

c x

a x a x a

c x

a x a x a

c x

a x a x a

= +

+

= +

+

= +

+ (1)

(2)

(15)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

15 q 

Forward elimination #1

q  Hilangkan x1 dari pers. kedua dan ketiga dengan operasi perkalian koefisien dan

pengurangan dengan pers. pertama.

pivot equation pivot coefficient

(1)

(2')

(16)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

16

q 

Forward elimination #2

q  Hilangkan x2 dari pers. ketiga dengan operasi perkalian koefisien dan

pengurangan dengan pers. kedua.

pivot equation pivot coefficient

(17)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

17

q 

Back substitution

q  Hitung x3 dari pers. (3''), hitung x2 dari pers. (2’), dan x1 dari pers. (1)

33 3 3

a c x

ʹ′ʹ′ ʹ′ʹ′

=

22 3 23 2

2

a x a c

x

ʹ′ ʹ′ − ʹ′ =

11

3 13 2

12 1

1

a

x a x

a c

(18)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

18

q 

Forward elimination

1

(19)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

19

4 . 71 10

2 . 0 3

. 0 ) 3 (

3 . 19 3

. 0 7

1 . 0 ) 2 (

85 . 7 2

. 0 1

. 0 3

) 1 (

3 2

1

3 2

1

3 2

1

= +

=

+

=

− −

x x

x

x x

x

x x

x

(20)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

20

q 

Forward elimination

q  Eliminasi x2 dari Pers. 2 dan 3, Pers. 1 sebagai pivot

q  Eliminasi x3 dari Pers. 3, Pers. 2 sebagai pivot

0843 .

70 0120

.

5617 .

19 2933

. 0 0033

.

615 .

5617 .

19 2933

. 0 0033

(21)

http://istiarto.staff.ugm.ac.id

Eliminasi Gauss

21

q 

Back substitution

q  Menghitung x3 dari Pers. 3''

7 0120 .

10

0843 .

70

3 = =

x

q  Substitusi x3 ke Pers. 2' untuk menghitung x2

( )

5 . 2 0033

. 7

7 2933 .

0 5617 .

19

2 = −

+

= x

q  Substitusi x3 dan x2 ke Pers. 1 untuk menghitung x1

( )

(

)

3 5 . 2 1 . 0 7 2 . 0 85 . 7

1 =

+ +

=

(22)

http://istiarto.staff.ugm.ac.id

Metode Eliminasi

22

q 

Strategi

q  Eliminasi variabel tak diketahui, xi, dengan penggabungan dua persamaan.

q  Hasil eliminasi adalah satu persamaan yang dapat diselesaikan untuk

(23)

http://istiarto.staff.ugm.ac.id

Kelemahan Metode Eliminasi

23

q  Pembagian dengan nol

q  Pivot coefficient sama dengan nol ataupun sangat kecil.

q  Pembagian dengan nol dapat terjadi selama proses eliminasi ataupun substitusi.

q  Round-off errors

q  Selama proses eliminasi maupun substitusi, setiap langkah hitungan bergantung pada

langkah hitungan sebelumnya dan setiap kali terjadi kesalahan; kesalahan dapat berakumulasi, terutama apabila jumlah persamaan sangat banyak.

q  Ill-conditioned systems

q  Ill-condition adalah situasi dimana perubahan kecil pada satu atau beberapa

(24)

http://istiarto.staff.ugm.ac.id

Perbaikan

24

q 

Pemilihan pivot (pivoting)

q  Urutan persamaan dipilih sedemikian hingga yang menjadi pivot equation

(25)

http://istiarto.staff.ugm.ac.id

Metode Penyelesaian

25

q 

Matriks Inversi

q  Gauss-Jordan

q 

Metode Iteratif

q  Jacobi

(26)

http://istiarto.staff.ugm.ac.id

Metode Gauss-Jordan

26

q 

Mirip dengan metode eliminasi Gauss, tetapi tidak diperlukan back

substitution.

q 

Contoh

q  3 persamaan linear

4 . 71 10

2 . 0 3

. 0

3 . 19 3

. 0 7

1 . 0

85 . 7 2

. 0 1

. 0 3

3 2

1

3 2

1

3 2

1

= +

− = −

+

= −

x x

x

x x

x

x x

(27)

http://istiarto.staff.ugm.ac.id

Metode Gauss-Jordan

27 6167 .

0667 .

0 0333

.

6150 .

70

5617 .

19

6167 .

2

0200 .

10 1900

. 0 0

2933 .

0 0033

. 7 0

0667 .

0 0333

(28)

http://istiarto.staff.ugm.ac.id

0843 .

70

7931 .

2

5236 .

2

0120 .

10 0

0

0419 .

0 1

0

0681 .

0 0

1

Metode Gauss-Jordan

28

6150 .

70

5617 .

19

6167 .

2

0200 .

10 1900

. 0 0

2933 .

0 0033

. 7 0

0667 .

0 0333

.

6150 .

70

0033 .

7 / 5617 .

19

6167 .

2

0200 .

10 1900

. 0 0

0033 .

7 / 2933 .

0 0033

. 7 / 0033 .

7 0033 .

7 / 0

0667 .

0 0333

.

6150 .

70

7931 .

2

6167 .

2

0200 .

10 1900

. 0 0

0419 .

0 1

0

0667 .

0 0333

(29)

http://istiarto.staff.ugm.ac.id 7931 .

2

5236 .

2

1 0

0

0419 .

0 1

0

0681 .

0120 .

10 / 0843 .

70

7931 .

2

5236 .

2

0120 .

10 / 0120 .

10 0120

. 10 / 0 0120 .

10 / 0

0419 .

0 1

0

0681 .

0 0

1

Metode Gauss-Jordan

(30)

http://istiarto.staff.ugm.ac.id

Gauss-Jordan vs Eliminasi Gauss

30

q 

Metode Gauss-Jordan

q  Jumlah operasi lebih banyak (50%)

q  Memiliki kelemahan yang sama dengan eliminasi Gauss

(31)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

31

[ ]

A

{ } { }

X = C

{ }

X =

[ ]

A −1

{ }

C

⎥ ⎥ ⎥

⎦ ⎤

⎢ ⎢ ⎢

⎣ ⎡

1 0 0

0 1 0

0 0 1

33 31

31

23 22

21

13 12

11

a a

a

a a

a

a a

a

⎥ ⎥ ⎥

⎦ ⎤

⎢ ⎢ ⎢

⎣ ⎡

− −

− −

− −

1 33 1

32 1

31

1 23 1

22 1

21

1 13 1

12 1

11

1 0 0

0 1 0

0 0 1

a a

a

a a

a

a a

(32)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

32

4 . 71 10

2 . 0 3

. 0 ) 3 (

3 . 19 3

. 0 7

1 . 0 ) 2 (

85 . 7 2

. 0 1

. 0 3

) 1 (

3 2

1

3 2

1

3 2

1

= +

=

+

=

− −

x x

x

x x

x

x x

x

(33)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

33 3333 .

0667 .

0 0333

. 0999 .

0

0 1 0333 .

0

0 0 3333 .

0

0200 .

10 1900

. 0 0

2933 .

0 0033

. 7 0

0667 .

0 0333

. 0 1

(34)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

34 0999

. 0

0 1422 .

0 0047 .

0

0 0 3333

. 0

0200 .

10 1900

. 0 0

0417 .

0 1

0

0667 .

0 0333

. 0270 .

0 1009 .

0

0 1422 .

0 0047 .

0

0 0047 .

0 3318 .

0

0121 .

10 0

0

0417 .

0 1

0

0681 .

0 0

1

(35)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

35

0999 .

0 0027 .

0 0101 .

0

0 1422

. 0 0047 .

0

0 0047

. 0 3318 .

0

1 0

0

0417 .

0 1

0

0681 .

0999 .

0 0027 .

0 0101 .

0

0042 .

0 1423 .

0 0052 .

0

0068 .

0 0049 .

(36)

http://istiarto.staff.ugm.ac.id

Matriks Inversi

36

0002 .

7

4881 .

2

0004 .

0999 .

0 0027 .

0 0101 .

0

0042 .

0 1423 .

0 0052 .

0

0068 .

0 0049 .

(37)

http://istiarto.staff.ugm.ac.id

Metode Iteratif: Jacobi

37 nilai awal,

biasanya xi0 = 0 iterasi diteruskan sampai konvergen

xin+1 ≈ x

(38)

http://istiarto.staff.ugm.ac.id

Metode Iteratif: Jacobi

38

4 . 71 10

2 . 0 3

. 0 ) 3 (

3 . 19 3

. 0 7

1 . 0 ) 2 (

85 . 7 2

. 0 1

. 0 3

) 1 (

3 2

1

3 2

1

3 2

1

= +

=

+

=

− −

x x

x

x x

x

x x

x

(39)

http://istiarto.staff.ugm.ac.id

Metode Iteratif: Gauss-Seidel

39

iterasi diteruskan sampai konvergen

xin+1 ≈ x

(40)

http://istiarto.staff.ugm.ac.id

Metode Iteratif: Gauss-Seidel

40

4 . 71 10

2 . 0 3

. 0 ) 3 (

3 . 19 3

. 0 7

1 . 0 ) 2 (

85 . 7 2

. 0 1

. 0 3

) 1 (

3 2

1

3 2

1

3 2

1

= +

=

+

=

− −

x x

x

x x

x

x x

x

(41)

http://istiarto.staff.ugm.ac.id

Jacobi vs Gauss-Seidel

41

(42)

http://istiarto.staff.ugm.ac.id

Successive Over-relaxation Method

42

q  Dalam setiap iterasi, nilai variabel terbaru (yang baru saja dihitung), xn+1,

tidak langsung dipakai pada iterasi selanjutnya

q  Pada iterasi selanjutnya, nilai tsb dimodifikasi dengan memasukkan pengaruh

nilai variabel lama (pada iterasi sebelumnya), xn

q  faktor relaksasi λ dimaksudkan untuk mempercepat konvergensi hitungan (iterasi)

q  under-relaxation: 0 < λ < 1

q  over-relaxation: 1 < λ < 2

(

)

n i n

i new

x

x

x

=

λ

+1

+

1

λ

(43)

http://istiarto.staff.ugm.ac.id

Successive Over-relaxation Method

43

(

)

[

]

(

)

[

]

[

(

)

]

33

2 1

2 32

1 1

1 31

3 1

3

22

3 23 1

1 1 21

2 1

2

11

3 13 2

12 1

1 1

1

1

1

a

x

x

a

x

x

a

c

x

a

x

a

x

x

a

c

x

a

x

a

x

a

c

x

n n

n n

n

n n

n n

n n

n

λ

+

λ

λ

+

λ

=

λ

+

λ

=

=

+ +

+

+ +

(44)

http://istiarto.staff.ugm.ac.id

Successive Over-relaxation Method

44

4 . 71 10

2 . 0 3

. 0 ) 3 (

3 . 19 3

. 0 7

1 . 0 ) 2 (

85 . 7 2

. 0 1

. 0 3

) 1 (

3 2

1

3 2

1

3 2

1

= +

=

+

=

− −

x x

x

x x

x

x x

x

(45)

Referensi

Dokumen terkait

Diberit ahukan kepada seluruh sisw a-sisw i SM P Nurul Syifa agar mengikut i perlombaan membaca puisi yang akan dilaksanakan dalam rangka memperingat i hari Kemerdekaan

Identifikasi masalah -masalah Keluarga Dan individu Diagnosa Keperawatan?.

[r]

Beni berkeinginan membeli sebuah pulpen dan 5 buah buku tulis yang ada di sebuah toko buku, tapi dia ragu dan malu apakah uangnya cukup untuk membeli pulpen dan

permasalahan bangsa dalam berinteraksi secara efektif dengan lingkungan sosial dan alam serta dalam menempatkan diri sebagai cerminan bangsa dalam pergaulan dunia.

 Pekerjaan atau bidang pengetahuan yang menjadi keahlian;.. Data tentang sikap peserta didik untuk digunakan dalam menyusun. strategi pembelajaran pada tahap

Tujuan Pembelajaran: Anda diharapkan dapat mengidentifikasi karakteristik cerita rakyat, menentukan isi dan amanat yang terdapat dalam cerita rakyat, menemukan hal-hal yang

Tujuan penelitian ini untuk mengetahui pengaruh penagihan pajak dan kepatuhan wajib pajak terhadap tunggakan pajak pada 10 Kantor Pelayanan Pajak di Kanwil DJP