Ok. Here we go...
We have a primed frame with event coordinates (x',t'), and an unprimed frame with coordinates (x,t). In the unprimed coordinates, the primed frame moves in the positive x direction with speed v. (Note: in what follows, v is always taken to be a positive constant.) In the primed coordinates, the unprimed frame moves in the negative x' direction with speed v.
Let's look at the Lorentz transformations. Note that we are considering THREE events here:
1. The origins of the primed and unprimed frames coincide at t=t'=0.
2. Some irrelevant object (e.g. a clock) is initially located at position x'=-k in the primed frame at t'=0.
3. The coordinate x'=-k coincides with the coordinate x=0 at some later time.
In the primed frame, the spacetime coordinates of these three events are:
1. (x',t') = (0,0)
2. (x',t') = (-k,0)
3. (x',t') = (-k, k/v)
The coordinates of event 3 follow from the fact that in the primed frame the unprimed x axis moves a distance k at speed v in time k/v, where the unprimed axis moves in the negative x' direction in the primed frame.
Using the Lorentz transformations, we determine the equivalent coordinates in the unprimed frame as follows:
$$x = \gamma (x' + vt'); t = \gamma (t' + vx'/c^2); \gamma = \frac{1}{\sqrt{1-(v/c)^2}$$
1. (x,t) = (0,0)
2. $$(x,t)=(-\gamma k, -\frac{\gamma k v}{c^2})$$
3. $$(x,t)=(0,\frac{k}{\gamma v})$$
In the unprimed frame the time intervals between pairs of events (calculated by subtracting the time coordinate of one event from the other) are:
1 and 3: $$\Delta t = \frac{k}{\gamma v}$$
2 and 3: $$\Delta t = \frac{\gamma k}{v}$$
In the primed frame, the corresponding intervals are:
1 and 3: $$\Delta t' = \frac{k}{v}$$
2 and 3: $$\Delta t' = \frac{k}{v}$$
Now, in the unprimed frame, the spatial coordinates of events 1 and 3 are the same, whereas in the primed frame they are different. So, the time measured between 1 and 3 in the unprimed frame is a proper time. Note that the time interval between events 1 and 3 in the primed frame is LONGER than in the unprimed frame by a factor of $$\gamma$$.
Relativity tells us that the proper time is always the SHORTEST time interval between two events, so this is the result we expect.
Similarly, in the primed frame, the spatial coordinates of events 2 and 3 are the same, so the time interval between those events in the primed frame is a proper time. Comparing the time interval between events 2 and 3 in the unprimed frame, we again see that it is LONGER by a factor of $$\gamma$$. So, again, we see that the proper time is the shorter time of the two.
All of this is consistent with the relativistic result often expressed sloppily as "moving clocks run slow".
Considering events 1 and 3, a clock has to move in the primed frame to record both events at different locations, so for those events the primed frame is "moving", while the unprimed frame is "stationary".
Considering events 2 and 3, a clock has to move in the unprimed frame to record both events at different locations, so for those events the unprimed frame is "moving", while the primed frame is "stationary".
The mathematics shows that in both cases the "moving" clocks run slow - just as Einstein said.