I have a set of points like this: P = {{$x_1$,$y_1$},{$x_2$,$y_2$},...,{$x_n$,$y_n$}}. I want to plot them and also plot the derivative of that graph. How can I do this with Mathematica? Is there a simple way in Mathematica?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
Here is some sample data, hopefully of the sort you are looking for
will display the data.
This will create a derivable interpolation.
This is its derivative
Plot them together.
|
|||||||
|
|
This is the data (taken from the previous example):
This is derivatives calculated in each point except the first:
here we combine it into the list of pairs:
Now we can plot it along with the initial list:
That is what you get: |
|||
|
|




DerivativeFilterfor this purpose. That answer would apply here too (I guess the questions are somewhat different but I tried to make my earlier answer more general so that it now turns out to cover your case...) – Jens Nov 27 '12 at 3:52