Anda di halaman 1dari 11

10/22/2020

Solusi Persamaan Linier


dengan Microsoft Excel®
Hafid Alwan, S.T.,M.T.
Department of Chemical Engineering
Faculty of Engineering
University of Sultan Ageng Tirtayasa

Disampaikan Pada Mata Kuliah Komputer untuk Mahasiswa D1 Program


Pendidikan dan Pelatihan Teknisi Industri Kimia (P3TIK) AMC//CMA FT UNTIRTA

www.untirta.ac.id Integrated Smart and Green University

Bentuk Umum Persamaan Linier


 Bentuk umum persamaan linier
𝑦 = 𝑚𝑥 + 𝑏

 Contoh persamaan linier


𝑥 + 2𝑦 = 10
2𝑏 + 5𝑐 = 2𝑑 + 20
5𝑥 − 3𝑦 + 6 = −9x + 8y + 4

www.untirta.ac.id Integrated Smart and Green University

1
10/22/2020

Persamaan Linier

y yx

LINIER x

Kurva persamaan linier Kurva persamaan tak-linier

www.untirta.ac.id Integrated Smart and Green University

• Bagaimana menyelesaikan persamaan berikut ??

3x1  18 x2  9 x3  18
2 x1  3 x2  3 x3  117
4 x1  x2  2 x3  283

www.untirta.ac.id Integrated Smart and Green University

2
10/22/2020

Menggunakan Microsoft Excel


3x1  18 x2  9 x3  18
2 x1  3 x2  3 x3  117
4 x1  x2  2 x3  283
Dalam bentuk matriks menjadi;
3 18 9 𝑥1 18
𝐴= 2 3 3 𝑥 = 𝑥2 𝐶 = 117
4 1 2 𝑥3 283
Solusi untuk mendapatkan X = A-1 . B
A-1 merupakan invers matriks A

www.untirta.ac.id Integrated Smart and Green University

Solusi Persamaan Linier menggunakan Excel


• Gunakan fungsi MINVERSE untuk mengubah matriks A menjadi Matriks
inverse A (A-1)
A X C
3 18 9 x1 18
2 3 3 x2 117
4 1 2 x3 283
• Untuk mendapatkan Inverse Matriks A (A-1) pilih range cell tempat
inverse matriks A (A-1) akan dihitung, kemudian ketikkan
=MINVERSE(A7:C9)
• Akhiri dengan menekan
CTRL + SHIFT + ENTER
sebagai Array formula.
A-1
0,047619 -0,42857 0,428571
0,126984 -0,47619 0,142857
-0,15873 1,095238 -0,42857

www.untirta.ac.id Integrated Smart and Green University

3
10/22/2020

• Gunakan fungsi MMULT untuk menghasilkan Vektor X dari perkalian


matriks A-1 dengan vektor C. Pertama, pilih range E7:E9. Selanjutnya,
masukkan fungsi =MMULT(A7:C9;E2:E4) (seperti ditunjukkan gambar di
bawah). Akhiri dengan menekan CTRL + SHIFT + ENTER.

X
72 x1
-13 x2
4 x3

www.untirta.ac.id Integrated Smart and Green University

Contoh Kasus 1
Sistem distribusi uap pada sebuah Industri kimia ditampilkan pada gambar
dibawah ini. Sistem tersebut terdiri dari 14 buah variabel xi dengan i = 3
s./d 16 belum diketahui, dan yi adalah parameter yang telah diketahui. xi
dan yi dalam 1000 lb/h. Dengan menggunakan Ms Excel hitunglah 14
variabel (xi, i=3,…,16) yang belum diketahui itu.

www.untirta.ac.id Integrated Smart and Green University

4
10/22/2020

Neraca Massa dan Energi Sistem


