Long comment addressing theThe triangular function: as as fedja remarks in his comment, when $p(x)$ is supported in $[0,1]$ and symmetric around 1/2, there is a solution from $\infty$ and a solution from $-\infty$ and he thinks this will not join coincide. The The condition that they coincide is that $1-g^{-1}(1-x)$ also satisfies (1) so $g^{-1}(x) = 1-g(1-x)$ and thattherefore $$\epsilon p(x) = g(x) + g(1-x) -1 (2)$$. With the original functional equation, Using this allows you to generate a few values of g, it doesn't always get you very far, but what it does generate is perfectly nice looking, imoequation find $g(1/2) = (1 + \epsilon p(1/2))/2$. Starting from This incidentally gives us $x=1/2$$$ g^{-1}((1 + \epsilon p(1/2))/2)$$ and using equation (21) givesfind $g(1/2) = (1 + \epsilon p(1/2))/2$$g(g(1/2)$. Using (1) you now know Iterate, finding the value of g at x=g(1/2)all the points $g(1/2), g(g(1/2),...$ and iterating backwards, which you can using $g^{-1}$ in place of g and making the using 2appropriate changes, find g at x = 1-g(1/2). Someall values of $\epsilon$ e$g^n(1/2)$.g Then, I claim, $g$ and $g^{-1}$ are linear in between. $$$$ Interpolate g linearly on $(1/2, g(1/2)$. p(x) is linear on this interval, so this wants to force $g^{-1}$ to be linear on the same interval.25 However, only generatethere is already a fewdefinition of $g^{-1}$, and I need to show that they are the same. To solve the equation $g^{-1}(x) = y$ for $x \in (1/2, g(1/2)$ we need to know for what values of $y$ is $g(y) \in (1/2, g(1/2)$, but hereand that is a picturethe interval $(g^{-1}(1/2), 1/2)$ but we have already defined $g^{-1} $ to be linear on this interval. As the correct relations hold at the endpoints, and all functions are linear in between, this definition of $g$ works. $$$$ There is a few iterations of thislacuna I don't know how to deal with, this all seems good provided that $\epsilon = .199876$ and the triangular function$g^n(1/2) \rightarrow 1$ as $n \rightarrow \infty$.
This can't always be true, but I don't know when what I have sketched above fails.