The respiratory system has three main functions: gas exchange, regulating blood pH, and producing sounds. It consists of the upper respiratory tract including the nose and pharynx, and the lower tract including the lungs. Respiration has three steps: pulmonary ventilation, external respiration of gas exchange in the lungs, and internal respiration of gas exchange in tissues. The lungs obtain oxygen and expel carbon dioxide through breathing which involves the muscles and elastic recoil of the lungs and chest wall. The document then discusses various respiratory structures, processes, and disorders in more detail.