play phryzby with physics

A Force Along a Constrained Path

solved Work

Q. A body constrained to move along the z-axisΔxx=0m, Δxy=0m of a coordinate system is subject to a constant force F given by F = (-1 NFa,x=-1N) î + (2 NFa,y=2N) ĵ + (3 NFa,z=3N) k̂, where î, ĵ, k̂ are unit vectors along the x-, y- and z-axis of the system respectively. What is the work done by this force in moving the body a distance of 4 mΔxz=4m along the z-axis, in joules?

bodyagent
Inputs
Fa,x
-1 N
Fa,y
2 N
Fa,z
3 N
Δxz
4.00 m
Outputs
workWF,a?

How it's solved

Solved with Work

Given

  • Fa,x=-1N
  • Fa,y=2N
  • Fa,z=3N
  • Δxz=4m
  • Δxx=0m from “constrained to move along the z-axis”
  • Δxy=0m from “constrained to move along the z-axis”

Find WF,a.

Working
  1. work of a steady force(body, moving, 1)WF,a=Fa,x⋅Δxx+Fa,y⋅Δxy+Fa,z⋅Δxz
  2. WF,a=(−1)⋅0+2⋅0+3⋅4
  3. WF,a=12J
Conclusion

Only the part of the force along the way the body moves does work; the parts across the z-axis push against the constraint and do none.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :a_force_along_a_constrained_path do4  kind :numerical5  describes "A body constrained to move along the z-axis of a coordinate system is subject to a constant force F " \6            "given by F = (%{fx}) î + (%{fy}) ĵ + (%{fz}) k̂, where î, ĵ, k̂ are unit vectors along the x-, y- and " \7            "z-axis of the system respectively. %{work} in moving the body a distance of %{distance} along the " \8            "z-axis, in joules?"9  given fx: "-1 N"10  given fy: "2 N"11  given fz: "3 N"12  given distance: "4 m"13  asks work: "What is the work done by this force"14end
solution.rb
1require_relative "../questions/a_force_along_a_constrained_path"2require_relative "../science/work_energy_and_power/work"34solve :a_force_along_a_constrained_path, using: Work do5  objects :body, :agent6  axes :x, :y, :z7  body.goes(:moving)89  take fx: body.force(by: agent, along: x)10  take fy: body.force(by: agent, along: y)11  take fz: body.force(by: agent, along: z)12  take distance: body.displacement(along: z)1314  deduce_from "constrained to move along the z-axis", body.displacement(along: x) => "0 m",15              body.displacement(along: y) => "0 m"1617  work = body.work(by: agent)18  answer work:, in: "J"1920  conclusion "Only the part of the force along the way the body moves does work; the parts across the z-axis " \21             "push against the constraint and do none."22end
playground.rb
1require_relative "../solutions/a_force_along_a_constrained_path"23play_with :a_force_along_a_constrained_path do4  title "A Force Along a Constrained Path"5end
The laws it drew on
quantitywrittenunitswithinfrom
volumevolume——Vectors
massmkg0 … ∞Vectors
speedspeed——Vectors
densitydensity——Vectors
number of molesn——Vectors
angular frequencyangularfrequency——Vectors
workWFJ—Vectors
currentcurrent——Vectors
temperaturetemperature——Vectors
pressurepressure——Vectors
timets0 … 1e+05Vectors
powerpower——Vectors
total path lengths——Vectors
energyenergy——Vectors
gravitational potentialgravitationalpotential——Vectors
coefficient of frictionμ——Vectors
chargecharge——Vectors
accelerationam/s²—Vectors
velocityvm/s—Vectors
displacementΔxm—Vectors
angular velocityangularvelocity——Vectors
forceFN—Vectors
angular momentumangularmomentum——Vectors
linear momentumplin——Vectors
electric fieldelectricfield——Vectors
average velocityvavm/s—Vectors
magnetic momentmagneticmoment——Vectors
relative velocityvAB——Vectors
impulseimpulse——Vectors
first vectorA—0 … ∞Vectors
second vectorB—0 … ∞Vectors
angle betweenφ—0 … 3.142Vectors
resultantR—0 … ∞Vectors
resultant directionβ—0 … 3.142Vectors
directionα—-3.142 … 3.142Vectors
x componentAx——Vectors
y componentAy——Vectors
positionxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
change of velocityΔvm/s—Acceleration
average accelerationaavm/s²—Acceleration
starting velocityv0m/s—Acceleration
final velocityvm/s—Acceleration
gravitygm/s²—UniformAcceleration
net forceFnetN—NewtonsSecondLaw
weightWN—NewtonsSecondLaw
work by gravityWgJ—Work
net workWnetJ—Work
displacement of body during moving along xΔxxm—
position of body at end of moving along xx1,xm—
position of body at start of moving along xx0,xm—
displacement of body during moving along yΔxym—
position of body at end of moving along yx1,ym—
position of body at start of moving along yx0,ym—
displacement of body during moving along zΔxzm—
position of body at end of moving along zx1,zm—
position of body at start of moving along zx0,zm—
average velocity of body during moving along xvav,xm/s—
time taken of movingΔts0 … 1e+05
average velocity of body during moving along yvav,ym/s—
average velocity of body during moving along zvav,zm/s—
average speed of body during movingcavm/s—
path length of body during movingdm—
change of velocity of body during moving along xΔvxm/s—
velocity of body at end of moving from ground along xv1,xm/s—
velocity of body at start of moving from ground along xv0,xm/s—
change of velocity of body during moving along yΔvym/s—
velocity of body at end of moving from ground along yv1,ym/s—
velocity of body at start of moving from ground along yv0,ym/s—
change of velocity of body during moving along zΔvzm/s—
velocity of body at end of moving from ground along zv1,zm/s—
velocity of body at start of moving from ground along zv0,zm/s—
average acceleration of body during moving along xaav,xm/s²—
average acceleration of body during moving along yaav,ym/s²—
average acceleration of body during moving along zaav,zm/s²—
acceleration of body during moving along xaxm/s²—
acceleration of body during moving along yaym/s²—
acceleration of body during moving along zazm/s²—
net force on body during moving along xFnet,xN—
mass of bodymkg0 … ∞
net force on body during moving along yFnet,yN—
net force on body during moving along zFnet,zN—
mass of agentmakg0 … ∞
weight on groundWgN—
weight on bodyWN—
weight on agentWaN—
force on body by agent during movingFaN—
force on body by agent during moving along xFa,xN—
force on body by agent during moving along yFa,yN—
force on body by agent during moving along zFa,zN—
work on body by agent during movingWF,aJ—
net work on body during movingWnetJ—
displacement of body during movingΔxm—
position of body at end of movingx1m—
position of body at start of movingx0m—
average velocity of body during movingvavm/s—
change of velocity of body during movingΔvm/s—
velocity of body at end of moving from groundv1m/s—
velocity of body at start of moving from groundv0m/s—
average acceleration of body during movingaavm/s²—
acceleration of body during movingam/s²—
net force on body during movingFnetN—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
v0≡vi(start of motion)
starting velocity
v≡vi(end of motion)
final velocity
t≡Δtm
time
A=Ax2+Ay2
magnitude from components
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
ai(part 1)=ai(whole)
steady through its parts
mb≠0
has mass?
R2=A2+B2+2⋅A⋅B⋅cos⁡φ
law of cosines
R⋅sin⁡β=B⋅sin⁡φ
law of sines
R⋅cos⁡β=A+B⋅cos⁡φ
along the first
Ax=A⋅cos⁡α
resolved along x
Ay=A⋅sin⁡α
resolved along y
Δxx=x1,x-x0,x
change of position(moving, x)
Δxy=x1,y-x0,y
change of position(moving, y)
Δxz=x1,z-x0,z
change of position(moving, z)
vav,x=ΔxxΔt
displacement a time(moving, x)
vav,y=ΔxyΔt
displacement a time(moving, y)
vav,z=ΔxzΔt
displacement a time(moving, z)
cav=dΔt
path a time(moving, x)
cav=dΔt
path a time(moving, y)
cav=dΔt
path a time(moving, z)
Δvx=v1,x-v0,x
velocity gained(moving, x)
Δvy=v1,y-v0,y
velocity gained(moving, y)
Δvz=v1,z-v0,z
velocity gained(moving, z)
aav,x=ΔvxΔt
velocity gained a time(moving, x)
aav,y=ΔvyΔt
velocity gained a time(moving, y)
aav,z=ΔvzΔt
velocity gained a time(moving, z)
v1,x=v0,x+ax⋅Δt
velocity after a time(moving, x)
v1,y=v0,y+ay⋅Δt
velocity after a time(moving, y)
v1,z=v0,z+az⋅Δt
velocity after a time(moving, z)
x1,x=x0,x+v0,x⋅Δt+ax⋅Δt22
position after a time(moving, x)
x1,y=x0,y+v0,y⋅Δt+ay⋅Δt22
position after a time(moving, y)
x1,z=x0,z+v0,z⋅Δt+az⋅Δt22
position after a time(moving, z)
v1,x2=v0,x2+2⋅ax⋅(x1,x-x0,x)
velocity after a distance(moving, x)
v1,y2=v0,y2+2⋅ay⋅(x1,y-x0,y)
velocity after a distance(moving, y)
v1,z2=v0,z2+2⋅az⋅(x1,z-x0,z)
velocity after a distance(moving, z)
x1,x-x0,x=(v1,x+v0,x)⋅Δt2
mean of the velocities(moving, x)
x1,y-x0,y=(v1,y+v0,y)⋅Δt2
mean of the velocities(moving, y)
x1,z-x0,z=(v1,z+v0,z)⋅Δt2
mean of the velocities(moving, z)
Fnet,x=m⋅ax
second law(moving, x)
Fnet,y=m⋅ay
second law(moving, y)
Fnet,z=m⋅az
second law(moving, z)
Fnet,x=Fa,x+0
net force is the resultant(body, moving, x)
Fnet,y=Fa,y+0
net force is the resultant(body, moving, y)
Fnet,z=Fa,z+0
net force is the resultant(body, moving, z)
WF,a=Fa,x⋅Δxx+Fa,y⋅Δxy+Fa,z⋅Δxz
work of a steady force(body, moving, 1)
Wnet=Fnet,x⋅Δxx+Fnet,y⋅Δxy+Fnet,z⋅Δxz
work of the net force(body, moving)
Δx=Δxx2+Δxy2+Δxz2
magnitude from components(displacement of body during moving)
x1=x1,x2+x1,y2+x1,z2
magnitude from components(position of body at end of moving)
x0=x0,x2+x0,y2+x0,z2
magnitude from components(position of body at start of moving)
vav=vav,x2+vav,y2+vav,z2
magnitude from components(average velocity of body during moving)
Δv=Δvx2+Δvy2+Δvz2
magnitude from components(change of velocity of body during moving)
v1=v1,x2+v1,y2+v1,z2
magnitude from components(velocity of body at end of moving from ground)
v0=v0,x2+v0,y2+v0,z2
magnitude from components(velocity of body at start of moving from ground)
aav=aav,x2+aav,y2+aav,z2
magnitude from components(average acceleration of body during moving)
a=ax2+ay2+az2
magnitude from components(acceleration of body during moving)
Fnet=Fnet,x2+Fnet,y2+Fnet,z2
magnitude from components(net force on body during moving)
Fa=Fa,x2+Fa,y2+Fa,z2
magnitude from components(force on body by agent during moving)
m≠0
has mass?(body)
ma≠0
has mass?(agent)
Fnet,x=0
free of forces?(body, moving, x)
Fnet,y=0
free of forces?(body, moving, y)
Fnet,z=0
free of forces?(body, moving, z)