181, 60  x3  132,57  x4  x5   y1  y2  y5  y4  5,1
1,17 x3  x6  0
132,57  0, 745 x7  61, 2
x5  x7  x8  x9  x10  x15  y7  y8  y3  99,1
x8  x9  x10  x11  x12  x13   y7  8, 4
x6  x15  y6  y5  24, 2
1,15(181, 60)  x3  x6  x12  x16  1,15 y1  y9  0, 4  19, 7
181, 60  4,594 x12  0,11x16   y1  1, 0235 y9  2, 45  35, 05
0, 0423(181, 60)  x11  0, 0423 y1  2,88
0, 016(181, 60)  x4  0
x8  0,147 x16  0
x5  0, 07 x14  0
0, 0805(181, 60)  x9  0
x13  x14  x16  0, 4  y9  97,9

www.untirta.ac.id Integrated Smart and Green University

Keterangan
 Pers (1) Unit 680 Psia header  Pers (10) Boiler
 Pers (2) Desuperheater atomizing
 Pers (3) Alternator Turbine  Pers (11) Treated
feedwater pump
 Pers (4) 170 psia header
 Pers (12) Boiler
 Pers (5) 37 psia header feedwater pump
 Pers (6) 215 psia header  Pers (13) Boiler Fan
 Pers (7) BFW balance  Pers (14) Deaerator-
 Pers (8) Condensate quench drumquench
 Pers (9) Blow down flash drum

www.untirta.ac.id Integrated Smart and Green University

5
10/22/2020

Persamaan diatas disederhanakan menjadi :

𝑥3 + 𝑥4 +𝑥5 = 43,93 (1)


1,17𝑥3 − 𝑥6 = 0 (2)
𝑥7 = 95.798 (3)
𝑥5 + 𝑥7 − 𝑥8 − 𝑥9 − 𝑥10 + 𝑥15 = 99.1 (4)
𝑥8 + 𝑥9 + 𝑥10 + 𝑥11 − 𝑥12 − 𝑥13 = −8.4 (5)
𝑥6 − 𝑥15 = 24.2 (6)
𝑥3 − 𝑥6 + 𝑥12 + 𝑥16 = 189.14 (7)
4.594𝑥5 + 0.11𝑥16 = 146.55 (8)
𝑥11 = 10.56 (9)
𝑥4 = 2.9056 (10)
𝑥8 − 0.0147𝑥16 = 0 (11)
𝑥5 − 0.07𝑥14 = 0 (12)
𝑥9 = 14.6188 (13)
𝑥12 − 𝑥14 + 𝑥16 = −97.9 (14)

www.untirta.ac.id Integrated Smart and Green University

Untuk memudahkan dalam penulisan program, maka perlu disusun ulang


penomoran variabel, x3 diubah menjadi x1, x4 diubah menjadi x2 dan
seterusnya
𝑥1 + 𝑥2 +𝑥3 = 43,93 (1)
1,17𝑥1 − 𝑥4 = 0 (2)
𝑥5 = 95.798 (3)
𝑥3 + 𝑥5 − 𝑥6 − 𝑥7 − 𝑥8 + 𝑥13 = 99.1 (4)
𝑥6 + 𝑥7 + 𝑥8 + 𝑥9 − 𝑥10 − 𝑥11 = −8.4 (5)
𝑥4 − 𝑥13 = 24.2 (6)
𝑥1 − 𝑥4 + 𝑥10 + 𝑥14 = 189.14 (7)
4.594𝑥3 + 0.11𝑥14 = 146.55 (8)
𝑥9 = 10.56 (9)
𝑥2 = 2.9056 (10)
𝑥6 − 0.0147𝑥14 = 0 (11)
𝑥3 − 0.07𝑥12 = 0 (12)
𝑥7 = 14.6188 (13)
𝑥10 − 𝑥12 + 𝑥14 = −97.9 (14)
www.untirta.ac.id Integrated Smart and Green University

6
10/22/2020

Bentuk Matriks
 x1   43,93 
 1 1 1 0 0 0 0 0 0 0 0 0  0 x  0  0 
