A Body in SHM
Q. A body oscillates with SHM according to the equation x = (5 m) cosm[(2π rad/s) trev/s + π/4]. At t = 1.5 ss, what is the speed of the body, in m/s?
Inputs
Outputs
speed?
How it's solved
Solved with SimpleHarmonicMotion
Given
- s
- m from “(5 m) cos”
- rev/s from “(2π rad/s) t”
- from “+ π/4”
Find .
Working
- rev/srad/s
- velocity in shm(body, oscillating)
- m/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.
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"9end1require_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."20endplayground.rb
1require_relative "../solutions/a_body_in_shm"23play_with :a_body_in_shm do4 title "A Body in SHM"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| pi | — | 0 … ∞ | SimpleHarmonicMotion | |
| position | m | — | Velocity | |
| displacement | m | — | Velocity | |
| path length | m | — | Velocity | |
| time taken | s | 0 … 1e+05 | Velocity | |
| average velocity | m/s | — | Velocity | |
| average speed | m/s | — | Velocity | |
| starting position | m | — | Velocity | |
| final position | m | — | Velocity | |
| velocity | m/s | — | Acceleration | |
| change of velocity | m/s | — | Acceleration | |
| average acceleration | m/s² | — | Acceleration | |
| starting velocity | m/s | — | Acceleration | |
| final velocity | m/s | — | Acceleration | |
| amplitude | m | 0 … ∞ | SimpleHarmonicMotion | |
| stroke | m | — | SimpleHarmonicMotion | |
| angular frequency | rad/s | 0 … ∞ | SimpleHarmonicMotion | |
| frequency | Hz | 0 … ∞ | SimpleHarmonicMotion | |
| phase constant | — | — | SimpleHarmonicMotion | |
| maximum speed | m/s | — | SimpleHarmonicMotion | |
| maximum acceleration | m/s² | — | SimpleHarmonicMotion | |
| acceleration | m/s² | — | SimpleHarmonicMotion | |
| displacement of body during oscillating along x | m | — | ||
| position of body at end of oscillating along x | m | — | ||
| position of body at start of oscillating along x | m | — | ||
| average velocity of body during oscillating along x | m/s | — | ||
| time taken of oscillating | s | 0 … 1e+05 | ||
| average speed of body during oscillating | m/s | — | ||
| path length of body during oscillating | m | — | ||
| change of velocity of body during oscillating along x | m/s | — | ||
| velocity of body at end of oscillating from ground along x | m/s | — | ||
| velocity of body at start of oscillating from ground along x | m/s | — | ||
| average acceleration of body during oscillating along x | m/s² | — | ||
| stroke of ground | m | — | ||
| amplitude of ground | m | 0 … ∞ | ||
| stroke of body | m | — | ||
| amplitude of body | m | 0 … ∞ | ||
| angular frequency of ground | rad/s | 0 … ∞ | ||
| frequency of ground | Hz | 0 … ∞ | ||
| angular frequency of body | rad/s | 0 … ∞ | ||
| frequency of body | Hz | 0 … ∞ | ||
| maximum speed of ground | m/s | — | ||
| maximum speed of body | m/s | — | ||
| maximum acceleration of ground | m/s² | — | ||
| maximum acceleration of body | m/s² | — | ||
| position of body at end of oscillating | m | — | ||
| phase constant of body | — | — | ||
| velocity of body at end of oscillating from ground | m/s | — | ||
| acceleration of body at end of oscillating | m/s² | — |