There are countless threads on this subject. Search the forum for evasion, evading, avoiding, sonar, etc. and be ready to overwhelmed.
Things to remember:
1. Depth is life. Avoid attacking in shallows if escorts may be involved.
2. Learn how to set the # of revolutions lower than silent running. I just learned this one today. Been trying to figure it out on my own. Finally gave up and searched the forum. (search: make turns)
3. Small rudder inputs, 5-10 deg. do not slow your boat, and, anecdotally, seem to be more effective at putting distance between you and your DDs.
4. Elite crews are probably going to kill you anyway.