% problem 3 output
% integration term for the 4-step explicit method
Definite integral of Lagrange poly from t_i to t_i+1: (h*(55*fi - 59*fi_minus1 + 37*fi_minus2 - 9*fi_minus3))/24

% integration term for the 2-step implicit method
Definite integral of Lagrange poly from t_i to t_i+1: (h*(8*fi + 5*fi_plus1 - fi_minus1))/12