# Hooke's Law function

1. Mar 27, 2005

### whozum

I dont know anything about diff eq but:

$$F = ma = -kx(t)$$

$$a = \frac{d^2(x)}{dt^2}$$

$$-kx(t) = m\frac{d^2(x)}{dt^2}$$

So we need a function whos second derivative is the same as the function itself.

I know hooke's law says the function is $$cos(\omega t)$$ but I dont see why $$e^x$$ doesnt satisfy the original condition.

Can anyone shed some light?

2. Mar 27, 2005

### dextercioby

It does,but with a complex exponent.

$$e^{i\omega t},e^{-i\omega t}$$

are the 2 independent solutions which form a basis in the solution space.

Daniel.

3. Mar 27, 2005

### Data

It's because of the negative sign on the left side. This is why the complex exponent is required as dexter indicated (differentiate twice to get a factor of $(\pm i)^2 = -1$ in front). The complex exponential solutions $e^{i\omega t}$ and $e^{-i\omega t}$ are equivalent to the usual $\cos{\omega t}$ and $\sin{\omega t}$, and in fact are more useful in some situations (e.g. barrier penetration in quantum mechanics).

Last edited: Mar 27, 2005
4. Mar 27, 2005

### whozum

So you technically could use $$e^{i\omega t}$$ ? I was thinking you could just associate the negative with the constant k/m, but you cant because mass isnt negative and a spring coefficient is the same, right?

A more physics question, where does the $$\omega t$$ come from, instead of just t?

5. Mar 27, 2005

### dextercioby

Nope.U need to adjust the complex exponentials & constants of integration,as to cancel away all imaginary parts of the final solution.Remember that this is a physics problem whose solutions have physical meaning,namely length which must be real...

As for $\omega t$,it's simple:check the units in SI...That product is adimensional (the radian & the steradian are not standard units).That $\omega$ is the angular frequency of oscillation...

Daniel.

6. Mar 27, 2005

### Data

The signs of $k$ and $m$ are immaterial. If they are negative or positive in one place, then they are in any other as well. You can't "associate" the negative sign with them.

The solution to the ODE

$$\frac{d^2x}{dt^2} = -\alpha x(t)$$

is always

$$x(t) = Ae^{-i\omega t} + Be^{i\omega t}$$

where $\omega = \sqrt{\alpha}$. If $\alpha$ happens to be negative then taking the square root will give you another $i$ and you'll get real exponents once simplified.

Alternatively you could group constants and just solve

$$\frac{d^2x}{dt^2} = \beta x(t)$$

where $\beta = -\alpha$. This would have the solution

$$x(t) = Ae^{\gamma t} + Be^{-\gamma t}$$

where $\gamma = \sqrt{\beta} = \sqrt{-\alpha} = i\sqrt{\alpha} = i \omega$ so you get the same result as before.

In the case of your particular equation, you just have $\alpha = \frac{k}{m}$ so you get the familiar

$$\omega = \sqrt{\frac{k}{m}}$$

As to your question, mathematically, the reason that you need the $\omega t$ instead of just $t$ is that otherwise your "solutions" simply won't satisfy the DE.

Take $x(t) = \cos{t}$. Then

[tex] \frac{dx}{dt} = -\sin{t} \Longrightarrow \frac{d^2x}{dt^2} = -\cos{t} = -x(t) \neq -\frac{k}{m}x(t)[/itex]

on the other hand taking $x(t) = \cos{\omega t}$ gives

[tex] \frac{dx}{dt} = -\omega \sin{\omega t} \Longrightarrow \frac{d^2x}{dt^2} = -\omega^2 \cos{\omega t} = -\omega^2 x(t) = -\frac{k}{m}x(t)[/itex]

as you wanted.

This makes sense from a physics perspective, since I don't think you'd really expect periodic things in nature to have periods of $2\pi$ (this would make things way too easy!!! )

Last edited: Mar 27, 2005
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?