We know that the $v-t$ graph for constant acceleration is a straight line. But when the speed becomes comparable to $c$, the speed of light, relativistic effects come into play. Suppose if a rocket on earth starts from rest (A) with constant acceleration or (B) with increasing acceleration. Since, there is acceleration in both the cases speed will increase but it will never reach $c$ which means that acceleration has to decrease from somewhere. Then the graphs looks like these:
I tried to obtain an expression for the acceleration by using the inverse Lorentz transformation equations in STR.
In STR the $v$ in $\gamma=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}$ is constant. But in this rocket example this $v$ is itself changing and so I treated it as a variable. Let the rocket be $S'$ and the earth be $S$ and $S'$ be moving along $x$-direction. Now to see from $S$ how $S'$ is accelerating, I took a fixed position in $x'$-axis. For simplicity, I took its origin i.e., $x'=0$ so that $x=vt'\gamma$. Then I differentiated $x$ with respect to $t$, substituted $t'$, substituted $\frac{dt'}{dt}$ and tried to get an expression for $\frac{dv}{dt}$. But the result I got does not make sense.
I am not familiar with GR so I thought this must be explained in GR and I searched in the Internet if there is any such formula but did not find any. Is it the wrong way I am going? If it is there in GR to which I am not familiar, I seek a brief explanation of how acceleration is understood in GR, if possible.