LAPORAN
GEOFISIKA MATEMATIKA I
KELOMPOK II (DUA)
1. REZKY ( H061201004 )
2. DWI WULAN CAHYANI ( H061201009)
3. ASTRIYANI NUR INSANI ( H061201032 )
4. IDZHAR IKHTIAR TAHIR ( H061201041 )
5. UMI KALSUM. S ( H061201049 )
6. ANDI MUHAMMAD IMRAN ISMAIL (H061201056 )
7. NURUL SALSABILA ( H061201070 )
DEPARTEMEN GEOFISIKA
FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
UNIVERSITAS HASANUDDIN
MAKASSAR
2021
PROBLEM 1.7
Konversi koordinat untuk komputasi tiga integral yang lebih mudah
Pertimbangkan integral lipat tiga berikut dari fungsi tiga variabel
𝑓(𝑥, 𝑦, 𝑧) = 𝑥 2 + 𝑦 2 + 𝑧 2
Di atas belahan unit atas berpusat di asal. Ini dapat dievaluasi dalam system koordinat persegi
Panjang sebagai titik
2𝜋 1
𝑧 3 √1 − 𝜌2 2𝜋 1 3
∫ ∫ 𝜌 (𝜌2 𝑧 + ) 𝑑𝜌𝑑𝜙 = ∫ ∫ 𝜌{𝜌2 √1 − 𝜌2 + (1 − 𝜌2 )2 /3}𝑑𝜌𝑑𝜙
0 0 3 0 0 0
1 1
2 )2
𝜌2 1 1 3
= 2𝜋 {∫ (−2𝑝)(1 − 𝜌 ( ) 𝑑𝜌 + ∫ 𝜌(1 − 𝜌2 )2 𝑑𝜌}
0 2 3 0
3 3 3
2 𝜌2 1 2 1 1 1
= 2𝜋 {3 (1 − 𝜌2 )2 ( 2 ) 0
+ 3 ∫0 (1 − 𝜌2 )2 𝑑𝜌 + 3 ∫0 𝜌(1 − 𝜌2 )2 𝑑𝜌}
5
1
= 2𝜋 {− (1 − 𝜌2 )2 10}
5
2𝜋
=
5
>>syms x y z r th ph
>>int(int(int(x^2+y^2+z^2,z,0,sqrt(1-x^2-y^2)),y,-sqrt(1-x^2),sqrt(1-x^2)),x,-1,1)
2𝜋 1 √1−𝜌2
∭𝑣 (𝜌2 +𝑧 2)
𝑑𝑣 = ∫ ∫ ∫ ( 𝜌2 + 𝑧 2 )𝜌𝑑𝑧𝑑𝜌𝑑𝜙
0 0 0
2𝜋 1 √1−𝜌2
= ∫0 ∫0 𝜌2 𝑧+𝑧 2 /3) 0
𝑑𝜌𝑑𝜙
3
2𝜋 1 (1−𝜌2 )2
= ∫0 ∫0 𝜌 {𝜌2 √1 − 𝜌2 + 3
} 𝑑𝜌𝑑𝜙
1 3
1 𝜌2 1 1
= 2𝜋 {∫0 (−2𝑝)(1 − 𝜌2 )2 ( 2 ) 𝑑𝜌 + 3 ∫0 𝜌(1 − 𝜌2 )2 𝑑𝜌}
3 3 3
2 𝜌2 1 2 1 1 1
= 2𝜋 {3 (1 − 𝜌2 )2 ( 2 ) 0
+ 3 ∫0 (1 − 𝜌2 )2 𝑑𝜌 + 3 ∫0 𝜌(1 − 𝜌2 )2 𝑑𝜌}
5
1
= 2𝜋 {− 5 (1 − 𝜌2 )2 10}
2𝜋
=
5
>> int(int(int(r*(r^2+z^2),z,0,sqrt(1-r^2)),r,0,1),ph,0,2*pi)
𝜋
2𝜋
1
2 1 2𝜋 1
∭𝑣 𝑟 2 𝑑𝑣 = ∫
∫ ∫ 𝑟 2 (𝑟 2 sin 𝜃) 𝑑𝑟𝑑𝜃𝑑𝜙 = ∫ ∫ sin 𝜃 𝑑𝜃𝑑𝜙
0 0 0 5 0 0
2𝜋
1 𝜋/2
= ∫ (−𝑐𝑜𝑠 𝜃)
5 0 0
2𝜋
=
5
>>syms r th ph
>>int(int(int(r^4*sin(th),r,0,1),th,0,pi/2),ph,0,2*pi)
PROBLEM 2.2
Gradien dan bidang singgung
Berdasarkan fungsi
𝑓(𝑥, 𝑦, 𝑧) = 𝑥 2 + 2𝑦 2 + 𝑧
a. Vector gradien fungsi P1= (1,1,3)
Misalkan :
Teorema:
Untuk permukaan F (x,y,z) = k,persamaan bidang singgung di titik (a,b,c) adalah:
Fx (a,b,c)(x-a)+ Fy(a,b,c)(y-b)+Fz(a,b,c)(z-c)+0
𝑓(𝑥, 𝑦, 𝑧) = 𝑥 2 + 𝑦 2 + 𝑧 2 , maka:
→ 𝑓(𝑥, 𝑦, 𝑧) = 2𝑥 𝑖̂ + 2𝑦𝑗̂ + 2𝑧𝑘̂
∇
c. Lengkapi dan jalankan script MATLAB “em02p02.m” untuk memplot vector gradien dan
bidang singgung yang ditemukan di (a) dan (b) Bersama dengan grafik f(x,y,z)=0 seperti
yang ditunjukkan pada gambar Fig. P2.2.
% em02p02.m
% Gradient and Tangent Plane for Problem 2.2 (Fig.P2.2)
clear, clf
syms x y z;
f=@(x,y,z)x^2+y^2-z; % Eq.(P2.2.1)
dx=0.05; dy=0.05; xs=[-3:dx:3]; ys=[-2:dy:2];
[X,Y]=meshgrid(xs,ys); % Grids for the graph
Z = X.^2 + 2*Y.^2; % Eq.(P2.2.1)
meshc(X,Y,Z), hold on % Plot the graph
p1=[1; 1; 3]; % A given point on the graph
gradf=gradienta(f) %Gradient of (P2.2.1)
gradfp=subs(gradf,{x,y,z},{(1),(2),(3)});gradfp=double(gradfp);
% Plot the gradient vector at p1 in the 3D space
quiver3(p1(1),p1(2),p1(3),gradfp(1),gradfp(2),gradfp(3),0.2)
% Plot the gradient vector at p1 on the xy-plane
quiver3(p1(1),p1(2),0,gradfp(1),gradfp(2),0,0.2,'linewidth',2)
fprintf(' Gradient at (%3.1f,%3.1f) is [%3.1f
%3.1f]\n',p1(1:2),gradfp(1:2));
% To plot the tangent plane
x=p1(1)+[-0.2 0.2]; y=p1(2)+[-0.1 0.1];
[Xp,Yp]=meshgrid(x,y); % Grids for the tangent plane
Zp=(gradfp'*p1-gradfp(1)*Xp-gradfp(2)*Yp)/gradfp(3); % Eq.(2.1.13)
surf(Xp,Yp,Zp,'Linewidth',2) % Plot the tangent plane
view(100,10), axis('equal'), axis([-4 4 -2 2 0 5]), grid on
set(gcf,'color','white'),shg
Df=gradienta(f)
PROBLEM 8.12 Potensi Kompleks dan Kecepatan Kompleks
horizontal/vertikal sebagai
= 𝑥 + 𝑗𝑦 = 𝑧
𝑥 (𝑥 −2 + 𝑦 −2 )
=
𝜕𝑥
= 𝑥 −1 + 𝑥𝑦 −2
= −𝑥 −2 + 𝑥𝑦 −2
1
= 2
𝑥 + 𝑥𝑦^2
𝑥
𝜕∅ 𝑥2 +𝑦2
• 𝑣(𝑥, 𝑦)Dimana
= u=∅ 𝜕𝑦 = 𝜕 𝜕𝑦
= 𝑥 (𝑥 −2 + 𝑦 −2 )
= 𝑥 −1 + 𝑥𝑦 −2
= 𝑥 −1 − 2𝑥𝑦 −3
1
= 2
𝑥 − 2𝑥𝑦 3
>>diff(phi,y)
iii. Juga, gunakan persamaan (8.1.261,b) untuk menemukan kecepatan radial atau
singgungan (azimuthal) Vr/V𝜃 oleh pembeda ∅(𝑧) atau ψ(z) w.r.t.r atau 𝜃
cos 𝜃
𝜕∅
• 𝑣𝑟 (𝑟, 𝜃)Dimana
=u=∅ = 𝜕 𝑟
𝜕𝑟 𝜕𝑟
cos 𝜃 𝑟 −1
=
𝜕𝑟
−cos 𝜃
=
𝑟2
𝜕∅ 1 𝑟
• 𝑣𝜃 (𝑟, 𝜃) = = 𝑟 𝜕𝜃
Dimana u=∅ 𝜕𝜃
1 𝜕 cos 𝜃
=
𝑟 𝜕𝑟
−sin 𝜃
=
𝑟2
iv. Tunjukkan bahwa kecepatan radial/tangensial (azimut) vr /vθ dapat diperoleh dengan
Figure 2
horizontal/vertikal sebagai
= −𝑦 − 𝑗𝑥 (𝑑𝑖𝑘𝑎𝑙𝑖 𝑚𝑖𝑛𝑢𝑠 1)
= 𝑥 + 𝑗𝑦 = 𝑧
= −𝑦 (𝑥 −2 + 𝑦 −2 )
= −𝑥𝑦 −2 − 𝑦 −1
1
=− 2
𝑥𝑦 − 𝑦
>>phi=atan(y/x); diff(phi)
−𝑦
𝜕∅ 𝑥2 +𝑦2
• 𝑣(𝑥, 𝑦) = = 𝜕
Dimana u=∅ 𝜕𝑦 𝜕𝑦
−𝑦(𝑥 −2 + 𝑦 −2 )
=
𝜕𝑦
= −𝑦𝑥 − 𝑦 −1
−2
= 𝑥 −1 − 2𝑥𝑦 −3
1
=
2𝑥𝑦 + 𝑦 2
>>diff(phi,y)
singgungan (azimuthal) Vr/V𝜃 oleh pembeda ∅(𝑧) atau ψ(z) w.r.t.r atau 𝜃
𝜕∅ 𝜕−sin 𝜃
• 𝑣𝑟 (𝑟, 𝜃) = =
Dimana u=∅ 𝜕𝑟 𝜕𝑟
−sin 𝜃 𝑟 −1
=
𝜕𝑟
sin 𝜃
= 2
𝑟
− sin 𝜃
1 𝜕∅
• 𝑣𝜃 (𝑟, 𝜃) = = 𝑟2
Dimana u=∅ 𝑟 𝜕𝜃 𝜕𝜃
−sin 𝜃
=
𝑟2
− cos 𝜃
=
𝑟2
v) Plot garis ekuipotensial, garis aliran, dan vektor kecepatan pada (1,0) dan (0,1) oleh
%em08p12b.m
syms x y r th
u = -y/(x^2+y^2); v = x/(x^2+y^2); % Vector field (P8.12b.1)
frth = subs(u-1i*v,{x,y},{r*cos(th),r*sin(th)});
pretty(simplify(frth))
rs1=(1:4); ths1=(0:180)*(pi/90);
rs2=(0:0.02:5); ths2=(0:45:360)*(pi/180);
hold on
for n=1:length(ths2), polar(ths2(n)*ones(size(rs2)),rs2); end
for n=1:length(rs1), polar(ths1,rs1(n)*ones(size(ths1)),'r'); end
ps=[1 0; 0 1]; % Points at which to plot the velocity vector
for n=1:size(ps,1)
xn=ps(n,1); yn=ps(n,2);
vx=subs(u,{x,y},{xn,yn}); vy=subs(v,{x,y},{xn,yn});
quiver(xn,yn,vx,vy,'k','Linewidth',2)
end
axis('equal'); axis('on')
Figure 3
c) Pertimbangkan medan vektor, yang disebut aliran sumber, dengan kecepatan
horizontal/vertikal sebagai
2(𝑥 2 + 𝑦 2 ) x = r cos ɵ
2 cos 2𝜃 x = r cos ɵ
4𝑥𝑦 2 sin 2 𝜃
𝑢= = 𝑎𝑛𝑑 𝑣 = =
(𝑥 2 + 𝑦 2 )2 y = r sin ɵ 𝑟 2 2
y = r sin ɵ (𝑥 + 𝑦 )
2 2 𝑟2
= 2( 𝑥 2 + 𝑦 2 ) − 𝑗 4𝑥𝑦
= 2 (𝑥 − 𝑦)2 − 𝑗4𝑥𝑦
= 2𝑥 2 + 2𝑦 2 + 4𝑥𝑦 − 4𝑥𝑦 . 𝑗
= 2𝑥 2 + 2𝑦 2 . 𝑗
= 𝑥2 + 𝑦2. 𝑗
= 𝑥 + 𝑗𝑦 = 𝑧
ii) Gambarkan garis ekuipotensial, garis arus, dan vektor kecepatan pada (1,1), (0,2), (-
1,1), (-1,-1), (0,-2), dan (1,-1) dengan melengkapi dan menjalankan script MATLAB di
atas em08p12c.m.
%em08p12c.m
syms x y r th
u=2*(x^2-y^2)/((x^2-y^2)^2+4*x^2*y^2); % Vector field (P8.12c.1)
v=4*x*y/((x^2-y^2)^2+4*x^2*y^2);
frth = subs(u-1i*v,{x,y},{r*cos(th),r*sin(th)});
pretty(simplify(frth))
subplot(233), hold on
cs=1*0.5.^(0:3); cs=[-fliplr(cs) 0 cs];
for n=1:length(cs)
h=ezplot(['-x/(x^2+y^2)-' num2str(cs(n))]); set(h,'color','b')
h=ezplot(['y/(x^2+y^2)-' num2str(cs(n))]); set(h,'color','r')
end
plot([-5 5],[0 0],'k'), plot([0 0],[-5 5],'k')
% Points at which to plot the velocity vector
ps=[1 1;0 2; -1 1; -1 -1;0 -2; 1 -1];
for n=1:size(ps,1)
xn=ps(n,1); yn=ps(n,2);
vx=subs(u,{x,y},{xn,yn}); vy=subs(v,{x,y},{xn,yn});
quiver(xn,yn,vx,vy,'k','Linewidth',2)
end
grid on, axis('equal'), axis([-5 5 -5 5]), axis('off')
Figure 4