f(x)= -x+6 {-1,1}

I know how to solve this but how do I replace -1 (the given domain) to -x? Would it be -1+6 or 1+6?

-(-1)+6 =1+6