When the spring constant changes mid-problem