I am always confused about these words. for example let's consider these sentences:
Doctors can now detect very small amounts of dangerous chemicals in the body.
The professor asked us to identify several types of whales.
I think we used detect in the first one because it is not obvious to find dangerous chemical.
Is it all? We use detect for something not obvious otherwise we use identify?