We will show that the functions with property (P) are precisely the constant functions on the interval [a,b].
The equality in the statement can be rewritten equivalently as
f(x)=21(f(2x+a)+f(2x+b))(1)
We show now that, for any n∈N∗ and any x∈[a,b], the following equality holds
f(x)=2n1k=0∑2n−1f(2nx+(2n−1−k)a+kb).(2)
For n=1, this is precisely the relation (1). If we assume now that the equality holds for a certain positive integer n∈N∗ and any x∈[a,b], then we have
f(x)=2n1k=0∑2n−1f(2nx+(2n−1−k)a+kb)=2n1k=0∑2n−1(f(21⋅2nx+(2n−1−k)a+kb+21⋅a)++f(21⋅2nx+(2n−1−k)a+kb+21⋅b))=2n+11k=0∑2n+1−1f(2n+1x+(2n+1−1−k)a+kb).
Consider for some positive integer n∈N∗ and arbitrary x∈[a,b] the division Δn=(x0=a<x1=2n(2n−1)a+b<⋯<xk=2n(2n−k)a+kb<⋯<x2n=b) with norm ∣Δn∣=2nb−a and the system of intermediate points
ξ(n)(x)=(ξk(x)=2nx+(2n−k)a+(k−1)b∣k=1,2n).
The relation (2) can then be written as
f(x)=b−a1⋅σ(f;Δn,ξ(n)(x)),
where σ(f;Δn,ξ(n)(x)) denotes the Riemann sum associated with the function f, the division Δn and the system of intermediate points ξ(n)(x). Since the function f is Riemann integrable on the interval [a,b], we have limn→∞σ(f;Δn,ξ(n)(x))=∫abf(s)ds, so that f(x)=b−a1⋅∫abf(s)ds holds for any x∈[a,b]. Any function with the property (P) is hence a constant function.
Conversely, any constant function defined on the interval [a,b] is Riemann integrable and satisfies the equality in the statement.
For any t∈R there is then a unique function with the property (P), namely f:[a,b]→R, defined by f(x)=b−at for any x∈[a,b], such that ∫abf(x)dx=t.