# Derivation of Interpolation function

I have a problem to derive an interpolation function. I am quite new to mathematica, so I suspect I miss something.

I have a list of values of 1000 values (L) that represents a function that I want to derive. The list looks like this : I interpolate the list

InterL = Interpolation[L, InterpolationOrder -> 1]


I verify that the interpolation works :

In:= InterL[400.6]

Out= 686.8


If I plot InterL I have a similar curve as L except that is defined on everypoint.

Now if I try to derive InterL and plot it I get this curve : Which doesn't look like the derivative of the precedent. I have tried to evaluate the derivative, etc. I can't find a solution.

Is it possible to derive this curve ?

• With InterpolationOrder->1, the derivative will be stepped . Try using order 3 instead. – flinty Jul 22 '20 at 17:05
• I have just tried. It doesn't work. It gives me the following ibb.co/QrfhrGN – Vincent Jul 22 '20 at 17:22
• InterpolationOrder -> 3 works for me. So does Method -> "Spline". Not sure what you did wrong. Problems with code usually require the code to solve the problem. – Michael E2 Jul 22 '20 at 17:24
• Is your data L of the form {y1,y2,y3,...,yn} just a list of values, or of the form {{x1,y1}, {x2,y2}, {x3,y3},...,{xn,yn}} where it has x and y coordinates? Try with both x and y coordinates if not. – flinty Jul 22 '20 at 17:27
• I am really sorry, I can't find what is wrong in my Notebook. I have a MWE in the following link. A matrix then the few line of interpolation, derivation and plotting. drive.google.com/file/d/1kOXP1MMRJ7ZRSdwk-zurTF_fJG5dDylP/… I tried with a matrix and a list extracted from it and it doesn't work. – Vincent Jul 24 '20 at 10:40