# Failures on deriving the Lorentz factor: using light clocks to calculate the dilation on space and time

I wanted to check my understanding of special relativity and set up one experiment that could lead to deriving the Lorentz factor. Usually, the deriviation for the Lorentz factor is explained using a light clock forming a 90° angle with the direction in which the observer is moving.

Here, we see that the direction in which the light ray is moving, is perpendicular to the moving direction. And if you calculate the time it takes for the light in both of the light clocks(in each reference frame), the relationship between the two turns out to be exactly $$1/\sqrt{(1-v^2/c^2)}$$, which is the right Lorentz factor.

However, you could follow a similar logic and consider the case in which the light clock is leaning on its side and shooting light rays in the direction of motion.

Let's suppose that a moving observer is moving from left to right horizontally. He or she holds a light clock that lay horizontally with the direction of motion. The distance of the light clock is a and the observer is moving at the speed $$v$$ relative to the stationary observer. The stationary observer can measure his or her time with the identical light clock. Time on each reference frame is defined as the time it takes for the light to bounce back to the observer, so we would be able to say that we can find the relationship of the time of the stationary observer and the time of the moving observer which is the Lorentz factor. I wonder why my result $$c/(c^2-v^2)$$ does not match the real Lorentz factor. Were my assumptions wrong? Why does it work when the light clock is perpendicular to the moving direction, but doesn't when it is facing the direction of motion?