A sine function is as shown below
A cosine function is as shown below
The combination of both sine and cosine function is as shown below
It can be observed from the above combination that:
Cosine is better when the maximum is on the y- axis and sine is better if the midline is at the center.