function y=f2(x)
t = (x-0.5).^2;
y = 10 * (1 - 10.*t) .* exp(-5*t);

