function  [lambda, df]=lambda(v)    
%return integral as first argument
lambda=quad(@g,v,5);
%return derivative of the integral, i.e. the function itself as the second
%argument
df=lambda(v);
end