Problem

Source:

Tags: function, algebra



Find all functions $f(x)$ determined on interval $[0,1]$, satisfying following conditions $$\{f(x)\}\sin^{2}x+\{x\}\cos f(x)\cos x=f(x)$$$$f(f(x))=f(x)$$Here $\{y\}$ means a fractional part of number $y$