The amplitude of this graph is 3 the maximum is 4 the minimum is -2 the period is 4 and the midline is 1 how would the function be written is all I haven’t figured out

The amplitude of this graph is 3 the maximum is 4 the minimum is 2 the period is 4 and the midline is 1 how would the function be written is all I havent figure class=