We outline
a short derivation the formula for Lorentz transform.
Please pay attention to Question 1 (below).
I. By $O$ , $O'$ denote coordinate origin of $K$ and $K'$
Suppose that for $t=t'=0$, $O'=O$.
If the clock in rest in $K$ shows time $t$ at a point $A$ then
the coordinate of $A$ is $vt$ ?
In a moment $t$ from point $M'=(0,0, d')$ (denote by $M=(x,0,
d')$ in K) we reflect light ray to $O'$ (denote by $A=x$ in K),
which arrives for $\Delta t'$ at $O'$ (denote by $B$ in K)
$MB= c \Delta t$, $d'= c \Delta t'$, $AB= v \Delta t$
Hence, by The Pythagorean theorem, $\Delta t= \gamma \Delta t'$
II.
Imagine stick $p=O'x'$ in $K'$ of length $l'=x'$
Let $l$ be length of the stick $p=O'x'$ in $K$; then (i) $x=vt +
l$.
We introduce the concept of length (measure) of sticks in $K$ and $K'$.
Question 1. It seems to me that we need to prove more rigorously (i).
Further let $O'$ arrives for time $ t_1'$ (for $t_1$ wrt $K$)
from $vt$ to $x$). Then, since the stick is in rest in $K'$,
$t_1'=\gamma t_1$ and therefore
$l=t_1 v= v t_1'/\gamma =l'/\gamma= x'/\gamma$,so $l=l'/\gamma$.
Hence we find
$x=vt + l= (vt +x')/\gamma $
and therefore
(1) $x'= \gamma(x-vt)$.
As in the Galilean transformation, the transport velocity has to
be changed from v to -v when passing from one frame to the other.
(1) $x'= \gamma(x-vt)$ since K moves with speed $-v$ with respect
to $K'$,
(2) $x= \gamma (x'+ vt)$
If we substitute (1) in (2), using
$1-\gamma^2=- \frac{v^2}{c^2}\gamma^2$, we have
$t'= \gamma (t-vx/c^2)$.