Trigonometry studies the relationships between sides and angles of triangles. The sine, cosine, and tangent functions describe ratios of sides in right triangles. Spherical trigonometry applies these concepts to triangles on the surface of a sphere. It is used to solve problems involving latitude, longitude, and great circles. Key formulas in spherical trigonometry include the cosine rule, sine rule, and cotangent law, which relate angles and sides of spherical triangles.