Another option is to use two separate plots: plot(sin(x), (x, -10, 0)) + plot(cos(x), (x, 1, 10)). By the way, I don't know if the question contains a typo or if there is not supposed to be a plot when x is between 0 and 1.