Let f(x) satisfies the problem condition:
{{f(x)}sin2x+{x}cosf(x)cosx=f(x),f(f(x))=f(x),(1)(2)
for all real x.
Replacing x by f(x) in (1) we obtain:
{f(f(x))}sin2f(x)+{f(x)}cos2f(x)=f(f(x)).
From (2) it follows that {f(x)}=f(x). So f:[0,1]→[0,1).
From (1) and the equality {f(x)}=f(x) it follows that:
{x}cosf(x)cosx=f(x)(1−sin2x)=f(x)cos2x.(3)
We have cosx>0 and {x}=x for x∈[0,1]. Therefore from (3) we have xcosf(x)=f(x)cosx for x∈[0,1]. Dividing the last equality by cosxcosf(x) we obtain:
cosxx=cosf(x)f(x).(4)
Consider the function g(x)=x/cos(x), g:[0,1]→R. It is increasing since x increases and cosx decreases. Since in view of (4) g(x)=g(f(x)) for x∈[0,1], we obtain f(x)=x.