TeX source:
g(4)=f\left(\dfrac{1}{2} \cdot 4\right)=f(2)=1