In math reflection means a shape that appears at an equal distance on the opposite of a given line of the reflection. So if you are reflecting on the y axis your formula would be
(x,y) to (-x,y). Now if you are reflecting on the x axis the your formula would be (x,-y). It’s like looking in a mirror