# Homework Help: Suddenly changing k in a 2 spring system

1. Oct 2, 2012

### MeMoses

1. The problem statement, all variables and given/known data
Two springs each have a spring constant k and equilibrium length l. They are both stretched a distance l and attached to a mass m and two walls. At a given instant the right spring suddenly changes its spring constant to 3k. What is the resulting x(t)? Take initial position to be x=0
Basically 2 springs stretched between 2 walls with mass m in the middle and a spring constant suddenly changes to 3k.

2. Relevant equations

I imagine I just have to get the equation for force and solve the resulting differential equation.

3. The attempt at a solution
I started out drawing a diagram and each spring is exerting a force of k*l in opposite directions. When the spring constant changes the net force is equal to 2k*l towards the right. I cant seem to get F in terms of x though. Any help is appreciated.

2. Oct 2, 2012

### MeMoses

Okay I simplified the equation to F(x) = 2k(l*x - 2x) = mx'' Can some one show me how guessing that x = e**(alpha*t) works here. I tried seperating the variables which works but is overly complicated and i know there is a simpler approach

3. Oct 2, 2012

### nasu

The elastic force depends on the deformation of the spring and not on its equilibrium length. Your expression for force is not correct.
Try to draw a diagram and identify by how much is each spring stretched or compressed when the ball is displaced by "x" from the original position.

4. Oct 2, 2012

### MeMoses

I have the force at x=0 is 2kl If e1 and e2 are the extensions of the springs then -k*e1 + 3k*e2 = 2kl.
And my force = -ke1 - kx + 3ke2 -3kx which simplifies to 2k(l-2x), i accidently added an x after the l which might have added a problem. I i dont know if its clear but at the start the mass is 2*l from each wall since each spring is stretched an additional l.

5. Oct 2, 2012

### voko

From the left spring's perspective, what is its extension from the unstretched state at certain x? When x = 0, it is l. What is it when x < 0, x > 0? How about x = -l, or +l? What is the general expression for it? Once you know the general expression for the extension, plug it into Hook's law, but mind the signs. Then do the same for the right spring. The net force is the sum of the two forces.

6. Oct 2, 2012

### MeMoses

So the force from the left spring is -k(l+x) and the right is 3k(l-x) and then add these, correct? I assume it is because this is the same as I got before.

7. Oct 2, 2012

### voko

That seems good so far.

8. Oct 2, 2012

### nasu

Newer mind. I did not see that l is both the natural length and the the amount of stretch.

9. Oct 2, 2012

### MeMoses

Thanks i figured out using the guess that x=e^(alpha*t) and im fairly certain I solved it correctly. I got x(t) = l/2 + sin(2wt) + cos(2wt) with w = sqrt(k/m). Thanks for the help

10. Oct 2, 2012

### voko

This does not look right. What is the general solution to the equation?

11. Oct 2, 2012

### MeMoses

I'm sorry Im not the best with terminology but isnt x(t) = l/2 + sin(2wt) + cos(2wt) the general solution? Also I double checked the solution to my differential equation on wolframalpha which has the same answer (I know its probably not the best way to verify but its quick and easy).

12. Oct 2, 2012

### voko

The general solution to a second order differential equation must have two indefinite constants.

Your solution does not satisfy the condition that at t = 0, x = 0 and v = x' = 0.

13. Oct 2, 2012

### MeMoses

Oh thats my bad I cannot copy my own notes. Its Asin + Bsin

14. Oct 2, 2012

### voko

You need to determine A and B from the initial conditions.

15. Oct 2, 2012

### MeMoses

How can I do that with the given information?

16. Oct 2, 2012

### voko

See #12. Can you explain why these values?

17. Oct 2, 2012

### MeMoses

oh ok I completely missed that. Yea they make sense, so A = 0(from x'(0)) and B = -l/2(from x(0))

18. Oct 2, 2012

Very well.