Archive

Archive for June, 2013

From Acceleration to Displacement (part 2)

June 29th, 2013 No comments

In a previous post I showed how to analytically double integrate (or rather repeat integrate) a \sin wave to arrive at displacement or position. Here I’ll make it a little more generic, by integrating a sum of \sin waves, each with its own amplitude and phase. This exercise is motivated by the fact that any arbitrarily complex waveform can be expressed as the sum of a number of sinusoids, so this will allow us to obtain the exact displacement when the acceleration is arbitrarily complex, as long as we’re able to determine (through FFT perhaps) the sinusoids that make up the acceleration.

We start with an acceleration defined as:

 A = \sum\limits_{i} a_i \sin(c_i t) dt

First integration, to obtain velocity:

(1)    \begin{align*} V = \int\limits_{s}^{e} \sum\limits_{i} a_i \sin(c_i t) dt &= \sum\limits_{i}{ - \frac{a_i \cos(c_i x)}{c_i}\bigg|_{s}^{e}} \\ &= \sum\limits_{i}{ - \frac{a_i \cos(c_i e)}{c_i}} \ - \sum\limits_{i}{ - \frac{a_i \cos(c_i s)}{c_i}} \end{align*}

Let m \equiv \sum\limits_{i}{ - \frac{a_i \cos(c_i s)}{c_i}} and then do the second integration, to obtain displacement or position.

(2)    \begin{align*} D &= \int\limits_{g}^{h} \sum\limits_{i}{ - \frac{a_i \cos(c_i e)}{c_i}} \ - m\ de \\ &= \sum\limits_{i}{-\frac{a_i \sin(c_i e)}{c_i^2} - me \bigg|_g^h} \\ &= \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i h)}{c_i^2}} - mh  \right] - \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i g)}{c_i^2}} - mg  \right] \end{align*}

Substitute everything back in (given g \equiv s and h \equiv e), and simplify:

(3)    \begin{align*} D &= \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i h)}{c_i^2}} - mh \right] - \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i g)}{c_i^2}} - mg \right] \\ &= \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i e)}{c_i^2}} - me \right] - \left[ \sum\limits_{i}{-\frac{a_i \sin(c_i s)}{c_i^2}} - ms \right] \\ &= \sum\limits_{i}{-\frac{a_i \sin(c_i e)}{c_i^2}} \ - \sum\limits_{i}{-\frac{a_i \sin(c_i s)}{c_i^2}} + (s-e)\sum\limits_{i}{ - \frac{a_i \cos(c_i s)}{c_i}} \\ &= \sum\limits_{i}{\frac{a_i \sin(c_i s)}{c_i^2}} \ - \sum\limits_{i}{\frac{a_i \sin(c_i e)}{c_i^2}} + (e-s)\sum\limits_{i}{\frac{a_i \cos(c_i s)}{c_i}} \end{align*}

Finally, to take the phase of the signal into account, we would start with:

 A = \sum\limits_{i} a_i \sin(c_i t + p_i) dt

And end with:

 D = \sum\limits_{i}{\frac{a_i \sin(c_i s + p_i)}{c_i^2}} \ - \sum\limits_{i}{\frac{a_i \sin(c_i e + p_i)}{c_i^2}} + (e-s)\sum\limits_{i}{\frac{a_i \cos(c_i s + p_i)}{c_i}}

Categories: Uncategorized Tags: