✅ Teach can be used in a variety of circumstances, and is never a bad choice for describing imparting information or understanding to someone (My dad wanted to teach me how to garden; I decided to teach myself guitar).
✅ In the context of formal, general instruction, the more formal verb educate may be more appropriate.
✅ Educate most often implies in-depth, long-term teaching about a particular topic or a range of topics (It's important how we educate children).
✅ Educate can imply a formal or structured attempt to teach something, whereas teach can apply to all kinds of different ways of teaching, even situations in which the lesson learned is different than the one being taught (She thought she was teaching me math, but she was actually teaching me to be a good person).
Teach yourself even more with these synonyms for educate!