Question: what is the difference between purpose and main idea?
Answer: The main idea is usually stated directly. - etc. In sum, it's why the author decided to write the passage. The purpose is not stated directly.