The given function is
This function is plotted to be
V[x_, r_] :=
Piecewise[{{-Sqrt[2] r + Sqrt[r^2 - x^2],
Abs[x] <= Sqrt[2]/2 r}, {-1 + Sqrt[2] x - Sqrt[
r^2 - (Abs[x] - 1)^2], Abs[x] >= 1 - Sqrt[2]/2 r}, {-Abs[x],}}]
My problem is how to write the otherwise condition as given in the paper for the Mathematica and plot the function for different values of r.