Hi, my prof gave us this problem in my ODE course. I have no idea how to solve it so help would be very much appreciated. The question is as follows:

A curved mirror of equation y=y(x) (with respect to some cartesian coordinate frame) has the property that whenever a ray of light emanates from the origin it reflects parallel to the x-axis. Find the equation of the mirror.

Thanks a lot!