The function f(x) appears to be a simple linear function that maps positive integers to their square, and negative integers to their absolute value squared.

