NON-HOMOGEN
LAPORAN
Disusun untuk Memenuhi Tugas pada Mata Kuliah Metode Elemen Hingga yang Diampu oleh
Prof.Dr.Dra.Sunarsih,M.Si.
Dengan demikian diperoleh solusi umum untuk persamaan diferensial homogen di atas adalah
x 2x
uc =C 1 e +C 2 e
Setelah diperoleh solusi umum, selanjutnya adalah mencari solusi non homogen untuk
persamaan diferensial di atas, diperoleh
2
u p =A x + Bx+C dengan polinom r ( x )=4 x 2 berderajat 2, maka bentuk solusinya adalah :
2
u p =A x + Bx+C
'
u p =2 Ax+ B
''
u p =2 A
''
Substitusikan u p dan u p :
'' ' 2
u ( x )−3 u ( x )+2 u=4 x
2 A−3 ( 2 Ax+ B ) +2 ( A x2 + Bx+C ) =4 x 2
2 2
2 A x + (−6 A+ 3 B ) x + ( 2 A−3 B+2C )=4 x
Dari bentuk kesamaan di atas, maka dapat diperoleh sistem persamaan linear:
2 A=4
−6 A+3 B=0
2 A−3 B+2 C=0
Ketika diselesaikan akan didapatkan A=2 , B=6 ,C=7
2
Sehingga diperoleh solusi partikulur u p =2 x +6 x +7
y= y h+ y p
x 2x 2
u ( x )=c 1 e + c 2 e +2 x +6 x +7
Selanjutnya masukan syarat-syarat awal u ( 0 ) =1dan u' ( 0 )=5 ke dalam solusi umum
x 2x 2
u ( x )=c 1 e + c 2 e +2 x +6 x +7
1=c1 +c 2 +7
c 1=−6−c 2
Dan
' x 2x
u ( x ) =c 1 e +2 c 2 e + 4 x+ 6
1 2× 1
5=c 1 e + 2 c2 e + 4 × 1+ 6
2
5=c 1 e +2 c 2 e + 10
2
c 1 e+2 x 2 e =−5
(−6−c 2 ) e+ 2 x 2 e2=−5
2
−6e−c 2 e+2 x e =−5
−6e-2 c 2 ( e+ e 2) =−5
−2 c 2 ( e+e 2 )=−5+ 6 e
−5+6 e
c 2= 2
−2(e +e )
Maka di dapat c 2=
−5+6 e
2
−2(e +e )
dan c1 =−6−
−5+6 e
(
−2 ( e+ e2 ) )
Jadi, berdasarkan nilai awal u ( 0 ) =1dan u' ( 0 )=5 , diperoleh solusi eksak yaitu:
u ( x )=−11e x +5 e 2 x +2 x 2 +6 x +7
B. Penyelesaian Pendekatan MEH Galerkin dengan Menggunakan Fungsi Basis Linear Septong-
Sepotong
1. Matriks A
N=5
k =1
1
h=
5
[ ]
a11 a12 a13 a14 a15
a 21 a22 a23 a24 a25
A= a 31 a32 a33 a34 a35
a 41 a42 a43 a44 a45
a 51 a52 a53 a54 a55
[ ]
2
h
2 h −1
+k( )
3 5
+k
h
6 () 0 0 0
−1
h
+k( )
h
6
2
h
+k
2h
3 ( ) −1
h
+k
h
6 () 0 0
A= 0
−1
h
+k
h
6 () 2
h
+k
2h
3 ( ) −1
h
+k
h
6 () 0
0 0
−1
h
+k
h
6 () 2
h
+k
2h
3 ( ) −1
h
+k ()
h
6
0 0 0
−1
h
+k
h
6 () 1
h
+k
h
3()
Diperoleh entri-entri matriks A:
a 11=a 22=a33=a44=
2
1
5
+ ( )
2 ( 15 ) ≈ 10 , 13
3
()
1
−1 5
a 12=a23=a 34=a 45= + ≈−4 , 97
1 6
5
()
1
−1 5
a 21=a32=a 43=a54 = + ≈−4.97
1 6
5
()
1
1 5
a 55= + ≈ 5 , 07
5 3
Sehingga, jika ditulis dalam matriks:
[ ]
10 ,13 −4 , 97 0 0 0
−4 , 97 a 22 −4 , 97 0 0
A= 0 −4 , 97 10 ,13 −4 , 97 0
0 0 −4 , 97 10 , 13 −4 , 97
0 0 0 −4 , 97 5 , 07
2. Matriks B
Selanjutnya akan dicari matriks B dengan mencari rumus umum untuk b i terlebih dahulu dengan
2
menggunakan f ( x i ) =xi
Untuk b i dengan i=1 , 3 , 4 , … , N−1 diperoleh
1 1
b 1=∫ Φ1 fdx+Φ 1 (1 ) b¿ ∫ Φ1 fdx +Φ1 ( 1 ) 5
0 0
( )
h 2h h 2h
x 2
¿ ∫ (x 1)dx +5∫
2 h−x 2
( x 1 ) dx¿ x 1
2
∫ xh dx+5 ∫ 2 h−x
h
dx
0 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h
2
¿ 3 x4 h
¿ 3(f (x 4 ))h
( )
xN
x−x N −1
bN = ∫ (x2N ) dx+ 1(5)
x N −1
x N −x N −1
xN
¿ ∫
( N−1 ) h
( x−( N −1 ) h
Nh−( N−1 ) h )
( x2N )dx+5
¿
h 2 (
x2N 1 2 2 1 h2
N h −N 2 h2 + N h2 + N 2 h 2−N h2+ + 5
2 2 )
( )
2
x h2
¿ N +5
h 2
2
xN
¿ h+5
2
1
¿ f ( x N ) h+5
2
2
Dengan f ( x i ) =xi , maka
1 2
b i= ( x ) h+5 , untuk i = N
2 i
N=5
k =1
1
h=
5
[]
b1
b2
B= b3
b4
b5
[
B= 3(x ¿ ¿ 12)h ¿ 3(x ¿ ¿ 22)h ¿ 3(x ¿ ¿ 32)h ¿ 3(x ¿ ¿ 42 )h ¿
1 2
( x ) h+5
2 i ]
Diperoleh entri-entri matriks B:
(
) ( 15 )=0,024 ≈ 0 , 02¿
2
2 1
b 1=3(x ¿ ¿ 1 )h=3
5
(
) ( 15 )=0,096 ≈ 0 ,10 ¿
2
2 2
b 2=3(x ¿ ¿ 2 )h=3
5
(
) ( 15 )=0,216 ≈ 0 , 22¿
2
2 3
b 3=3(x ¿ ¿ 3 )h=3
5
(
) ( 15 )=0,384 ≈ 0 , 38 ¿
2
2 4
b 4=3 (x ¿ ¿ 4 )h=3
5
( 12 55 15 )
b =( ( x ) h)+5= ( ) ( ) + 5=0 , 1+5=5 ,1
2
1 2
5 5
2
[]
0 , 02
0 ,10
B= 0 ,22
0 ,38
5 ,1
3. Matriks C