1,17 0 0 1 0 0 0 0 0 0 0 0 0 0   2  
   x3   95,798 
 0 0 0 0 1 0 0 0 0 0 0 0 0 0     
   x4   99,1 
 0 0 1 0 1 1 1 1 0 0 0 0 1 0   x5   - 8,4 
 0 0 0 0 0 1 1 1 1 1 1 0 0 0     
 
 0 0 0 1 0 0 0 0 0 0 0 0 1 0   x6   24,2 
 1  x   189,14 
0 0 1 0
 x  C 
0 0 0 0 1 0 0 0 1 7
A
 0 0 0 0 0 0 0 0 0 4,594 0 0 0 0,11   x8   146,55 
 0  x   10,56 
0 0 0 0 0 0 0 1 0 0 0 0 0  9  
 
 0 1 0 0 0 0 0 0 0 0 0 0 0 0   x10   2,9056 
     
 0 0 0 0 0 1 0 0 0 0 0 0 0  0,0147   x11   0 
 0 0 1 0 0 0 0 0 0 0 0 0 0 0   x12   0 
     
 0 0 0 0 0 0 1 0 0 0 0 0 0 0   x13  14,6188
 0 0 1 0  x   - 97,9 
 0 0 0 0 0 0 0 0 10 1   14   
Solusi untuk mendapatkan X = A-1 . B
A-1 merupakan invers matriks A
www.untirta.ac.id Integrated Smart and Green University

Solusi Persamaan Linier menggunakan Excel


A x C
1 1 1 0 0 0 0 0 0 0 0 0 0 0 x1 43,93
1,17 0 0 -1 0 0 0 0 0 0 0 0 0 0 x2 0
0 0 0 0 1 0 0 0 0 0 0 0 0 0 x3 95,798
0 0 1 0 1 -1 -1 -1 0 0 0 0 1 0 x4 99,1
0 0 0 0 0 1 1 1 1 -1 -1 0 0 0 x5 -8,4
0 0 0 1 0 0 0 0 0 0 0 0 -1 0 x6 24,2
1 0 0 -1 0 0 0 0 0 1 0 0 0 1 x7 189,14
0 0 0 0 0 0 0 0 0 4,594 0 0 0 0,11 x8 146,55
0 0 0 0 0 0 0 0 1 0 0 0 0 0 x9 10,56
0 1 0 0 0 0 0 0 0 0 0 0 0 0 x 10 2,9056
0 0 0 0 0 1 0 0 0 0 0 0 0 -0,0147 x 11 0
0 0 1 0 0 0 0 0 0 0 0 -0,07 0 0 x 12 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 x 13 14,6188
0 0 0 0 0 0 0 0 0 1 0 -1 0 1 x 14 -97,9

www.untirta.ac.id Integrated Smart and Green University

7
10/22/2020

Solusi Persamaan Linier menggunakan Excel


• Gunakan fungsi MINVERSE untuk mengubah matriks A menjadi Matriks inverse
A (A-1)
• Untuk mendapatkan Inverse Matriks A (A-1) pilih range cell tempat inverse
matriks A (A-1) akan dihitung, kemudian ketikkan =MINVERSE(A7:C9)
• Akhiri dengan menekan CTRL + SHIFT + ENTER sebagai Array formula.

www.untirta.ac.id Integrated Smart and Green University

Solusi Persamaan Linier menggunakan Excel


