Trigonometry was invented by ancient Greeks to calculate distances and angles in astronomy. It relates the angles and lengths of triangles, allowing unknown values to be determined if one angle and one length are known. Some early applications included creating trigonometric tables for astronomical computations and using triangulation to measure heights and distances. Modern uses include navigation, surveying, engineering, acoustics, and technologies like GPS which rely on trigonometric calculations.