



with that template in mind, let's check

now, the function is just the parent cos(x), shrunk some, -4, and shifted about, now D = +3, that means it has a vertical shift of 3 units up.
the parent function cos(x), has a midline of y = 0, now, if we shift it upwards by 3 units, the new midline will then be y = 3.