plot 2 cos( x)