Source TeX:
y=\sqrt{-2(x-1)}