The graph of a sinusoidal function has a maximum point at (0,5) and then has a minimum point at (2π,-5). Write the formula of the function, where is entered in radians.