Consider the action functional
$S[z;t_1,t_2]=\int_{t_1}^{t^2}[g(z,\bar{z})\dot{z}\dot{\bar{z}}]^{\frac{1}{2}}dt$
with $z(t)$ a complex path with end points $z_i=z(t_i),\; i=1,2$. $g(z,\bar{z})$ is a positive real function on $H=\{z\in C: Im(z)>0\}$.
After some easy questions the exercise asks me to determine (up to a multiplicative constant) the function $g(z,\bar{z})$ such that the action is symmetric under the transformation $z\rightarrow \gamma(z)= \frac{az+b}{cz+d}$, with $a,b,c,d \in R$.
Can somebody help me or give me some hints?