play phryzby with physics

Part of eval pr72 v4 main rerun 3, agent version bd007a8

Two Forces At Right Angles

solved NewtonsSecondLaw

Q. A body of mass 5 kgm=5kg is pushed by two forces at right angles to each otherFp1,x=Fp1, Fp1,y=0, Fp2,x=0, Fp2,y=Fp2, 8 NFp1=8N and 6 NFp2=6N. How strongly does it accelerate, in m/s²?

bodya = ?pusher1 8 Npusher2 6 Nnet
Inputs
m
5 kg
Fp1
8 N
Fp2
6 N
Outputs
accelerationa?

How it's solved

Solved with NewtonsSecondLaw

Given

  • m=5kg
  • Fp1=8N
  • Fp2=6N
  • Fp1,x=Fp1 from “at right angles to each other”
  • Fp1,y=0 from “at right angles to each other”
  • Fp2,x=0 from “at right angles to each other”
  • Fp2,y=Fp2 from “at right angles to each other”

Find a.

Working
  1. at right angles to each other (force on body by pusher1 during pushed along x)Fp1,x=Fp1
  2. Fp1,x=8
  3. Fp1,x=8N
  4. at right angles to each other (force on body by pusher2 during pushed along x)Fp2,x=0
  5. Fp2,x=0N
  6. net force is the resultant(body, pushed, x)Fnet,x=Fp1,x+Fp2,x+0
  7. Fnet,x=8+0+0
  8. Fnet,x=8N
  9. second law(pushed, x)Fnet,x=m⋅ax
  10. 8=5⋅ax
  11. ax=1.6m/s²
  12. at right angles to each other (force on body by pusher1 during pushed along y)Fp1,y=0
  13. Fp1,y=0N
  14. at right angles to each other (force on body by pusher2 during pushed along y)Fp2,y=Fp2
  15. Fp2,y=6
  16. Fp2,y=6N
  17. net force is the resultant(body, pushed, y)Fnet,y=Fp1,y+Fp2,y+0
  18. Fnet,y=0+6+0
  19. Fnet,y=6N
  20. second law(pushed, y)Fnet,y=m⋅ay
  21. 6=5⋅ay
  22. ay=1.2m/s²
  23. magnitude from components(acceleration of body during pushed)a=ax2+ay2
  24. a=1.62+1.22
  25. a=2m/s²
Conclusion

