§ An incorrect derivation of special relativity in 1D


I record an incorrect derivation of special relativity, starting from the single axiom "speed of light is constant in all inertial reference frames". I don't understand why this derivation is incorrect. Help figuring this out would be very appreciated.

§ The assumption


We assume that the velocity of light as measured by any inertial frame is constant. Thus if x,xx, x' are the locations of light as measured by two inertial frames, and t,tt, t' is the time elapsed as measured by two inertial frames, we must have that dx/dt=dx/dtdx/dt = dx'/dt'. This ensures that the speed of light is invariant.

§ The derivation



We calculate dx/dt=(dx/dt)(dt/dt)dx'/dt' = (dx'/dt)(dt/dt') [chain rule ], giving:
c=dxdt=dxdt=dxdtdtdtc=d(vt+ct)dtdtdtc=(v+c)dtdtcv+c=dtdtdt=(v+c)dt/ct=(v+c)t/c=(1+v/c)t \begin{aligned} &c = \frac{dx}{dt} = \frac{dx'}{dt'} = \frac{dx'}{dt} \frac{dt}{dt'} \\ &c = \frac{d(vt + ct)}{dt}\frac{dt}{dt'} \\ &c = (v + c) \frac{dt}{dt'} \\ &\frac{c}{v+c} = \frac{dt}{dt'} \\ &dt' = (v+c)dt/c \\ &t' = (v+c)t/c = (1 + v/c) t \end{aligned}

So we get the relation that time elapsed for observer (2) is related to observer (1) as t=(1+v/c)tt' = (1 + v/c) t.





§ What's the issue?


The issue is the equation x=vt+ctx' = vt + ct.