h is a trigonometric function of the form h(x)=acos(bx+c)+d.
Below is the graph h(x). The function has a maximum point at (-pi/2,5) and has a minimum point at (pi/4,-4)
Find the Formula for h(x). Give an exact expression