Take the line: $$y=x+1$$
I noticed that by multiplying both sides by $x-a$ the resulting equation when graphed shows the two lines: $y=x+1$ and $x=a$.
$$y(x-a)=(x+1)(x-a)$$ This works nicely when one of the lines is a vertical line but what about when neither of the lines are vertical.
How would you express say $y=2x-1$ and $y=x+1$ in one equation ?
I have tried combining them in a variety of ways but have not achieved the desired result.
You can express as $(y-2x+1) (y-x-1) = 0$.