Question: 1 E ) Let C be a closed curve oriented counterclockwise that is a rectangle in two dimensions with vertices ( 0 , 0 )

1E) Let C be a closed curve oriented counterclockwise that is a rectangle in two dimensions with vertices (0,0),
(c+2,0),(c+2,d+1), and (0,d+1) in the xy-plane. Using the same vector field from above, use
MATLAB to calculate the line integral below with Green's Theorem. Call this result P1E.
Cvec(F)*dvec(r)
1F) Clear any variables you want to reuse from previous exercises by using the clear command on a line in your
script after your answer for IE. Consider the following three-dimensional vector field.
F(x,y,z)=(a+1)y3,(b+1)z3,(c+1)x3
Plot this vector field in MATLAB over -3x3,-3y3, and -3z3 with a step size of 1 in all
three directions (figure 2). Now, use MATLAB to calculate curl F and call this result PIF1. Next, let S be a
square that lies in the yz-plane, centered at the origin, with side length 2(d+1), oriented clockwise when viewed
from the positive x-axis; let C be its boundary. Using the vector field above, use MATLAB to calculate the line
integral below with Stokes' Theorem. Call this result P1F2.
CF*dvec(r)
1G) Clear any variables you want to reuse from previous exercises by using the clear command on a line in your
script after your answer for IF. Consider the following three-dimensional vector field.
F(x,y,z)=sin((b+1)x),cos((c+1)y),z
Plot this vector field in MATLAB over -3x3,-3y3, and -3z3 with a step size of 1 in all
three directions (figure 3). Next, use MATLAB to calculate div F and call this result P1G1. Next, let B be a box,
centered at the origin in three-space with side length 2(d+1), oriented outward; let S be its boundary surface,
Using the vector field above, use MATLAB to calculate the surface integral below with the Divergence
Theorem. Call this result P1G2.
SF*vec(n)dS
Once you have these operations written in proper MATLAB syntax, go to your Editor menu and click Run. If
there are values in your Command Window for all operations without error messages, then your code has
successfully run! If you have error messages, read them carefully and try to resolve them, then click Run again.
Part 2 Exercises
Recall that a= last digit of your student ID,b= second to last digit of your student ID,c= third to last digit of
your student ID, and d- the sum of the last three digits of your student ID. Complete the following operations in
your script, making a new line for each operation.
Consider the two vector fields given below for an electric field, E(vec(l)), and a gravitational field, vec(F)(vec()). For the first
vector field, vec(r)=(:x,y:),=8.988109Nm2C-2, the Coulomb constant, and Q=1.610-19C,
the charge of a single proton. For the second vector field, vec()=(:x,y,z:),m=(56+d)kg, a human
mass within common range, M=5.9721024kg, the mass of the Earth, and G=6.67410-11Nm2k
g-2, Newton's universal gravitational constant.
2A) Clear any variables you want to reuse from previous exercises by using the clear command on a line in your
script. Plot the electric field in MATLAB over the intervals -0.1x0.1 and -0.1y0.1, both with
a step size of 0.02(figure 4). Next, calculate the curl and divergence of the electric field. Call these results P2AC
and P2AD, respectively.
2B) Consider an elementary particle being placed into the electric field generated by the positive point charge of a
proton at the origin. It then travels along an oriented path C defined by the vector below. Calculate the work
done by the electric field on the particle for the first (d+3) seconds using two differ
1 E ) Let C be a closed curve oriented

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!