0% found this document useful (0 votes)
105 views4 pages

Mathematica Project #2

The document contains the solutions to three mathematics problems. Problem 1 involves finding the gradient of two functions f(x,y) and g(x,y) and solving for their intersection. Problem 2 examines a function h(θ) and calculates its integral over different ranges of θ and values of a. Problem 3 defines three parametric functions x(t), y(t), z(t) and plots their 3D trajectory, calculates their derivatives and integrals over different intervals of t.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views4 pages

Mathematica Project #2

The document contains the solutions to three mathematics problems. Problem 1 involves finding the gradient of two functions f(x,y) and g(x,y) and solving for their intersection. Problem 2 examines a function h(θ) and calculates its integral over different ranges of θ and values of a. Problem 3 defines three parametric functions x(t), y(t), z(t) and plots their 3D trajectory, calculates their derivatives and integrals over different intervals of t.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Lyndsey Aguiar

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

88x - 0.532782, y 2.57034, L 0.808674<, 8x 0.59391, y 3.19061, L 0.0595717<,


8x 0.846074, y 0.780101, L 0.00322133<, 8x 2.65177, y 2.36855, L 418.421<<
NMaximize@8f@x, yD, g@x, yD 3<, 8x, y<D
8726.41, 8x 2.65177, y 2.36855<<
NMinimize@8f@x, yD, g@x, yD 3<, 8x, y<D
80.723896, 8x 0.846074, y 0.780102<<

PROBLEM 2:
A.
h@theta_D := 1 - Sin@thetaD

Printed by Mathematica for Students

mathematica Project #2.nb

PolarPlot@h@thetaD, 8theta, 0, 2 * Pi<D

-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

Printed by Mathematica for Students

mathematica Project #2.nb

ParametricPlot3D@8x@tD, y@tD, z@tD<, 8t, 0, 2 * Pi<, AspectRatio -> 1D

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

Starting point of the curve.

Printed by Mathematica for Students

mathematica Project #2.nb

NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, Pi<D


174.312
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 3 Pi 2<D
259.264
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 5 Pi 4<D
212.427
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 13 Pi 9<D
246.821
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 4.5<D
244.056
NIntegrate@Sqrt@dx ^ 2 + dy ^ 2 + dz ^ 2D, 8t, 0, 20 Pi 14<D
243.179

Printed by Mathematica for Students

You might also like