Here is the question I was reading its solution here Ergodic T invariant measures that can not be Lebesgue measures.:
Let $T: S^1 \to S^1$ be the rotation of the circle by $90$ degrees. I want to find an ergodic $T$-invariant measure.
Here is the solution given there:
Call $\mu_x$ the measure in question. Then for $\phi:X\to\mathbb{R}$ a function one has
\begin{align*} \int \phi\circ f(y) d\mu_x(y) = \dfrac{\phi\circ f(x)+\phi\circ f(f(x))+\cdots+\phi\circ f(f^{p-2}(x))+\phi\circ f(f^{p-1}(x))}{p} = \dfrac{\phi\circ f(x)+\phi\circ f^2(x)+\cdots+\phi\circ f^{p-1}(x)+\phi\circ f^{p}(x)}{p} = \dfrac{\phi\circ f(x)+\phi\circ f^2(x)+\cdots+\phi\circ f^{p-1}(x)+\phi(x)}{p} =\int\phi d\mu_x(y), \end{align*}
so that $\mu_x$ is $f$-invariant.
My questions are:
Can we just do it without integration, since $\mu$ is $f$-invariant iff $$\mu(f^{-1}(U)) = \mu(U)$$ for all $U$?
Also, from where the last equality in the integration above came?where has the $f$'s gone?
Could anyone clarify these points to me please?