September 16th, 2017, 10:11 AM  #1 
Newbie Joined: Sep 2017 From: Seattle Posts: 1 Thanks: 0  Summing derivatives
I have some time series data (water flow through pipe A and B) in a database. The time intervals are not regular, and I do not necessarily have data for common time stamps, but I do have data over the same time span. The database has the capability to calculate the derivative on a given time interval. For instance, if at 1 second intervals, I would return 65 values for the Flow A's derivative and 65 values for Flow B's derivative (I might need to use some longer time interval to get good results, but this is not relevant to my question). It could only do one series at a time and could not do the combined flow. Given the results for the individual derivatives of each flow, how can I determine the 65 values for the derivative of (Flow A + Flow B)? Thank you Flow A Code: +++  time  Flow  +++  0  1   5  3   11  4   14  0   16  2   19  8   22  3   26  3   26  9   35  4   42  6   50  9   51  7   60  0   65  7  +++ Code: +++  time  Flow  +++  0  2   9  4   14  11   20  12   24  3   28  6   39  8   48  13   51  9   65  6  +++ 
October 11th, 2017, 07:20 PM  #2 
Senior Member Joined: Sep 2016 From: USA Posts: 165 Thanks: 72 Math Focus: Dynamical systems, analytic function theory, numerics 
assuming the values for flow represent derivatives? I would interpolate both data sets using cubic splines (or any smooth Bspline scheme) and add the interpolants to evaluate on a uniform grid. Start here: https://en.wikipedia.org/wiki/Bspline 
October 12th, 2017, 04:34 AM  #3 
Math Team Joined: Jan 2015 From: Alabama Posts: 2,719 Thanks: 699 
If I am reading this correctly, "interpolation" is not necessary. You are given 65 values for the derivative of flow A and 65 values for the derivative of flow B. The derivative of "flow A plus flow B" is just the "derivative of flow A" plus the "derivative of flow A". For each time, add the two values. 
October 12th, 2017, 12:29 PM  #4  
Senior Member Joined: Sep 2016 From: USA Posts: 165 Thanks: 72 Math Focus: Dynamical systems, analytic function theory, numerics  Quote:
Quote:
 
October 12th, 2017, 04:51 PM  #5 
Math Team Joined: Jan 2015 From: Alabama Posts: 2,719 Thanks: 699 
Oh, I see your point. The 'times' for flow A and flow B are not the same.


Tags 
derivatives, summing 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
How summing groups of elements?  karel vdr  Math  2  April 9th, 2017 11:02 PM 
Summing a set past the end of the set.  JwClaassen  Number Theory  0  February 11th, 2017 09:48 PM 
Deriving the formula for summing a sequence of squares  Mr Davis 97  PreCalculus  11  August 17th, 2014 09:05 AM 
summing a finite exponential series  UncleFester  Real Analysis  2  December 30th, 2013 05:03 AM 
Summing Divergent Series  mathbalarka  Number Theory  16  November 24th, 2013 08:01 AM 