how do you know when an equation has infinitely many solutions

Google may have an answer to your question. Try posting that there and see what you come across.