play phryzby with physics

Forty Minutes Out: Velocity

solved Velocity

Q. A man walks on a straight roadvav(to)=cav(to) from his homex(start)=0km to a market 2.5 kmx(market)=2.5km away with a speed of 5 km/hcav(to)=5km/h. Finding the market closed, he instantly turns and walks back homevav(tu)=−cav(tu) with a speed of 7.5 km/hcav(tu)=7.5km/h. What is the magnitude of average velocity of the man over the interval of time 0 to 40 minΔtw=40min, in km/h?

x₀ = 0 mv̄ = ?
Inputs
x
2.5 km
cav
5 km/h
cav
7.5 km/h
Δtw
40 min
Outputs
average velocityvav?

How it's solved

Solved with Velocity

Given

  • x(market)=2.5km
  • cav(to)=5km/h
  • cav(tu)=7.5km/h
  • Δtw=40min
  • x(start)=0km from “from his home”
  • vav(to)=cav(to) from “on a straight road”
  • vav(tu)=−cav(tu) from “walks back home”

Find vav(w).

Working
  1. x(market)=2.5km=2500m
  2. cav(to)=5km/h=1.38888889m/s
  3. cav(tu)=7.5km/h=2.08333333m/s
  4. Δtw=40min=2400s
  5. x(start)=0km=0m
  6. on a straight roadvav(to)=cav(to)
  7. vav(to)=1.38888889
  8. vav(to)=1.38888889m/s
  9. change of position(to market)Δx(to)=x(market)-x(start)
  10. Δx(to)=2500-0
  11. Δx(to)=2500m
  12. displacement a time(to market)vav(to)=Δx(to)Δtto
  13. 1.38888889=2500Δtto
  14. Δtto=1800s
  15. time in parts(walking)Δtw=Δtto+Δttu
  16. 2400=1800+Δttu
  17. Δttu=600s
  18. walks back homevav(tu)=−cav(tu)
  19. vav(tu)=−2.08333333
  20. vav(tu)=−2.08333333m/s
  21. displacement a time(turning back)vav(tu)=Δx(tu)Δttu
  22. (−2.08333333)=Δx(tu)600
  23. Δx(tu)=−1250m
  24. change of position(turning back)Δx(tu)=x(later)-x(market)
  25. (−1250)=x(later)-2500
  26. x(later)=1250m
  27. change of position(walking)Δx(w)=x(later)-x(start)
  28. Δx(w)=1250-0
  29. Δx(w)=1250m
  30. displacement a time(walking)vav(w)=Δx(w)Δtw
  31. vav(w)=12502400
  32. vav(w)=1.875km/h
  33. vav(w)=0.520833333m/s=1.875km/h
  34. vav(w)≈1.875km/hto 4 significant figures
Conclusion

By the end of the interval he has walked part of the way back, so the average velocity counts only how far from home he is now, over the whole time.

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 :forty_minutes_out_velocity do4  kind :numerical5  describes "A man walks on a straight road from his home to a market %{distance} away with a speed of " \6            "%{speed_there}. Finding the market closed, he instantly turns and walks back home with a speed of " \7            "%{speed_back}. %{average_velocity} over the interval of time 0 to %{interval}, in km/h?"8  given distance: "2.5 km", speed_there: "5 km/h", speed_back: "7.5 km/h", interval: "40 min"9  asks average_velocity: "What is the magnitude of average velocity of the man"10end
solution.rb
1require_relative "../questions/forty_minutes_out_velocity"2require_relative "../science/motion_in_a_straight_line/velocity"34solve :forty_minutes_out_velocity, using: Velocity do5  objects :man6  instants :start, :market, :later7  man.goes(:to_market, during: start..market)8  man.goes(:turning_back, during: market..later)9  man.goes(:walking, during: start..later)10  take distance: man.position(at: market), speed_there: to_market.average_speed,11       speed_back: turning_back.average_speed, interval: walking.time_taken12  deduce_from "from his home", man.position(at: start) => "0 km"13  deduce_from "on a straight road", to_market.average_velocity => to_market.average_speed14  deduce_from "walks back home", turning_back.average_velocity => -turning_back.average_speed15  average_velocity = walking.average_velocity16  answer average_velocity:, in: "km/h", figures: 417  conclusion "By the end of the interval he has walked part of the way back, so the average velocity counts " \18             "only how far from home he is now, over the whole time."19end
playground.rb
1require_relative "../solutions/forty_minutes_out_velocity"23play_with :forty_minutes_out_velocity do4  title "Forty Minutes Out: Velocity"5end
The laws it drew on
quantitywrittenunitswithinfrom
positionxm—Velocity
displacementΔxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average velocityvavm/s—Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
displacement of man during to marketΔx(to)m—
position of man at marketx(market)m—
position of man at startx(start)m—
displacement of man during turning backΔx(tu)m—
position of man at laterx(later)m—
displacement of man during walkingΔx(w)m—
average velocity of man during to marketvav(to)m/s—
time taken of to marketΔttos0 … 1e+05
average velocity of man during turning backvav(tu)m/s—
time taken of turning backΔttus0 … 1e+05
average velocity of man during walkingvav(w)m/s—
time taken of walkingΔtws0 … 1e+05
average speed of man during to marketcav(to)m/s—
path length of man during to marketd(to)m—
average speed of man during turning backcav(tu)m/s—
path length of man during turning backd(tu)m—
average speed of man during walkingcav(w)m/s—
path length of man during walkingd(w)m—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
Δx(to)=x(market)-x(start)
change of position(to market)
Δx(tu)=x(later)-x(market)
change of position(turning back)
Δx(w)=x(later)-x(start)
change of position(walking)
vav(to)=Δx(to)Δtto
displacement a time(to market)
vav(tu)=Δx(tu)Δttu
displacement a time(turning back)
vav(w)=Δx(w)Δtw
displacement a time(walking)
cav(to)=d(to)Δtto
path a time(to market)
cav(tu)=d(tu)Δttu
path a time(turning back)
cav(w)=d(w)Δtw
path a time(walking)
d(w)=d(to)+d(tu)
path in parts(walking)
Δtw=Δtto+Δttu
time in parts(walking)
vav(to)=cav(to)
on a straight road
vav(tu)=−cav(tu)
walks back home