play phryzby with physics

Twice as Fast to Stop

solved UniformAcceleration

Q. Braking just as hardaf(b2)=ac(b1), how much farther does a car need to stopvc(b1₁)=0m/s, vf(b2₁)=0m/s from twice the speedvf(b2₀)=2⋅vc(b1₀)?

x₀ = 0 mv = 0 m/s

How it's solved

Solved with UniformAcceleration

Given

  • vc(b1₁)=0m/s from “to stop”
  • vf(b2₁)=0m/s from “to stop”
  • vf(b2₀)=2⋅vc(b1₀) from “twice the speed”
  • af(b2)=ac(b1) from “Braking just as hard”

Assumed

  • xc(b1₀)=0m
  • xf(b2₀)=0m

Find xf(b2₁)xc(b1₁).

Working
  1. velocity after a distance(braking)vc(b1₁)2=vc(b1₀)2+2⋅ac(b1)⋅(xc(b1₁)-xc(b1₀))
  2. xc(b1₁)=vc(b1₀)2−2⋅ac(b1)
  3. velocity after a distance(braking too)vf(b2₁)2=vf(b2₀)2+2⋅af(b2)⋅(xf(b2₁)-xf(b2₀))
  4. xf(b2₁)=(2⋅vc(b1₀))2−2⋅ac(b1)
  5. xf(b2₁)xc(b1₁)=4
Conclusion

Stopping distance goes as the square of the speed, because a car going twice as fast takes twice as long to stop and covers ground twice as fast all that 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 :twice_as_fast_to_stop do4  kind :scq5  describes "Braking just as hard, how much farther does a car need to stop from twice the speed?"67  option "Twice as far", as: :twice8  option "Four times as far", as: :four9  option "Eight times as far", as: :eight10  option "Just as far", as: :same11end
solution.rb
1require_relative "../questions/twice_as_fast_to_stop"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :twice_as_fast_to_stop, using: UniformAcceleration do5  objects :car, :faster_car6  car.goes(:braking)7  faster_car.goes(:braking_too)89  deduce_from "to stop", car.final_velocity => "0 m/s", faster_car.final_velocity => "0 m/s"10  deduce_from "twice the speed", faster_car.initial_velocity => 2 * car.initial_velocity11  deduce_from "Braking just as hard", faster_car.acceleration => car.acceleration12  assume car.initial_position => "0 m", faster_car.initial_position => "0 m"13  take twice: 2, four: 4, eight: 8, same: 11415  answer find_relation(faster_car.final_position / car.final_position)1617  conclusion "Stopping distance goes as the square of the speed, because a car going twice as " \18             "fast takes twice as long to stop and covers ground twice as fast all that time."19end
playground.rb
1require_relative "../solutions/twice_as_fast_to_stop"23play_with :twice_as_fast_to_stop do4  title "Twice as Fast to Stop"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
velocityvm/s—Acceleration
change of velocityΔvm/s—Acceleration
average accelerationaavm/s²—Acceleration
starting velocityv0m/s—Acceleration
final velocityvm/s—Acceleration
accelerationam/s²—UniformAcceleration
gravitygm/s²—UniformAcceleration
timets0 … 1e+05UniformAcceleration
displacement of car during brakingΔxc(b1)m—
position of car at end of brakingxc(b1₁)m—
position of car at start of brakingxc(b1₀)m—
displacement of faster car during braking tooΔxf(b2)m—
position of faster car at end of braking tooxf(b2₁)m—
position of faster car at start of braking tooxf(b2₀)m—
average velocity of car during brakingvav,c(b1)m/s—
time taken of brakingΔtb1s0 … 1e+05
average velocity of faster car during braking toovav,f(b2)m/s—
time taken of braking tooΔtb2s0 … 1e+05
average speed of car during brakingcav,c(b1)m/s—
path length of car during brakingdc(b1)m—
average speed of faster car during braking toocav,f(b2)m/s—
path length of faster car during braking toodf(b2)m—
change of velocity of car during brakingΔvc(b1)m/s—
velocity of car at end of braking from groundvc(b1₁)m/s—
velocity of car at start of braking from groundvc(b1₀)m/s—
change of velocity of faster car during braking tooΔvf(b2)m/s—
velocity of faster car at end of braking too from groundvf(b2₁)m/s—
velocity of faster car at start of braking too from groundvf(b2₀)m/s—
average acceleration of car during brakingaav,c(b1)m/s²—
average acceleration of faster car during braking tooaav,f(b2)m/s²—
acceleration of car during brakingac(b1)m/s²—
acceleration of faster car during braking tooaf(b2)m/s²—
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
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
Δxc(b1)=xc(b1₁)-xc(b1₀)
change of position(braking)
Δxf(b2)=xf(b2₁)-xf(b2₀)
change of position(braking too)
vav,c(b1)=Δxc(b1)Δtb1
displacement a time(braking)
vav,f(b2)=Δxf(b2)Δtb2
displacement a time(braking too)
cav,c(b1)=dc(b1)Δtb1
path a time(braking)
cav,f(b2)=df(b2)Δtb2
path a time(braking too)
Δvc(b1)=vc(b1₁)-vc(b1₀)
velocity gained(braking)
Δvf(b2)=vf(b2₁)-vf(b2₀)
velocity gained(braking too)
aav,c(b1)=Δvc(b1)Δtb1
velocity gained a time(braking)
aav,f(b2)=Δvf(b2)Δtb2
velocity gained a time(braking too)
vc(b1₁)=vc(b1₀)+ac(b1)⋅Δtb1
velocity after a time(braking)
vf(b2₁)=vf(b2₀)+af(b2)⋅Δtb2
velocity after a time(braking too)
xc(b1₁)=xc(b1₀)+vc(b1₀)⋅Δtb1+ac(b1)⋅Δtb122
position after a time(braking)
xf(b2₁)=xf(b2₀)+vf(b2₀)⋅Δtb2+af(b2)⋅Δtb222
position after a time(braking too)
vc(b1₁)2=vc(b1₀)2+2⋅ac(b1)⋅(xc(b1₁)-xc(b1₀))
velocity after a distance(braking)
vf(b2₁)2=vf(b2₀)2+2⋅af(b2)⋅(xf(b2₁)-xf(b2₀))
velocity after a distance(braking too)
xc(b1₁)-xc(b1₀)=(vc(b1₁)+vc(b1₀))⋅Δtb12
mean of the velocities(braking)
xf(b2₁)-xf(b2₀)=(vf(b2₁)+vf(b2₀))⋅Δtb22
mean of the velocities(braking too)
vf(b2₀)=2⋅vc(b1₀)
twice the speed
af(b2)=ac(b1)
Braking just as hard