I'm trying to come up with a function $f(x, n, m)$ which mainly focuses on the range $0 ≤ x ≤ 1$ and $m ≤ y ≤ 1$, where $m$ is the $y$-intercept at both $0$ and $1$, and $n$ is the sole maximum of $x$. It must always be the case that $f(n) = 1$, and $f(0) = f(1) = m$. When $x < 0$ and $x > 1$, the curve must approach, but never reach, $0$.
I've sketched an example:
I think this involves $ln$, but I can't quite grok it. Can anyone help me design such a function $f(x, n, m)$?
I can imagine an approximation using Bézier curves, so I made that. I hope this helps.

A standard one, which I think is called the Beta distribution, is $f(x) =x^m(1-x)^n$.
Since $f'(x) =-x^mn(1-x)^{n-1}+mx^{m-1}(1-x)^n =x^{m-1}(1-x)^{n-1}(-nx+m(1-x)) $, $f'(x) = 0$ when $nx = m(1-x)$ or $x =\dfrac{m}{m+n} $.
At this $x$, $f(\dfrac{m}{m+n}) =(\dfrac{m}{m+n})^m(\dfrac{n}{m+n})^n =\dfrac{m^mn^n}{(m+n)^{m+n}} $.