derivative of (sqrt( (a x -y)^2 + (a w - z)^2 + (a v - u)^2 ) )/2 ) with respect to a