Distance function
Since the distance function from a set is considered in a number of posts, I propose here the following (standard) exercise.
Let $S$ be nonempty closed subset of $RR^n$; let us define the distance function from $S$:
$d_S(x) := "inf"_{y\in S} |x-y|$, $x\in RR^n$.
1) Prove that, since $S$ is closed, then the infimum in the definition of $d_S$ is attained, i.e.
$d_S(x) = "min"_{y\in S} |x-y|$, $x\in RR^n$.
2) Prove that $d_S$ is a $1$-Lipschitz function, i.e.
$|d_S(x_0) - d_S(x_1)| \le |x_0-x_1|$ for every $x_0, x_1\in RR^n$.
Now we define the distance function from the boundary of a set, which is a special case of the distance function defined above.
Let $\Omega$ be a nonempty open subset of $RR^n$, with $\Omega\ne RR^n$.
Let $d:\bar{\Omega}\to RR$ be the distance function from the boundary of $\Omega$, defined by
$d(x) := \min_{y\in\partial\Omega} |x-y|$, $x\in \bar{\Omega}$.
(Note that, setting $S := RR^n\setminus\Omega$, $d$ coincides with the restriction of $d_S$ to $\bar{\Omega}$.)
3) Let $\Omega$ be as above, and assume in addition that $\Omega$ is a convex set.
Prove that $d$ is a concave function in $\bar{\Omega}$.
Let $S$ be nonempty closed subset of $RR^n$; let us define the distance function from $S$:
$d_S(x) := "inf"_{y\in S} |x-y|$, $x\in RR^n$.
1) Prove that, since $S$ is closed, then the infimum in the definition of $d_S$ is attained, i.e.
$d_S(x) = "min"_{y\in S} |x-y|$, $x\in RR^n$.
2) Prove that $d_S$ is a $1$-Lipschitz function, i.e.
$|d_S(x_0) - d_S(x_1)| \le |x_0-x_1|$ for every $x_0, x_1\in RR^n$.
Now we define the distance function from the boundary of a set, which is a special case of the distance function defined above.
Let $\Omega$ be a nonempty open subset of $RR^n$, with $\Omega\ne RR^n$.
Let $d:\bar{\Omega}\to RR$ be the distance function from the boundary of $\Omega$, defined by
$d(x) := \min_{y\in\partial\Omega} |x-y|$, $x\in \bar{\Omega}$.
(Note that, setting $S := RR^n\setminus\Omega$, $d$ coincides with the restriction of $d_S$ to $\bar{\Omega}$.)
3) Let $\Omega$ be as above, and assume in addition that $\Omega$ is a convex set.
Prove that $d$ is a concave function in $\bar{\Omega}$.