a. Consider finding the root of f(x) = x3 + 2x2 -2x-12 = 0, and start with the interval [1, 2].
Xn Xn+1 Xt F(Xn) F(Xn+1) F(t)
1 2 1.5 -11 0 -7.125
1.5 2 1.75 -7.125 0 -4.015625
1.75 2 1.875 -4.015625 0 -2.126953
1.875 2 1.9375 -2.126953 0 -1.093994
1.9375 2 1.96875 -1.093994 0 -0.554718
1.96875 2 1.984375 -0.554718 0 -0.279300
1.984375 2 1.9921875 -0.279300 0 -0.14013719
1.992188 2 1.996094 -0.14013719 0 -0.070186
1.996094 2 1.998047 -0.070186 0 -0.035123
1.998047 2 1.9990235 -0.035123 0 -0.0175693
2. Please use linier interpolation method for solving the following problems:
a. Consider finding the root of f(x) = x3 + 2x2 -2x-12 = 0, and start with the interval [1, 2].
Xn Xn+1 X* F(Xn) F(Xn+1) F(X*)
1 2 2 -11 0 0
3 2
F(Xn) = F(1) = (1 ) + (2(1 )) – (2(1)) – 12 = -11
F(n+1)= F(2) = (23 ) + (2(22)) – (2(2)) – 12 = 0
F (Xn+1)
X* = Xn+1 - x (Xn+1 – Xn)
F ( Xn+1 )−F (Xn)
0
X*= 2 - x (2-1) = 2
(0+11)
F(X*) = 23 + 2(2)2 -2(2)-12 = 0
Pada di tabel tersebut hanya satu kali perhitungan dikarenakan pada F(X*) sudah
mendapatkan nilai 0.
Pada nilai di tabel tersebut tidak ada yang dibulatkan
3. Please use Newton Raphson method for solving the following problems: x3 + 2x2 – 2x – 5= 0,
It start with interval [x1 = 1]
X1 X2 F(X1) F(X2)
1 1.8 -4 3.712
1.8 1.551206 3.712 0.442642
1.551206 1.512457 0.442642 0.0099233
1.512458 1.511548 0.0099233 0.00000935597
F ( X 1) −4
X2 = X1 - =1- = 1.8
F '( X 1) 5
F'(X1) = F'(1) = 3x2 + 4x – 2 = 3(1) 2 + 4(1) – 2 = 5
F(X1) = F(1) = x3 + 2x2 – 2x – 5 = (1) 3 + 2(1) 2 – 2(1) – 5 = -4
F(X2) = F(1.8) = x3 + 2x2 – 2x – 5 = (1.8)3 + 2(1.8)2 – 2(1.8) – 5 = 3.712
Pada nilai di tabel tersebut tidak ada yang dibulatkan
[ 4 8 −6 2 B1/2
6 12 −10 0 ]
1 1 2 9
[ ]
4 8 −6 2 B2-4B1
6 12 −10 0
1 1 2 9
[ 0 1
−7 −17
2 2
0 6 −22 −54
B1-B2
]
11 35
[ ]
1 0
2 2
−7 −17 B3-6B2
0 1
2 2
0 6 −22 −54
11 35
[ ]
1 0
2 2
−7 −17 B3/-1
0 1
2 2
0 0 −1 −3
11 35
[ ]
1 0
2 2
11
−7 −17 B1- B3
0 1 2
2 2
0 0 1 3
1 0 0 1
[ 0 1
−7
0 0 1
2
−17
2
3
] 7
B 2+ B 3
2
1 0 0 1
[ ]
0 1 0 2 Final
0 0 1 3
5. Please find the solution for the following problem by using gauss elimination
2x + 2y + 4z = 16
-2x – 4y + 6z = 2
6x – 14y + 8z =20
2 2 4 16
[ −2 −4
6 −14
6 2 B1/2
8 20 ]
1 1 2 8
[ −2 −4 6 2 -B2/2
6 −14 8 20 ]
1 1 2 8
[ 1 2 −3 −1 B2-B1
6 −14 8 20 ]
1 1 2 8
[ 0 1 −5 −9 B3-6B1
6 −14 8 20 ]
1 1 2 8
[ 0 1 −5 −9 B3+20B2
6 −20 −4 −28 ]
1 1 2 8
[ 0 1 −5 −9 B3/-104
0 0 −104 −208 ]
1 1 2 8
[ 0 1 −5 −9 Final
0 0 1 2 ]
X + Y + 2Z = 8
Y - 5Z =- 9
Z=2
Masukkan nilai Z ke persamaan kedua Y -5 (2) = - 9, Y = 1
Masukkan nilai Z dan Y, persamaan 1 untuk mendapatkan nilai x, X + (1) + 2(2) = 3
Masukkan nilai X. Y dan Z ke persamaan 1, (3) + (1) + 2(2) = 8
Jika nilai sama maka nilai X, Y, dan Z benar yaitu nilai ( 3 ; 2 ; 1 )