Diagram of the Respiratory System ... The main function of the lungs is to exchange carbon dioxide for oxygen and vice versa.3: larynx*8: trachea* ^^1: nose2: mouth*