How to take the double integral of a data set with respect to time

In summary, the displacement is best described by the product of the acceleration and the time derivative of the displacement.
  • #1
Leo Liu
353
156
Question: Suppose I have a data file for the acceleration of an object after every ##
\Delta t_i##, how do I obtain the displacement of it?

Context: Integral in a PID loop, although not exactly what I am asking as one is sum of error: $$\int_0^T \int_0^T \ddot {\vec \theta(t)}dtdt$$
the other is displacement:
$$\int_0^T \left(\dot{\vec \theta(0)}+ \int_0^T \ddot {\vec \theta(t)}dt\right)dt$$

PS I found http://mathforcollege.com/nm/mws/gen/07int/mws_gen_int_spe_trapdiscrete.pdf but it is for single integral over discrete data.
 
Technology news on Phys.org
  • #2
There are a variety of numerical integration algorithms. If you have a particular scientific subroutine package, you should check whether it has an appropriate subroutine. If you are using Excel, this is a simple example
 
  • Like
Likes Leo Liu
  • #3
FactChecker said:
There are a variety of numerical integration algorithms. If you have a particular scientific subroutine package, you should check whether it has an appropriate subroutine. If you are using Excel, this is a simple example
Can I do this on an Arduino? It needs to be computed real time.
 
  • #4
Leo Liu said:
Can I do this on an Arduino? It needs to be computed real time.
That seems very different from integrating data in a file.
 
  • #5
Leo Liu said:
Can I do this on an Arduino? It needs to be computed real time.
Yes.
Keep a running total of the acceleration, which is velocity.
Keep a running total of the velocity, which is displacement.

The problem you will have is that a zero error in the acceleration will accumulate until your displacement exceeds some sensible limit. There will need to be some zero restoration algorithm introduced. You have two unknown constants of integration at the start.
 
  • #6
Baluncore said:
The problem you will have is that a zero error in the acceleration will accumulate until your displacement exceeds some sensible limit. There will need to be some zero restoration algorithm introduced.
Could you elaborate, please?
 
  • #7
Errors accumulate with time.
A DC offset error in the acceleration will always bias and drive the velocity one way.
You will need to detect and cancel that error somehow, by knowing the actual displacement at a zero crossing or some ± reference or limit.
 
  • Like
Likes Leo Liu
  • #8
One more question:
Suppose the acceleration ##\ddot x## is approximately constant during a finite ##
\Delta t##, is the displacement due to this contribution best described by ##\frac 1 2 \ddot x (\Delta t)^2## or ##(\ddot x \Delta t)\Delta t##?
 

FAQ: How to take the double integral of a data set with respect to time

How do I take the double integral of a data set with respect to time?

To take the double integral of a data set with respect to time, you will first need to determine the mathematical function that represents the data set. Once you have the function, you can then apply the double integral formula to find the area under the curve with respect to time.

What is the significance of taking the double integral of a data set with respect to time?

Taking the double integral of a data set with respect to time allows you to analyze the overall change or accumulation of the data over a specific time period. This can provide valuable insights into the trends and patterns present in the data set.

Are there any specific techniques or methods for taking the double integral of a data set with respect to time?

There are various techniques and methods that can be used to take the double integral of a data set with respect to time, depending on the complexity of the data and the desired level of accuracy. Some common methods include numerical integration, Simpson's rule, and Monte Carlo integration.

How can I interpret the results of the double integral of a data set with respect to time?

The results of the double integral represent the total accumulated value of the data set over the specified time period. By interpreting these results, you can gain insights into the overall behavior and trends of the data, as well as make predictions about future outcomes based on the accumulated values.

Are there any software tools or programs that can help with taking the double integral of a data set with respect to time?

Yes, there are several software tools and programs available that can assist with taking the double integral of a data set with respect to time. Some popular options include MATLAB, Mathematica, and Python libraries such as NumPy and SciPy, which offer built-in functions for numerical integration and data analysis.

Similar threads

Back
Top