Umm... are you sure you typed it out correctly? If the following is a function of y, then I presume -x^2 is constant. If so, then the greatest value of the function f(y) is infinity because we have a linear function, which is unbounded from above and below.