but what if the function is moved, then what is the line of symmetry? like (x,y)-> (x+3, y-1)? i understand where the line is visually but i don't know how to write the equation

What equation are you trying to write?

(x,y)-> (x+3, y-1) represents a coordinate sytem shift (translation)