A-1
0,98824 0,069177 0 0 0 0 -0,06918 0 0 -0,98824 0 -0,98824 0 0,069177
-2,2E-16 1,11E-16 0 0 0 0 0 -4,3E-18 0 1 0 1,11E-16 0 0
0,01176 -0,06918 0 0 0 0 0,069177 4,34E-18 0 -0,01176 0 0,98824 0 -0,06918
1,156241 -0,91906 0 0 0 0 -0,08094 0 0 -1,15624 0 -1,15624 0 0,080937
0 0 1 0 0 0 0 0 0 0 0 0 0 0
0,00253 -0,01488 0 0 0 0 0,014884 -0,00328 0 -0,00253 1 -0,00253 0 0,000177
-1,8E-17 3,47E-17 0 0 0 0 0 -1,2E-17 0 1,78E-17 0 -1E-17 1 -4,6E-19
1,165471 -0,97336 1 -1 0 -1 -0,02664 0,003278 0 -1,16547 -1 -0,16547 -1 0,011583
0 0 0 0 0 0 0 0 1 0 0 0 0 0
-0,00412 0,024243 0 0 0 0 -0,02424 0,223015 0 0,004121 0 0,004121 0 -0,00029
1,172122 -1,01248 1 -1 -1 -1 0,012483 -0,22302 1 -1,17212 0 -0,17212 0 0,012049
0,168001 -0,98824 0 0 0 0 0,98824 0 0 -0,168 0 -0,168 0 -0,98824
1,156241 -0,91906 0 0 0 -1 -0,08094 0 0 -1,15624 0 -1,15624 0 0,080937
0,172122 -1,01248 0 0 0 0 1,012483 -0,22302 0 -0,17212 0 -0,17212 0 0,012049

• Gunakan fungsi MMULT untuk menghasilkan Vektor X dari perkalian


matriks A-1 dengan vektor C. Pertama, pilih range P18:P31. Selanjutnya,
masukkan fungsi =MMULT(A18:N31;P2:P15) (seperti ditunjukkan
gambar di bawah). Akhiri dengan menekan CTRL + SHIFT + ENTER.

www.untirta.ac.id Integrated Smart and Green University

8
10/22/2020

Solusi Persamaan Linier menggunakan Excel

• Akhiri dengan menekan CTRL + SHIFT + ENTER sebagai Array formula.

www.untirta.ac.id Integrated Smart and Green University

Hasil
x1 20,68544
x2 2,9056
x3 20,33896
x4 24,20197
x5 95,798
x6 2,421088
x7 14,6188
x8 -0,00096
x9 10,56
x10 27,95669
x11 8,042239
x12 290,5565
x13 0,001969
x14 164,6998
www.untirta.ac.id Integrated Smart and Green University

9
10/22/2020

Perbandingan Hasil dengan Tools Lain


Variabel MATLAB EXCEL
x1 20,6854 20,68544
X2 2,9056 2,9056
X3 20,3390 20,33896
X4 24,2020 24,20197
X5 95,7980 95,798
X6 2,4211 2,421088
X7 14,6188 14,6188
X8 -0,0010 -0,00096
X9 10,5600 10,56
X10 27,9567 27,95669
X11 8,0422 8,042239
X12 290,5565 290,5565
X13 0,0020 0,001969
x14 164,6998 164,6998
www.untirta.ac.id Integrated Smart and Green University

Tugas Mandiri
Sebuah pelat metal mengalami perpindahan panas dari satu sisi ke sisi lainnya, seperti
terlihat pada gambar ilustrasi disamping. Data yang diketahui adalah sebagai berikut,
konduktivitas termal benda, k=15 W/m.oC, energi yang dihasilkan dari dalam benda sebesar,
g=2x106 W/m3. bagian kiri benda terisolasi sempurna, dan permukaan bawah benda memiliki
temperatur seragam, 90oC. Seluruh permukaan atas benda kontak dengan udara yang
memiliki temperatur 25oC dengan koefisien konveksi, ha=80 W/m2.oC, sedangkan sisi kanan
benda terpapar fluks panas sebesar qr= 5000 W/m2.oC. Hitunglah temperatur pada setiap
node (jarak antar node Δx=Δy=l=1,2 cm) dalam ilustrasi gambar tersebut untuk mengetahui
distribusi temperatur di bidang benda tersebut.

www.untirta.ac.id Integrated Smart and Green University

10
10/22/2020

• Pers. 1 • Pers. 5

• Pers 2 • Pers 6

• Pers 3 • Pers 7

• Pers 4 • Pers 8

• Pers 9

www.untirta.ac.id Integrated Smart and Green University

www.untirta.ac.id Integrated Smart and Green University

11

Anda mungkin juga menyukai