Implements question 4 function (derivatives of I) [unfinished !]