Źródło TeX:
d(x)=\sqrt{x^2+\tfrac14(x+3)^2(2-x)}=\frac12\sqrt{-x^3+3x+18}, \, x\in [-2,2]