Suppose that $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(x)+f\left(1-{1\over x}\right)=\arctan x\,,\quad \forall \,x\neq 0$$ Find $$\int_{0}^1 f(x)\,dx$$ My Attempt :
Replace $x$ by $1/x$ in given equation
$$f\left({1\over x}\right)+f(1-x)=\arctan {1\over x}$$Add both equations
$$f(x)+f\left(1-{1\over x}\right)+f\left({1\over x}\right)+f(1-{x})=\arctan x\,+\arctan {1\over x}$$Rearranging thenm gives
$$f(x)+f(1-x)+f\left({1\over x}\right)+f\left(1-{1\over x}\right)={\pi\over2}$$Now it seems to me that $f(x)=f\left({1\over x}\right)$ Am I correct here? (I don't have proof though)
$$f(x)+f(1-x)={\pi\over 4}$$ $$\int_0^1 f(x)\,dx =\int_0^1f(1-x)\, dx={\pi\over 8}$$
I'm not sure about my assumption. Thank you
Appearently $f(x)=f(1/x)$ does not hold.
Let $g(x) = 1-1/x$, then we have $$g^2 (x) = 1/(1-x) \quad \quad \color{red}{g^3 (x) = x}$$
Hence $f(x) + f(g(x)) = \arctan x$ implies $$f(g(x)) + f(g^2(x)) = \arctan(g(x))$$ $$f(g^2(x)) + f(x) = \arctan(g^2(x))$$
Solving for $f(x)$ from these three equations give $$f(x) = \frac{1}{2}\left[\arctan x - \arctan(1-\frac{1}{x}) + \arctan(\frac{1}{1-x})\right]$$
and routine integration gives $$\int_0^1 f(x) dx = \frac{3\pi}{8}$$