Whenever you see a pair of straight lines that could be "mirror" images of each other, there's most likely an "absolute value" involved somehow.
This function is:
f(x) = - |x| + 1