Here's how:
* Convergent Evolution: Organisms from different lineages evolve similar traits in response to similar environmental pressures. They are adapting to similar niches, and natural selection favors those traits that best suit that environment. Think of the streamlined bodies of dolphins and sharks, both evolving to be efficient swimmers.
* Divergent Evolution: Organisms from the same lineage evolve different traits due to different environmental pressures or varying selection pressures. This can lead to the development of new species. Think of the Galapagos finches, where different beak shapes evolved to exploit different food sources.
The common thread: In both cases, natural selection is the driving force. It acts on the existing variation within populations and favors traits that increase an organism's chances of survival and reproduction in its particular environment.
In summary:
* Convergent evolution: Different origins, similar adaptations due to similar environments.
* Divergent evolution: Same origin, different adaptations due to different environments.
* Both: Driven by natural selection to maximize fitness in their respective environments.