how to make a graph for a cubic polynomial which meets the x-axis thrice?