Let the function $f(x)$ be thrice differentiable and satisfies $f(f(x))=1-x$ for all $x\in[0,1]$. Then find the value of $$\int_0^1f(x)dx$$ given that $f''(\frac{4}{5})=0$.
MY APPROACH:
I differentiated the function twice to get $f''(f(x))(f'(x))^2+f''(x)f'(f(x))=0$. Now I substituted $x=\frac{4}{5}$.
Which led to $f''(f(\frac{4}{5})(f'(\frac{4}{5}))^2=0$ and $f'(\frac{4}{5})\ne 0$ from the first derivative. i.e. I get $f(\frac{4}{5})=\frac{4}{5}$ i.e. $f(x)=x$. Am I right?
Please help. THANKS