Yes, y=x has an inverse.
Yes, y=x passes the horizontal line test.
If it didn't pass the horizontal line test, it would not have an inverse.
1.6m questions
2.0m answers