% intfunc.m
% Evaluates the function to be integrated
function[value] = intfunc(x,k)

value=(x.^2 + k.*x);

