The length l = AB can be expressed by the modulus of vector :
(scalar product)
is the unitary vector in the direction of AB. For small displacements of A and B denoted and , we get :
Then
If the index of the medium is n and L = nAB the optical path (AB), the variation of the optical path dL is :