Example 1 : The number of diagonals in a polygon of n sides is