Ultrasound uses high frequency sound waves to produce images of the inside of the body. There are different modes of ultrasound including A-mode which displays amplitude over time, B-mode which produces two-dimensional images, and M-mode which depicts motion over time. Modern ultrasound systems can produce real-time 2D and 3D images using piezoelectric crystals and array transducers. Doppler ultrasound measures the frequency shift of reflected sound to analyze blood flow velocity.