A Block on a Spring
Q. A block whose mass is 1 kgkg is fastened to a spring. The spring has a spring constant of 50 N/mN/m. The block is pulled to a distance x = 10 cmcm from its equilibrium position at x = 0 on a frictionless surface from rest at t = 0. What is the kinetic energy of the block when it is 5 cmcm away from the mean position, in joules?
Inputs
Outputs
energy?
How it's solved
Solved with SpringOscillator
Given
- kg
- N/m
- cm
- cm
Find .
Working
- cmm
- cmm
- energy of an oscillator(block)
- J
- energies at an instant(block, oscillating, 2)
- J
- energies at an instant(block, oscillating, 3)
- J
- Jto 2 significant figures
Conclusion
The oscillator's energy stays half the spring constant times the amplitude squared; halfway out, the spring holds a quarter of it and the rest is the block's motion.
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_block_on_a_spring do4 kind :numerical5 describes "A block whose mass is %{mass} is fastened to a spring. The spring has a spring constant of %{constant}. " \6 "The block is pulled to a distance x = %{amplitude} from its equilibrium position at x = 0 on a " \7 "frictionless surface from rest at t = 0. %{energy} when it is %{place} away from the mean position, in " \8 "joules?"9 given mass: "1 kg"10 given constant: "50 N/m"11 given amplitude: "10 cm"12 given place: "5 cm"13 asks energy: "What is the kinetic energy of the block"14end1require_relative "../questions/a_block_on_a_spring"2require_relative "../science/oscillations/spring_oscillator"34solve :a_block_on_a_spring, using: SpringOscillator do5 objects :block6 axes :x7 block.goes(:oscillating)89 take mass: block.mass10 take constant: block.spring_constant11 take amplitude: block.amplitude12 take place: block.final_position1314 energy = block.kinetic_energy(at: oscillating.end)15 answer energy:, in: "J", figures: 21617 conclusion "The oscillator's energy stays half the spring constant times the amplitude squared; halfway " \18 "out, the spring holds a quarter of it and the rest is the block's motion."19endplayground.rb
1require_relative "../solutions/a_block_on_a_spring"23play_with :a_block_on_a_spring do4 title "A Block on a Spring"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 | |
| mass | kg | 0 … ∞ | SpringOscillator | |
| spring constant | N/m | — | SpringOscillator | |
| kinetic energy | J | — | SpringOscillator | |
| potential energy | J | — | SpringOscillator | |
| total energy | J | — | SpringOscillator | |
| displacement of block during oscillating along x | m | — | ||
| position of block at end of oscillating along x | m | — | ||
| position of block at start of oscillating along x | m | — | ||
| average velocity of block during oscillating along x | m/s | — | ||
| time taken of oscillating | s | 0 … 1e+05 | ||
| average speed of block during oscillating | m/s | — | ||
| path length of block during oscillating | m | — | ||
| change of velocity of block during oscillating along x | m/s | — | ||
| velocity of block at end of oscillating from ground along x | m/s | — | ||
| velocity of block at start of oscillating from ground along x | m/s | — | ||
| average acceleration of block during oscillating along x | m/s² | — | ||
| stroke of ground | m | — | ||
| amplitude of ground | m | 0 … ∞ | ||
| stroke of block | m | — | ||
| amplitude of block | m | 0 … ∞ | ||
| angular frequency of ground | rad/s | 0 … ∞ | ||
| frequency of ground | Hz | 0 … ∞ | ||
| angular frequency of block | rad/s | 0 … ∞ | ||
| frequency of block | Hz | 0 … ∞ | ||
| maximum speed of ground | m/s | — | ||
| maximum speed of block | m/s | — | ||
| maximum acceleration of ground | m/s² | — | ||
| maximum acceleration of block | m/s² | — | ||
| position of block at end of oscillating | m | — | ||
| phase constant of block | — | — | ||
| velocity of block at end of oscillating from ground | m/s | — | ||
| acceleration of block at end of oscillating | m/s² | — | ||
| spring constant of ground | N/m | — | ||
| mass of ground | kg | 0 … ∞ | ||
| spring constant of block | N/m | — | ||
| mass of block | kg | 0 … ∞ | ||
| total energy of ground | J | — | ||
| total energy of block | J | — | ||
| kinetic energy of block at end of oscillating | J | — | ||
| potential energy of block at end of oscillating | J | — |