play phryzby with physics

A Position Rule

solved UniformAcceleration

Q. A body's position is x = a + bt²v0=0m/s, where a is 8.5 mx0=8.5m and b is 2.5 m/s²a=5.0m/s². How fast is it moving at t = 2.0 st=2.0s, in m/s?

x₀ = 8.5 mv₀ = 0 m/sx = ?v = ?displacement ?Δt = 2 sa = ?
Inputs
x0
8.50 m
t
2.00 s
Outputs
speedv?

How it's solved

Solved with UniformAcceleration

Given

  • x0=8.5m
  • t=2.0s
  • v0=0m/s from “x = a + bt²”
  • a=5.0m/s²

Find v.

Working
  1. velocity after a timev=v0+a⋅t
  2. v=0+5⋅2
  3. v=10.0 m/s
Conclusion

A position that grows as the square of the time is a body starting from rest with a steady acceleration of twice b.

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_position_rule do4  kind :numerical5  describes "A body's position is x = a + bt², where a is %{a} and b is 2.5 m/s². %{speed} at " \6          "t = %{t}, in m/s?"7  given a: "8.5 m"8  given t: "2.0 s"9  asks speed: "How fast is it moving"10end
solution.rb
1require_relative "../questions/a_position_rule"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :a_position_rule, using: UniformAcceleration do5  take a: :x_0, t: :t6  deduce_from "x = a + bt²", v_0: "0 m/s"7  deduce_from "b is 2.5 m/s²", a: "5.0 m/s2"8  take speed: :v9  answer find_value(:speed, in: "m/s")1011  conclusion "A position that grows as the square of the time is a body starting from rest with a " \12             "steady acceleration of twice b."13end
playground.rb
1require_relative "../solutions/a_position_rule"23play_with :a_position_rule do4  title "A Position Rule"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
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
Δx=x-x0
change of position
vav=ΔxΔt
displacement a time
cav=dΔt
path a time
Δv=v-v0
velocity gained
aav=ΔvΔt
velocity gained a time
v=v0+a⋅t
velocity after a time
x=x0+v0⋅t+a⋅t22
position after a time
v2=v02+2⋅a⋅(x-x0)
velocity after a distance
x-x0=(v+v0)⋅t2
mean of the velocities