The velocity of light changes all the time. IfThere are two questions here -- is the velocity of light were constant, eveyrtything would be perfectly transparent and you couldn't see anything. So let me list down whenconstant, where and how the velocityis it invariant?
The direction/velocity of light changes whenever it interacts with something. This includes gravitational deflection, since things have to change direction in curved spacetime in one sense or another. The velocity isn't constant.
- Reflection.
Let us choose a convinient orthonormal coordinate system where the reflector is sittingIs it invariant under Lorentz boosts in the $xy$-plane and theperpendiculal directions? $z$-directionNo. The speed is normal (orthogonalinvariant, perpendicular) tobut the reflectorvelocity isn't. ThenThis should be fairly clear, but you can prove it with brute force --
We need to apply a boost to light's four-velocity, but the four-velocity of light is actually infinite $y$-direction- it's (infinity, let us sayinfinity, is redundant0, so discard it. For convenience0), also let the point where the the light ray hitsexcept the reflector beinfinities satisfy a certain relation in the originsense of the coordinate systembeing related through a limit. Now, clearly, then,So we consider an object traveling at speed $w$ in the $x$ component of the light ray's velocity is negated while the-direction, boost $z$ component remains the same.
- Refraction
The speed and direction are both changed. Let us say the light ray is hitting$v$ in the refracvtive medium from a vacuum. Then, it will change its speed as $v=r^{-1}c_0$$y$-direction and its angle will also be affected aslet $\theta_f=\arcsin\left(r\sin\theta_1\right)$$w\to c$. The four-velocity transforms under this boost as:
- Deflection
$$\left[ {\begin{array}{*{20}{c}}{\gamma (w)}\\{w\gamma (w)}\\0\\0\end{array}} \right] \to \left[ {\begin{array}{*{20}{c}}{\gamma (v)\gamma (w)}\\{w\gamma (w)}\\{ - v\gamma (v)\gamma (w)}\\0\end{array}} \right]$$
Here, light appears to bend due to gravity as per the Geodesic Equation, whichThe conventional 3-velocity can be shown using the Euler-Lagrange Equations. $$\frac{\mbox{d}^2x_\lambda}{\mbox{d}\tau^2}=-\Gamma_{\mu\nu}^\lambda\frac{\mbox{d}x^\mu}{\mbox{d}\tau}\frac{\mbox{d}x^\nu}{\mbox{d}\tau}$$ Of course, switching your coordinate system back to a curved one (using the inverse of the Christoffel symbolsextracted here by considering $\mathbf{\Gamma}$)$dx/dt$, the light is still following its geodesic in curved spacetime.$dy/dt$:
Luckily, photons are uncharged (electromagnetically) and thus are not deflected by electromagnetism.$$\frac{{dx}}{{dt}} = \frac{{dx/d\tau }}{{dt/d\tau }} = \frac{{w\gamma (w)}}{{\gamma (v)\gamma (w)}} = \frac{w}{{\gamma (v)}}$$ $$\frac{{dy}}{{dt}} = \frac{{dy/d\tau }}{{dt/d\tau }} = \frac{{ - v\gamma (v)\gamma (w)}}{{\gamma (v)\gamma (w)}} = - v$$
For these reasons, light almost NEVER goes at a constant directionTaking the limit as (in a straight line) or at a constant speed. Since there is gravity, opaque objects, non-vacuum media, etc. Also$w\to 1$, in case you are talking aboutget a constant being applied3-velocity of $(1/\gamma(v),-v, 0)$ -- one may confirm that this is not equivalent to light's directionthe original three-velocity that was $(1,0,0)$, then there'but nonetheless has the same magnitude (speed is one moreinvariant).:
- Light is emmitted in different directions, and if it were only one, then that would single out a prefered direction,.