If $$(x_1,y_1), (x_2,y_2),(x_3,y_3)$$ are points in the plane and if $a,b$ are fixed real numbers, how can I visualize $$f=(ax_1+b-y_1)^2+(ax_2+b-y_2)^2+(ax_3+b-y_3)^2$$ as a function from the plane into the reals?
I tried looking at what happens in the case that we only have one point $(x,y):$
$$f=(ax+b-y)^2=ax^2+2abx-2ayx-2by+b^2+y^2$$ which I can think of as the upper half of some ellipse in the plane. I don't see what happens as I include more points in my sum.