Professional Documents
Culture Documents
December 1, 2012
Mathematica Project #2
Problem 1:
f@x_, y_D := x ^ 5 y ^ 2 - 2 x y + y + 1
g@x_, y_D := Hx - 1L ^ 2 + 2 Hy - 2L ^ 2
<< VectorAnalysis`
SetCoordinates@Cartesian@x, y, zDD
Cartesian@x, y, zD
Grad@f@x, yDD
9- 2 y + 5 x4 y2 , 1 - 2 x + 2 x5 y, 0=
Grad@g@x, yDD
82 H- 1 + xL, 4 H- 2 + yL, 0<
Solve@g@x, yD 3, yD
1
4-
2 + 2 x - x2
4+ 2
2 + 2 x - x2 >>
2
2
sol = NSolve@8Grad@f@x, yDD L * Grad@g@x, yDD, g@x, yD 3<, 8x, y, L<, RealsD
::y
>, :y
PROBLEM 2:
A.
h@theta_D := 1 - Sin@thetaD
-1.0
0.5
-0.5
1.0
-0.5
-1.0
-1.5
-2.0
B.
Integrate@r, 8theta , 0, 2 * Pi<, 8r, 0, h@thetaD<D
3
2
C.
h@theta_, a_D := 1 - a * Sin@thetaD
NSolve@Integrate@r, 8theta, 0, 2 * Pi<, 8r, 0, 1 - a * Sin@thetaD<D 4, 8a<D
88a - 0.739242<, 8a 0.739242<<
NIntegrate@r, 8theta, 0, 2 * Pi<, 8r, 0, 1 - .739242 Sin@thetaD<D
4.
PROBLEM 3:
A.
x@t_D := 15 Sin@tD - 20 Cos@2 tD - 2 Sin@5 tD
y@t_D := 11 Cos@3 tD
z@t_D := 25 Sin@2 tD - 10 Cos@tD - 3 Cos@4 tD
20
-20
-20
20
0
-5
-10
10
B.
dx = x '@tD
15 Cos@tD - 10 Cos@5 tD + 40 Sin@2 tD
dy = y '@tD
- 33 Sin@3 tD
dz = z '@tD
50 Cos@2 tD + 10 Sin@tD + 12 Sin@4 tD
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 2 * Pi<D
327.467
NIntegrate@Sqrt@x@0D ^ 2 + y@0D ^ 2 + z@0D ^ 2D, 8t, 0, 2 * Pi<D
165.046