projection onto the x-axis is a cosine curve