I am trying to define a simple function that is first concave and then convex as shown in the picture below. Since the resulting equation have to be explained/used by a non-technical audience, the function should be ideally as simple as possible, but I have been unable to find any simple form that matches the requirements below.
Any help of ideas would be greatly appreciated.
EDIT: to further clarify
- The dashed red line is the constant line $Y=X$
- $X_1$ and $X_2$ should be ideally points that I can control within the function.

$f(x)=(x-1)^3+1$ should do.
Lowest power polynomial with desired properties
EDIT
$f(x)=(x-a)^3+a^3+b*x^2$ should give you some control by adequate choice of a and b.