plot 4(x - x*abs(x)) and sin(pi x) from x = -1 to 1