# Horizontal displacement of a falling object from trajectory length

I have an object falling down in a parabolic trajectory. I can estimate the total distance traveled during the time t, i.e. the length of the parabola's arc is known. I need an efficient algorithm that estimates the horizontal displacement of an object. The estimation can be rough. An error within, say, 2-3% is acceptable.

-
Are you assuming that at time $t=0$ the object has velocity zero? If not there are parabolas having some fixed arc length which have different horizontal displacement, so that you can't determine the horizontal displacement only from the arc length. – coffeemath Jul 7 '13 at 15:36

Given a (differentiable) function $f: \mathbb{R} \to \mathbb{R}$, the arc length $l$ of the path between points $f(\alpha)$ and $f(\beta)$ is given by $$l = \int_\alpha^\beta \sqrt{1+(f'(x))^2}\,dx$$
A general quadratic function is given by $f(x) = ax^2+bx+c$, and so $f'(x) = 2ax + b$. Substituting this into the expression for $l$ above and integrating gives $$l = \left.\frac{1}{4a} \left((b+2ax) \sqrt{1+(b+2ax)^2} + \text{arcsinh}(b+2ax) \right)\right|^\beta_\alpha \ .$$ The distance traveled in the $x$-direction, say $\Delta x$, is $\beta - \alpha$. You have stated that you know $l$; in order to know $\Delta x$ you need to know at the very least $a$ and $b$ (the coefficients of the quadratic function $f$). In this event, you might be able to solve the preceding equation for $\Delta x$ (technically it would be one equation in two unknowns, so I am not even sure you could manipulate it to get $\beta - \alpha$). However, if you know $a$ and $b$ then it is likely that you can find $\Delta x$ without having to go to this trouble.
I think the result of the integral should have $\sin^{-1}$ – whatever Jul 7 '13 at 16:28
@metacompactness: as I said, I'm trying to solve the same problem. The source of error in the traditional approach with cancelling the gravity vector is that the device can't cancel g accurate enough. I'm now trying to build a solution that just takes raw accelerometer data with g included. Of course the device is not falling when it's in your pocket, but if you take raw accelerometer data it would appear to the algorithm that it is. – mojuba Jul 7 '13 at 17:31