+ Reply to Thread
Results 1 to 9 of 9

First Derivative

Hybrid View

sramalin First Derivative 06-07-2011, 04:31 AM
shg Re: First Derivative 06-07-2011, 08:08 AM
sramalin Re: First Derivative 06-07-2011, 09:55 AM
shg Re: First Derivative 06-07-2011, 10:07 AM
sramalin Re: First Derivative 06-07-2011, 01:43 PM
na_ssim Re: First Derivative 08-24-2015, 06:52 AM
  1. #1
    Registered User
    Join Date
    06-07-2011
    Location
    Golden, Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    First Derivative

    Hi,

    I have two columns of data (P, t) and am trying to get the derivative dP/dt defined (P3-P1)/(t3-t1), that is skipping points inbetween to achieve two objectives, one to reduce the amount of data i have and two to achieve smoothing of my dP/dt vs t curve. I assume writing a VB code would be easy to do it, but I dont have any experience doing the same. Could someone help me?

    Performing derivative as dP/dt = (P2-P1)/(t2-t1) was easy. I basically used a macro to insert a new row after every data point (copied from this forum). Then just setup a formula in this new row of the subsequent column to do (P2-P1)/(t2-t1). I have attached a file showing how I did it. But doing the same when I want P3-P1)/(t3-t1) is proving a big pain!!!

    Someone please help me..

    Thanks
    Karthik

    P.S: Don't bother about the mismatch in data, I just wanted to show how I did it..
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: First Derivative

    Welcome to the forum.

    Why not it D5 and copy down, =(B6-B4)/(C6-C4)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-07-2011
    Location
    Golden, Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: First Derivative

    Quote Originally Posted by shg View Post
    Welcome to the forum.

    Why not it D5 and copy down, =(B6-B4)/(C6-C4)

    Because that doesnt reduce the amount of data I have, which I want to accomplish also apart from calculating the derivative..
    so D5= (B6-B4)/(C6-C4) then the subsequent differential would be (B9-B7)/(C9-C7), (B12-B10)/(C12-C10) and so on so forth. This would reduce my data as well..

    Thanks for your help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: First Derivative

    I'm missing the objective; why not reduce the data first, then take the derivative of what's left?

    You could reduce the data by decimation, or by taking a centered moving average of every 3, 5, whatever, points.

  5. #5
    Registered User
    Join Date
    06-07-2011
    Location
    Golden, Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: First Derivative

    Quote Originally Posted by shg View Post
    I'm missing the objective; why not reduce the data first, then take the derivative of what's left?

    You could reduce the data by decimation, or by taking a centered moving average of every 3, 5, whatever, points.
    Yes I have already done that. The data I have is after I did 3 point moving average. I am not performing 4 or 5 point moving average because my analysis involves looking at the exact position of slope change in the data and after trials on various data, 3 point averaging works best. But the amount of data is still large enough (and hence more scatter) that I am not able to recognize the exact position of the slope change when I plot the derivative as a function of the variable. So if I do a derivative by skipping a point and then plot the derivative as the function of the variable, I reduce the data further and I have my bosses quoting that it smoothens the plot as well. And hence this painful process.

    Thanks for your help. Let me know

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: First Derivative

    In D5, =(B6-B4)/(C6-C4)

    Select D5:D7 (i.e., D5 and the two empty cells below) and drag down the fill handle.

  7. #7
    Registered User
    Join Date
    08-24-2015
    Location
    London
    MS-Off Ver
    EXCEL
    Posts
    1

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1