Using the midline, amplitude, beginning point, and period to write the equation that models a periodic function