2

I'm looking for a parametrized family of functions $f_{a}(x): [0, \infty) \to [0, 1)$ with the following properties

  • monotonically increasing, no inflection points
  • $\forall a$, $f_{a}(0) = 0$ and $\lim_{x\to\infty} f_{a}(x) = 1$
  • $f_{a}(1/x) = 1 - f_{a}(x)$ (so the function is completely determined by its values between $0$ and $1$, and also $f_{a}(1) = 1/2$)
  • For one (perhaps extreme) parameter value, the function is $$f_{a_0}(x)=\begin{cases}x/2 \quad&\text{for } x<1\\1 - 1/(2x) \quad&\text{for } x > 1 \end{cases}$$

and bonus points for smoothness.

One close idea is (see the plot below) $$ f_a(x) = \frac{x^a}{x^a + 1} $$ which unfortunately has an inflection for $a > 1$.

Any hints?

enter image description here

Code to reproduce the plot:

import numpy
import matplotlib.pyplot as plt
import dufte

plt.style.use(dufte.style)

x = numpy.linspace(0.0, 2.0, 500)

y = 2 / numpy.pi * numpy.arctan(x) plt.plot(x, y, label="2/pi * arctan(x)")

y = x / (x + 1) plt.plot(x, y, label="x / (x + 1)")

y = x ** 0.5 / (x ** 0.5 + 1) plt.plot(x, y, label="x ** 0.5 / (x ** 0.5 + 1)")

y = x ** 2 / (x ** 2 + 1) plt.plot(x, y, label="x ** 2 / (x ** 2 + 1)")

x0 = numpy.linspace(0.0, 1.0, 250) x1 = numpy.linspace(1.0, 2.0, 250) y = numpy.concatenate([x0 / 2, 1.0 - 0.5 / x1]) plt.plot(x, y, label="{x/2, 1 - 1/2x}")

plt.plot([1.0], [0.5], "o", color="#555", label="nolegend")

dufte.legend()

plt.show()

plt.savefig("out.png", transparent=True, bbox_inches="tight")

  • Your $f_{a_0}$ is not smooth. Is smoothness really a condition that you want to impose here? – Sangchul Lee Aug 11 '20 at 07:08
  • Thanks for the comment. Well, at least the first derivative exists and is continuous. I'll adapt the question. – Nico Schlömer Aug 11 '20 at 07:16
  • 1
    If inflection points are allowed, here is an example: $$ f_a(x) = \Bigl(\frac{x}{2}\Bigr)\frac{1}{x^a+1}+\Bigl(1-\frac{1}{2x}\Bigr)\frac{x^a}{x^a+1},\qquad f_{\infty}(x) = \begin{cases} \frac{x}{2}, & \text{if } x \leq 1, \ 1 - \frac{1}{2x}, & \text{if} x > 0 \end{cases}. $$ Then for $a\in[2,\infty]$ and with $a_0=\infty$, all the conditions except that $f_a$ may have an inflection point at $x=1$. – Sangchul Lee Aug 11 '20 at 07:43

0 Answers0