I want to find some examples of function (continuous, differentiable, and easy) that $$ \int_0^1 f(x)\;dx = f(1), $$ where $f(x)>0$ for all $x\in[0,1]$ and $f(0)=1$.
Notes
It is obvious that there are infinitely many functions that satisfy the above identity because the function is restricted only for $x=0$ and $x=1$, not $x\in(0,1)$. For example, $f(x)=e^x-2x$ satisfies the above condition. However, I want the function to have an exponential form like $f(x)=e^{g(x)}$.
There is no solution of the form $e^{ax}$ because $$\int_0^1 e^{ax}dx=\frac{e^a-1}a=f(1)=e^a$$ has no other solution than $a=0$.
And unless $g$ is a logarithm,
$$e^{g(x)}$$ usually has no analytical antiderivative.
Better luck with a polynomial:
$$\int_0^1\left(ax-1\right)^2\,dx=\frac{(a-1)^3+1}{3a}=f(1)=(a-1)^2$$
has the solution
$$a=\frac32.$$