I find it best to start this question with a thought experiment. We have a rocket ship and Earth. For our purposes, Earth has no acceleration or velocity and begins at the origin. The rocket ship accelerates away from Earth with a constant acceleration $a$. This rocket ship begins at the origin ($x'_0=0$) with 0 velocity. In this thought experiment, we ignore higher order derivatives and gravity. If anything, we should derive the relativistic effects of gravity from the results of this thought experiment, as shown by the equivalence principle.
In my attempts to solve this so far, I have assumed that the speed of light is invariant in the accelerating reference frame (so that$x'=ct'$ here for a light pulse). Is this valid? Is acceleration (as shown in the thought experiment) absolute or relative (are both the Earth and the spaceship accelerating relative to each other or is the spaceship absolutely accelerating)? So far, here is what I have come up with in trying to solve this. Please tell me if I am wrong anywhere, what next steps I should take, and/or what conclusions I should come to:
The Lorentz factor gamma will still be a part of this accelerating coordinate transformation, but instead of being a function of $v$, it will be a function of $at$, as that is the velocity between the reference frames (remember that $v_0$ is 0 for my initial conditions, so I never considered it for simplicity, but feel free to include it as it is important in this transformation) so that gamma takes the form $1/\sqrt{1-(at)^2/c^2}$.
For the $x' $ transformation equation, $ x $ is unchanged, as it refers to the position of an event, and thus stays the same when acceleration is introduced to the transformation.
For the $x' $ transformation equation, $ vt $ is integrated (I am probably using an incorrect term here, I mean that acceleration is included in the velocity), and becomes $1/2at^2+v_0^2$ (where $v_0 $ is 0 for my initial conditions). as such, the $x' $ transformation equation is $\gamma((x_{event})-(v_{frame})t-1/2(a_{frame})t^2)$.
I attempted to find the $t' $ transformation equation with these parameters and knowing that $ x'=ct' $ while $ x=ct$, but I wasn't able to solve it. What are the spacetime coordinate transformations between reference frames when one is accelerating relative to the other? How do we find them?