How to find work done by 3D force field on object in motion

4 years ago
64

In this video I tackle a seemingly difficult math problem involving vector fields and space curves with a surprisingly easy method using a line integral.

Here’s the problem statement:

Compute the work done by the force field F ⃗(x,y,z)=(x+y) i ̂+(x-z) j ̂+(y+z) k ̂ on a mathematical bug walking along the helix parameterized by r ⃗(t)=〈sin⁡(t),cos⁡(t),2t〉 for 0≤t≤3π.

Ok if this seems rather involved well it is and this only becomes more clear if we take a look at this problem visually to get a handle on it, which you can pull up from the calcplot3d link below

You might imagine it’s rather hard problem to find the work done by this intricate force field on the bug over this convoluted path, but it’s actually pretty straightforward,

We can start off with the equation

And if we parameterize our x and y and z are functions of time, and our dr ⃗ translates into our velocity vector function, r ⃗ ‘(t)dt, and we’re integrating from time a to b.
Now this isn’t too bad, we already have our x, y and z defined above as part of r ⃗(t), and we’re given our a and b as our t range, so we actually have all we need at this point and can just plug into MATLAB
MATLAB
So in MATLAB first we’ll define our variables as usual
syms x y z t r F
then define the x,y and z values given with the provided definition of r ⃗(t)
x=sin(t)
y=cos(t)
z=2*t
then we can define our position function with these x,y and z values
r=[x,y,z]
And finally we can define the force field
F=[x+y,x-z,y+z]
And let’s go ahead and define our a and b limits for good measure
a=0
b=3*pi

Plugging this in we can find our work as the integral of the dot product of our force field F, with the derivative of our position function r wrt t, integrating wrt t for the limits t=a to t=b.
W=int(dot(F,diff(r,t)),t,[a,b])

That answers a bit ugly so we can convert to a decimal
double(ans)
and get ~196.5
And that’s it!

I finally take a look at the problem graphically again to make sure the work done by the force field on the bug is going to be positive, and that solves this seemingly difficult problem with some pretty quick mathematics and the help of MATLAB.

Calcplot3d link:
https://www.monroecc.edu/faculty/paulseeburger/calcnsf/CalcPlot3D/?type=vectorfield;vectorfield=vf;m=x+y;n=x-z;p=y+z;visible=true;scale=4;nx=5;ny=5;nz=5;mode=0;twod=false;constcol=true;color=rgb(0,0,255);norm=true;desystem=false&type=slider;slider=t;value=0;steps=30;pmin=0;pmax=10;repeat=true;bounce=false;waittime=1;careful=false;noanimate=false;name=-1&type=spacecurve;spacecurve=curve;x=sin(t);y=cos(t);z=2t;visible=true;tmin=0;tmax=3pi;tsteps=150;color=rgb(255,0,0);showtrace=true;tval=9.42477796076938;constcol=true;twod=false;arrows=;showpt=true;trace=false;vel=false;acc=false;osc=false;k=false;repeat=false;bounce=false;dashed=false;tanline=false;showtvector=false;shownvector=false;showbvector=false;showtnbeqs=false;showtnblabels=false;showoscplane=false;showrectplane=false;shownormplane=false&type=window;hsrmode=3;nomidpts=true;anaglyph=-1;center=7.067727288212191,6.363810234300481,3.0901699437493804,1;focus=0,0,0,1;up=-0.15450849718749132,-0.13912007574599797,0.9781476007338006,1;transparent=false;alpha=140;twoviews=false;unlinkviews=false;axisextension=0.7;xaxislabel=x;yaxislabel=y;zaxislabel=z;edgeson=true;faceson=true;showbox=false;showaxes=true;showticks=true;perspective=true;centerxpercent=0.5;centerypercent=0.5;rotationsteps=30;autospin=true;xygrid=false;yzgrid=false;xzgrid=false;gridsonbox=true;gridplanes=true;gridcolor=rgb(128,128,128);xmin=-2;xmax=2;ymin=-2;ymax=2;zmin=0;zmax=20;xscale=1;yscale=1;zscale=8;zcmin=0;zcmax=20;zoom=0.5496;xscalefactor=1;yscalefactor=1;zscalefactor=0.2

Loading comments...