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

[tex]\qquad\qquad\huge\underline{{\sf Answer}}♨[/tex]
The required equation is :
[tex] \qquad \sf \dashrightarrow \:y = a \sin(bx) + k[/tex]
Now, let's find the required values :
period (p) = 4
[distance between any successive Crest or trough]
a = - 3 (flipped)
b = 2π/p = 2π/4 = π/2
k = 1
Distance of starting position from origin = k
Now, plug in the values ~
[tex]\qquad \sf \dashrightarrow \: - 3 \sin( \frac{ \pi}{2}x ) + 1[/tex]