Daniel B. answered 02/25/23
A retired computer professional to teach math, physics
Let
k = 400 N/m be the spring constant,
m1 = 5 kg be the mass of the block attached to the spring,
m2 = 3 kg be the mass of the block that falls down,
Δx1 = 12.5 cm = 0.125 m be the compression due to the block m1,
Δx2 (to be calculated) be the additional compression due to block m2,
h = 0.750 m be the height from which m2 falls on m1,
g be gravitational acceleration.
The statement of the problem is unusual in a couple ways.
First is that all three quantities m1, k, Δx1 are given,
although they are related by the spring equation
m1g = kΔx1 (1)
But we can use it at least to see what approximation for g you are to use:
g = kΔx1/m1 = 400×0.125/5 = 10 m/s²
I am now going to calculate Δx2, but remember that your answer should be Δx1+Δx2.
The solution is based on conservation of energy.
The potential energy of m1, is converted to kinetic energy;
I assume that this is how you got the velocity after the blocks touch.
Continuing, when the bottom of the oscillation is reached,
the original potential energy got converted to the spring energy.
At the bottom of the oscillation the velocity is 0 and so is the kinetic energy.
It is convenient (but not necessary) to make the potential energy also 0 at the bottom of the oscillation.
For that we will use the bottom of the oscillation as the reference point for potential energy.
Thus at the beginning, the block m1 has potential energy m1gΔx2, and
the block m2 has potential energy m2g(Δx2+h).
There are two ways of solving it.
THE EASIER SOLUTION:
We can treat the combination of the spring together with m1 as one spring
whose equilibrium position is at Δx1. (This can be justified formally.)
Under that assumption, the spring energy at the bottom is
kΔx2²/2
So the conservation of energy statement is
kΔx2²/2 = m2g(Δx2+h) (2)
THE HARDER SOLUTION:
Use the original equilibrium position before compression by m1.
In that case, the spring energy at the bottom is k(Δx1+Δx2)²/2, and
it came from the potential energy of m1 and m2, plus the initial spring energy
kΔx1²/2.
So the conservation of energy statement is
k(Δx1+Δx2)²/2 = kΔx1²/2 + m2g(Δx2+h) + m1gΔx2
Expand the left side
kΔx1²/2 + kΔx1Δx2 + kΔx2²/2 = kΔx1²/2 + m2g(Δx2+h) + m1gΔx2
Cancel equal terms
kΔx1Δx2 + kΔx2²/2 = m2g(Δx2+h) + m1gΔx2
Apply the substitution (1)
m1gΔx2 + kΔx2²/2 = m2g(Δx2+h) + m1gΔx2
Cancel equal terms
kΔx2²/2 = m2g(Δx2+h)
which is the the same equation as (2).
Either way we get the quadratic equation
kΔx2²/2 - m2gΔx2 - m2gh = 0
It has the solutions
Δx2 = (m2g ± √((m2g)² + 2km2gh))/k = (3×10 ± √((3×10)² + 2×400×3×10×0.75))/400
Δx2 = 0.42 m
Δx2 = -0.27 m
The solution Δx2 = 0.42 represent the bottom of the oscillation,
and the solution Δx2 = -0.27 represents the top of the oscillation.
We get both extremes because the spring energy is the same at both extremes.