Trigonometry is a study of triangle as it spells the relationship between lengths and angles of a triangle…