Is this right??

1. f(x)= |x-5| if x≤1 ; (1)/(x+1) if x>1


f(-5) = |-5-5| = 10
f(1) = |1-5| = 4
f(3) = 1/4

looks good to me.