The midline is a horizontal axis that is used as the reference line about which the graph of a periodic function oscillates.
The equation of the midline of periodic function is the average of the maximum and minimum values of the function
Figure-1 shows y = sin x and Figure-2 shows y = sin x + 1. The second curve is the first curve shifted vertically up by one unit.
The midline of y = sin x is the x-axis and the midline of y = sin x + 1 is the line y = 1.

A. x = - 3
B. y = - 3
C. x = 3
D. x = 3
Correct Answer: B
Step 1: The equation of the midline of periodic function is the average of the maximum and minimum values of the function.
Step 2: The cosine curve varies from - 1 to + 1 . So, the maximum value of the function y = cos x - 3 is - 2 and the minimum value of the function is - 4.
Step 3: Therefore the equation of the midline of the given function is the line 
Q1: What is the equation of the midline of the curve y = cos(x) - 3?
Q2: The maximum value of a periodic function is 5 and the minimum value is -1. What is the equation of the midline?
Q: How do I find the midline of a function?
A: Calculate the average of the maximum and minimum values of the function. This average value is the y-value of the midline.
Q: What is the equation of the midline?
A: The equation of the midline is of the form y = k, where k is the average of the maximum and minimum values of the function.