The two perpendicular forces combine to give a resultant force, and the acceleration is that force divided by the mass.

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
1question :two_forces_at_right_angles do2  kind :numerical3  describes "A body of mass %{mass} is pushed by two forces at right angles to each other, %{force1} and %{force2}. " \4            "%{acceleration}, in m/s²?"5  given mass: "5 kg"6  given force1: "8 N"7  given force2: "6 N"8  asks acceleration: "How strongly does it accelerate"9end
solution.rb
1solve :two_forces_at_right_angles, using: NewtonsSecondLaw do2  objects :body, :pusher1, :pusher23  axes :x, :y45  body.goes(:pushed)67  take mass: body.mass8  take force1: body.force(by: pusher1, during: pushed).magnitude9  take force2: body.force(by: pusher2, during: pushed).magnitude1011  deduce_from "at right angles to each other", body.force(by: pusher1, during: pushed).direction => x, body.force(by: pusher2, during: pushed).direction => y121314  net_force = body.net_force(during: pushed).magnitude15  acceleration = body.acceleration(during: pushed).magnitude16  answer acceleration:, in: "m/s2"1718  conclusion "The two perpendicular forces combine to give a resultant force, and the acceleration is that force divided by the mass."19end
playground.rb
1play_with :two_forces_at_right_angles do2  title "Two Forces At Right Angles"3end
The laws it drew on
quantitywrittenunitswithinfrom
volumevolume——Vectors
massmkg0 … ∞Vectors
speedspeed——Vectors
densitydensity——Vectors
number of molesn——Vectors
angular frequencyangularfrequency——Vectors
workwork——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
displacement of body during pushed along xΔxxm—
position of body at end of pushed along xx1,xm—
position of body at start of pushed along xx0,xm—
displacement of body during pushed along yΔxym—
position of body at end of pushed along yx1,ym—
position of body at start of pushed along yx0,ym—
average velocity of body during pushed along xvav,xm/s—
time taken of pushedΔts0 … 1e+05
average velocity of body during pushed along yvav,ym/s—
average speed of body during pushedcavm/s—
path length of body during pusheddm—
change of velocity of body during pushed along xΔvxm/s—
velocity of body at end of pushed from ground along xv1,xm/s—
velocity of body at start of pushed from ground along xv0,xm/s—
change of velocity of body during pushed along yΔvym/s—
velocity of body at end of pushed from ground along yv1,ym/s—
velocity of body at start of pushed from ground along yv0,ym/s—
average acceleration of body during pushed along xaav,xm/s²—
average acceleration of body during pushed along yaav,ym/s²—
acceleration of body during pushed along xaxm/s²—
acceleration of body during pushed along yaym/s²—
net force on body during pushed along xFnet,xN—
mass of bodymkg0 … ∞
net force on body during pushed along yFnet,yN—
mass of pusher1mp1kg0 … ∞
mass of pusher2mp2kg0 … ∞
weight on groundWgN—
weight on bodyWN—
weight on pusher1Wp1N—
weight on pusher2Wp2N—
force on body by pusher1 during pushedFp1N—
force on body by pusher2 during pushedFp2N—
force on body by pusher1 during pushed along xFp1,xN—
force on body by pusher2 during pushed along xFp2,xN—
force on body by pusher1 during pushed along yFp1,yN—
force on body by pusher2 during pushed along yFp2,yN—
displacement of body during pushedΔxm—
position of body at end of pushedx1m—
position of body at start of pushedx0m—
average velocity of body during pushedvavm/s—
change of velocity of body during pushedΔvm/s—
velocity of body at end of pushed from groundv1m/s—
velocity of body at start of pushed from groundv0m/s—
average acceleration of body during pushedaavm/s²—
acceleration of body during pushedam/s²—
net force on body during pushedFnetN—
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(pushed, x)
Δxy=x1,y-x0,y
change of position(pushed, y)
vav,x=ΔxxΔt
displacement a time(pushed, x)
vav,y=ΔxyΔt
displacement a time(pushed, y)
cav=dΔt
path a time(pushed, x)
cav=dΔt
path a time(pushed, y)
Δvx=v1,x-v0,x
velocity gained(pushed, x)
Δvy=v1,y-v0,y
velocity gained(pushed, y)
aav,x=ΔvxΔt
velocity gained a time(pushed, x)
aav,y=ΔvyΔt
velocity gained a time(pushed, y)
v1,x=v0,x+ax⋅Δt
velocity after a time(pushed, x)
v1,y=v0,y+ay⋅Δt
velocity after a time(pushed, y)
x1,x=x0,x+v0,x⋅Δt+ax⋅Δt22
position after a time(pushed, x)
x1,y=x0,y+v0,y⋅Δt+ay⋅Δt22
position after a time(pushed, y)
v1,x2=v0,x2+2⋅ax⋅(x1,x-x0,x)
velocity after a distance(pushed, x)
v1,y2=v0,y2+2⋅ay⋅(x1,y-x0,y)
velocity after a distance(pushed, y)
x1,x-x0,x=(v1,x+v0,x)⋅Δt2
mean of the velocities(pushed, x)
x1,y-x0,y=(v1,y+v0,y)⋅Δt2
mean of the velocities(pushed, y)
Fnet,x=m⋅ax
second law(pushed, x)
Fnet,y=m⋅ay
second law(pushed, y)
Fnet,x=Fp1,x+Fp2,x+0
net force is the resultant(body, pushed, x)
Fnet,y=Fp1,y+Fp2,y+0
net force is the resultant(body, pushed, y)
Δx=Δxx2+Δxy2
magnitude from components(displacement of body during pushed)
x1=x1,x2+x1,y2
magnitude from components(position of body at end of pushed)
x0=x0,x2+x0,y2
magnitude from components(position of body at start of pushed)
vav=vav,x2+vav,y2
magnitude from components(average velocity of body during pushed)
Δv=Δvx2+Δvy2
magnitude from components(change of velocity of body during pushed)
v1=v1,x2+v1,y2
magnitude from components(velocity of body at end of pushed from ground)
v0=v0,x2+v0,y2
magnitude from components(velocity of body at start of pushed from ground)
aav=aav,x2+aav,y2
magnitude from components(average acceleration of body during pushed)
a=ax2+ay2
magnitude from components(acceleration of body during pushed)
Fnet=Fnet,x2+Fnet,y2
magnitude from components(net force on body during pushed)
Fp1=Fp1,x2+Fp1,y2
magnitude from components(force on body by pusher1 during pushed)
Fp2=Fp2,x2+Fp2,y2
magnitude from components(force on body by pusher2 during pushed)
Fp1,x=Fp1
at right angles to each other (force on body by pusher1 during pushed along x)
Fp1,y=0
at right angles to each other (force on body by pusher1 during pushed along y)
Fp2,x=0
at right angles to each other (force on body by pusher2 during pushed along x)
Fp2,y=Fp2
at right angles to each other (force on body by pusher2 during pushed along y)
m≠0
has mass?(body)
mp1≠0
has mass?(pusher1)
mp2≠0
has mass?(pusher2)
Fnet,x=0
free of forces?(body, pushed, x)
Fnet,y=0
free of forces?(body, pushed, y)