plot cos(2x)