play phryzby with physics

A Body in SHM

solved SimpleHarmonicMotion

Q. A body oscillates with SHM according to the equation x = (5 m) cosA=5m[(2π rad/s) tω=1rev/s + π/4φ=45°]. At t = 1.5 sΔt=1.5s, what is the speed of the body, in m/s?

−AO+AtxA = 5 mxv = ?Tt = 1.5 st = 1.5 sφ = 0.785 radω = 6.28 rad/s
Inputs
Δt
1.50 s
Outputs
speed|v1|?

How it's solved

Solved with SimpleHarmonicMotion

Given

  • Δt=1.5s
  • A=5m from “(5 m) cos”
  • ω=1rev/s from “(2π rad/s) t”
  • φ=45° from “+ π/4”

Find |v1|.

Working
  1. ω=1rev/s=6.28318531rad/s
  2. velocity in shm(body, oscillating)|v1|=−A⋅ω⋅sin⁡(ω⋅Δt+φ)
  3. |v1|=−5⋅6.28318531⋅sin⁡(6.28318531⋅1.5+0.785398163)
  4. |v1|=22.2 m/s
  5. |v1|≈22.2m/sto 3 significant figures
Conclusion

The speed is the amplitude times the angular frequency times the sine of the phase, largest as the body passes the middle.

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_body_in_shm do4  kind :numerical5  describes "A body oscillates with SHM according to the equation x = (5 m) cos[(2π rad/s) t + π/4]. At t = %{time}, " \6            "%{speed}, in m/s?"7  given time: "1.5 s"8  asks speed: "what is the speed of the body"9end
solution.rb
1require_relative "../questions/a_body_in_shm"2require_relative "../science/oscillations/simple_harmonic_motion"34solve :a_body_in_shm, using: SimpleHarmonicMotion do5  objects :body6  axes :x7  body.goes(:oscillating)89  take time: oscillating.time_taken1011  deduce_from "(5 m) cos", body.amplitude => "5 m"12  deduce_from "(2π rad/s) t", body.angular_frequency => "1 rev/s"13  deduce_from "+ π/4", body.phase_constant => "45 deg"1415  speed = body.final_velocity.magnitude16  answer speed:, in: "m/s", figures: 31718  conclusion "The speed is the amplitude times the angular frequency times the sine of the phase, " \19             "largest as the body passes the middle."20end
playground.rb
1require_relative "../solutions/a_body_in_shm"23play_with :a_body_in_shm do4  title "A Body in SHM"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞SimpleHarmonicMotion
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
amplitudeAm0 … ∞SimpleHarmonicMotion
strokesm—SimpleHarmonicMotion
angular frequencyωrad/s0 … ∞SimpleHarmonicMotion
frequencyνHz0 … ∞SimpleHarmonicMotion
phase constantφ——SimpleHarmonicMotion
maximum speedvmaxm/s—SimpleHarmonicMotion
maximum accelerationamaxm/s²—SimpleHarmonicMotion
accelerationam/s²—SimpleHarmonicMotion
displacement of body during oscillating along xΔxm—
position of body at end of oscillating along xx1m—
position of body at start of oscillating along xx0m—
average velocity of body during oscillating along xvavm/s—
time taken of oscillatingΔts0 … 1e+05
average speed of body during oscillatingcavm/s—
path length of body during oscillatingdm—
change of velocity of body during oscillating along xΔvm/s—
velocity of body at end of oscillating from ground along xv1m/s—
velocity of body at start of oscillating from ground along xv0m/s—
average acceleration of body during oscillating along xaavm/s²—
stroke of groundsgm—
amplitude of groundAgm0 … ∞
stroke of bodysm—
amplitude of bodyAm0 … ∞
angular frequency of groundωgrad/s0 … ∞
frequency of groundνgHz0 … ∞
angular frequency of bodyωrad/s0 … ∞
frequency of bodyνHz0 … ∞
maximum speed of groundvmax,gm/s—
maximum speed of bodyvmaxm/s—
maximum acceleration of groundamax,gm/s²—
maximum acceleration of bodyamaxm/s²—
position of body at end of oscillating|x1|m—
phase constant of bodyφ——
velocity of body at end of oscillating from ground|v1|m/s—
acceleration of body at end of oscillating|a1|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
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
sb=2⋅Ab
stroke is twice the amplitude
ωb=2⋅π⋅νb
angular frequency is a turn each oscillation
vmax,b=ωb⋅Ab
fastest through the middle
amax,b=ωb2⋅Ab
hardest pulled at the ends
Δx=x1-x0
change of position(oscillating, x)
vav=ΔxΔt
displacement a time(oscillating, x)
cav=dΔt
path a time(oscillating, x)
Δv=v1-v0
velocity gained(oscillating, x)
aav=ΔvΔt
velocity gained a time(oscillating, x)
sg=2⋅Ag
stroke is twice the amplitude(ground)
s=2⋅A
stroke is twice the amplitude(body)
ωg=2⋅π⋅νg
angular frequency is a turn each oscillation(ground)
ω=2⋅π⋅ν
angular frequency is a turn each oscillation(body)
vmax,g=ωg⋅Ag
fastest through the middle(ground)
vmax=ω⋅A
fastest through the middle(body)
amax,g=ωg2⋅Ag
hardest pulled at the ends(ground)
amax=ω2⋅A
hardest pulled at the ends(body)
|x1|=A⋅cos⁡(ω⋅Δt+φ)
displacement in shm(body, oscillating)
|v1|=−A⋅ω⋅sin⁡(ω⋅Δt+φ)
velocity in shm(body, oscillating)
|a1|=−ω2⋅|x1|
acceleration in shm(body, oscillating)
A2=x12+(v1ω)2
amplitude from where and how fast(body, oscillating)