plot e^(-x), Piecewise[{{e^(-x),0<=x<=1.5},{(3x-3.5)*e^(-(3*(x-1.5)^2/2+x)),1.5<x}}] for x from 0 to 3