calculate the position of a body moving along a path represented by given function.

108 Views Asked by At

Suppose that we have a body that will move over a curve (for example a parabolic curve). The equation of that curve is : $$ y+k=(x+h)^2 $$ Where (h,k) are the (x,y) of the vertex. Also suppose that the body moves with speed (v) m/s and the position of the start point of the path is known for example:$$(y_s, x_s)$$

Please note that the position is calculate when a laser machine beam which rotates at speed 36 degree/sec, hits the body. How can one calculate the (x,y) of the body positions(E,B,C,E,F,G) along the path each laser beam hit.

I have performed the required but in a particular case (circular path at any center). But in our case it is different and I want the concept of the solution to be applicable to any function. Thanks in advance.

Here is a figure for more clarification: enter image description here

2

There are 2 best solutions below

8
On

You can parameterize any equation to make it a function of time. Some are easier, so of course, others require more effort. In the case of a parabola expressed as $y+k=(x+h)^2$, let $x(t)=t$ and $y(t)=t^2+2ht+h^2-k$. Using the parametric equation, we can know where the body is at any time t. As written, $t=0$ is at the vertex. If we wanted to start elsewhere, we could let $x=t-p$ where p is the period of the cycle (i.e. p=36 sec). $$\left( \begin{array}{c} x(t)=t-p\\ y(t) = t^2+2ht-2pt+h^2-2hp+p^2-k \end{array}\right).$$ Suppose for example that $p=36$ and we let $x=t-5p$, then $y(t)=(t-5\cdot 36)^2 + 4(t-5\cdot 36)+1$ and $t$ can range from 0 to 360, but you are only interested in $t$ when it is $0, 36, 72 ...$ So we build a graph that shows the points calculated at those times.enter image description here

1
On

The laser beam is effectively a family of rays parameterized by time, which can be represented by the rotating unit vector $$\mathbf L(t) = (\cos\omega t, \sin\omega t),$$ where $\omega$ is the angular velocity of the ray. For simplicity, I’m assuming that the laser starts off pointing in the positive $x$-direction at $t=0$. You can always add a constant phase shift $\delta$ or offset the time if this is not the case. If you can come up with a time parameterization $\mathbf\gamma(t)$ of the object path, then the problem becomes one of finding the solutions to $\mathbf\gamma(t)=c\mathbf L(t)$, $c\ge0$.

In theory, finding this time parameterization is straightforward. Every regular parameterized curve can be reparameterized by arc length: if $\mathbf\gamma$ is regular, then the arc length function $$s(\lambda) = \int_a^\lambda \|\mathbf\gamma'(u)\|\,du$$ is an increasing differentiable function, so has a differentiable inverse $\lambda = \lambda(s)$. Setting $s=vt$ in this arc length parameterization of the curve then has the property that the object moves with constant speed $v$, as required. (You can verify this by an application of the chain rule.)

In practice, however, the arc length function for most curves doesn’t have a nice inverse, and in fact the arc length itself might not be expressible in terms of elementary functions. For instance, for your parabola, the arc length function derived in the answers to this question doesn’t have a closed-form inverse. Indeed, as Will Jagy notes in a comment to that question, a parabola is one of the few curves for which the arc length integral has a closed form, however ugly. Since we have $s=vt$, you could try solving $$c\left(\cos\left(\frac\omega vs(\lambda)\right),\sin\left(\frac\omega vs(\lambda)\right)\right) = \mathbf\gamma(\lambda)$$ for some convenient parameterization of the parabola, but that doesn’t look very promising, either. In general, you’re going to have to resort to numeric methods to solve this problem.