kent davidge said:
I don't know how to do it?
Here's the general process you'll go through. (For this particular problem it's overkill; once you understand the process you can skip the intermediate steps where you formally write down the coordinate transformations, skip straight to writing the trajectory in the primed coordinates as
@PeroK just did).
First we write down the coordinate transformations between the primed and the unprimed frames. These have nothing to do with the motion of any particles anything else; they just tell you how to calculate the primed coordinates of a given point from the unprimed coordinates and vice versa. The transformations will be four functions$$x'=x'(x,y,z,t) \\y'=y'(x,y,z,t)\\z'=z'(x,y,z,t)\\t'=t'(x,y,z,t)$$ and their inverses will give you the coordinates in the unprimed frame of a point, given its coordinates in the primed frame. In this problem with the elevator accelerating at ##a_e## we can choose the origins of the two frames to coincide and be at rest relative to one another at time zero; then the transformations are straightforward:$$x'(x,y,z,t)=x-a_et^2/2 \\y'(x,y,z,t)=y\\z'(x,y,z,t)=z\\t'(x,y,z,t)=t$$and say that everything is the same except that the the origin of the primed frame is displaced by ##a_et^2/2## from the origin of the unprimed frame. The only non-trivial inverse is ##x(x',y',z',t')=x'+a_et'^2/2##.
Ok, so we have two coordinate systems and we know how to transform between them. Now we're ready to take on the problem of transforming the trajectory of a moving particle from one frame to the other. The trajectory is described by three functions giving the coordinates of the position of the particle at time ##t##:$$x_p=x_p(t)\\y_p=y_p(t)\\z_p=z_p(t)$$We need to find the corresponding functions ##x_p'(t')##, ##y_p'(t')##, and ##z_p'(t')##.
In this particular problem we have ##x_p(t)=x_0+v_0t-gt^2/2## because that's the trajectory you gave when you started this thread (##y_p(t)## and ##z_p(t)## are zero of course, and ##-g## is the downwards gravitational acceleration).
From here it's just algebra: we use the transformation equations to get rid of all the unprimed coordinates to get the description of the trajectory using only primed coordinates. For this problem it's pretty easy:$$x'_p(t)=x'(x_p(t), y_p(t), z_p(t))\\=x_0+v_0t-gt^2/2-a_et^2/2\\=x_0+v_0t-gt^2/2-a_et^2/2\\=x_0+v_0t'-(a_e+g)t'^2/2$$where we used ##t'=t## in the last step.
That's the equation that
@PeroK supplied above for the trajectory of the particle in the primed frame. Differentiate once with respect to ##t'## to get the speed in that frame, differentiate again to get the acceleration.
Note also that that the formula you asked about in the first post of this thread works in both the primed and the unprimed frame, although the speed, acceleration and distance traveled are frame-dependent and different in the two frames. That won't be true for all transformations, but it works for this particularly simple case.