TeX source:
g(x)=\sqrt{-x+1}