I'm looking for a function $f:[0,1] \times [0,1] \to [0,1]$ with the following properties:
$f(x,x) = x$
$f$ is differentiable everywhere and has bounded derivative on its entire domain
$f(x,y) \le (1+\epsilon_1) \min(x,y) + \epsilon_2$ for some small values $\epsilon_1,\epsilon_2 \ll 1$ (that don't depend on $x,y$)
Basically, I'm looking for a function that behaves similar to $\min(x,y)$, but is differentiable everywhere -- so it is a "softened" version of the minimum. $\min(x,y)$ fails condition 2, as it is not differentiable at points $(x,y)$ where $x=y$.
Does such a function exist? If yes, can you suggest an example $f$ where $f$ and its derivative have an expression that is "not too messy"?