Is vector based distance between a point and a line differentiable?

41 Views Asked by At

We calculate the shortest distance between a point and a straight line. Consider a line given by the points $$r=a+b.t$$ The point from which the distance to the line will be calculates is $$x$$ The l1 distance between the given line and the given point is $$l1(||x-r||)$$

We will be minimizing this distance cost function l1, but first I need to know whether it is differentiable? Need some explanation.