A ray of light travels along the line $x=1$ and gets reflected by a mirror on $x+y=1$. Find the equation of the reflected ray.
$$$$
I am to solve this problem using only $\tan\theta=|\dfrac{m_1-m_2}{1+m_1m_2}|$ where $m_1$ and $m_2$ are the slopes of the lines between which the angle $\theta$ is subtended.$$$$
I know one way of solving it is to find any general point on $x=1$, find its image about $x+y=1$ and find the equation of the reflected ray using the 2 point form(once we have the point of intersection of $x=1$ and $x+y=1$. However, this method is not allowed by my teacher.
$$$$I would be grateful for any assistance. Many thanks.

Depending on the direction of the ray we get $(-\infty,1]$ or $[1,\infty)$: